commit f4ab136f491171675ab7d4e96eb68a69b536ee04
Author: Marcin Krol <[email protected]>
Date:   Sun Dec 3 13:33:00 2023 +0100

    - bcond for experimental libheif support

 jasper.spec | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/jasper.spec b/jasper.spec
index 15e38a4..f271d18 100644
--- a/jasper.spec
+++ b/jasper.spec
@@ -1,12 +1,13 @@
 #
 # Conditional build:
 %bcond_without opengl  # (OpenGL-based) jiv viewer
+%bcond_without libheif # support for libheif and HEIC codec (experimental)
 #
 Summary:       JasPer - collection of software for coding and manipulation of 
images
 Summary(pl.UTF-8):     JasPer - zestaw oprogramowania do obróbki obrazków
 Name:          jasper
 Version:       3.0.6
-Release:       1
+Release:       2
 Epoch:         0
 License:       JasPer v2.0 (BSD-like)
 Group:         Libraries
@@ -19,6 +20,7 @@ URL:          https://www.ece.uvic.ca/~frodo/jasper/
 BuildRequires: cmake >= 3.12
 BuildRequires: doxygen
 BuildRequires: gcc >= 6:4.7
+%{?with_libheif:BuildRequires: libheif-devel}
 BuildRequires: libjpeg-devel
 BuildRequires: rpmbuild(macros) >= 1.605
 BuildRequires: tex-latex-adjustbox
@@ -109,7 +111,9 @@ cd builddir
        -DCMAKE_INSTALL_INCLUDEDIR:PATH=include \
        -DCMAKE_INSTALL_LIBDIR:PATH=%{_lib} \
        -DJAS_ENABLE_AUTOMATIC_DEPENDENCIES=OFF \
-       -DJAS_ENABLE_OPENGL=ON
+       %{!?with_opengl:-DJAS_ENABLE_OPENGL=OFF} \
+       %{!?with_libheif:-DJAS_ENABLE_LIBHEIF=OFF} \
+       %{!?with_libheif:-DJAS_INCLUDE_HEIC_CODEC=OFF}
 
 %{__make}
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/jasper.git/commitdiff/f4ab136f491171675ab7d4e96eb68a69b536ee04

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to