]> git.pld-linux.org Git - packages/ImageMagick.git/blobdiff - ImageMagick.spec
- unified heif bcond name (for heic module)
[packages/ImageMagick.git] / ImageMagick.spec
index 45c7c219aad42af8db66b8adb654bdb2fdc54daf..f5cfa33cc5e7919512a7a8bdec3a3de09a167ff8 100644 (file)
@@ -17,6 +17,7 @@
 %bcond_without fpx             # FlashPIX module (which uses fpx library)
 %bcond_without flif            # FLIF (Free Lossless Image Format) module (which uses flif library)
 %bcond_without graphviz        # dot module (which uses GraphViz libraries)
+%bcond_without heif            # HEIC module (which uses libheif library)
 %bcond_without libjxl          # JPEG-XL module
 %bcond_without openjpeg        # JPEG2000 module (which uses openjpeg 2 library)
 %bcond_without wmf             # WMF module (which uses libwmf library)
@@ -26,7 +27,7 @@
 %define        libpng_ver 2:1.6.34
 
 %define                ver     7.1.1
-%define                pver    19
+%define                pver    31
 Summary:       Image display, conversion, and manipulation under X
 Summary(de.UTF-8):     Darstellen, Konvertieren und Bearbeiten von Grafiken unter X
 Summary(es.UTF-8):     Exhibidor, convertidor y manipulador de imágenes bajo X
@@ -42,21 +43,20 @@ Release:    1
 Epoch:         1
 License:       Apache-like
 Group:         X11/Applications/Graphics
-Source0:       https://www.imagemagick.org/download/releases/%{name}-%{ver}-%{pver}.tar.xz
-# Source0-md5: a019ee22b76315cc30813e13561e21d1
-
+Source0:       https://download.imagemagick.org/archive/releases/%{name}-%{ver}-%{pver}.tar.lz
+# Source0-md5: 70ca8d5bed3e99dd9b828571b78825d8
+Patch0:                %{name}-perl.patch
 Patch1:                %{name}-link.patch
 Patch2:                %{name}-libpath.patch
 Patch3:                %{name}-ldflags.patch
 Patch4:                %{name}-lt.patch
 Patch5:                %{name}-OpenCL.patch
-Patch6:                %{name}-autotrace.patch
 URL:           https://imagemagick.org/
 %{?with_opencl:BuildRequires:  OpenCL-devel}
 %{?with_exr:BuildRequires:     OpenEXR-devel >= 1.0.6}
 BuildRequires: autoconf >= 2.69
 BuildRequires: automake >= 1:1.12
-%{?with_autotrace:BuildRequires:       autotrace-devel >= 0.31.1}
+%{?with_autotrace:BuildRequires:       autotrace-devel >= 0.31.2}
 BuildRequires: bzip2-devel >= 1.0.1
 %{?with_djvu:BuildRequires:    djvulibre-devel >= 3.5.0}
 BuildRequires: expat-devel >= 1.95.7
@@ -71,7 +71,7 @@ BuildRequires:        jbigkit-devel
 BuildRequires: lcms2-devel >= 2.0
 %{?with_fpx:BuildRequires:     libfpx-devel >= 1.2.0.4-3}
 %{?with_openmp:BuildRequires:  libgomp-devel}
-BuildRequires: libheif-devel >= 1.4.0
+%{?with_heif:BuildRequires:    libheif-devel >= 1.4.0}
 BuildRequires: libjpeg-devel >= 6b
 %{?with_libjxl:BuildRequires:  libjxl-devel >= 0.7.0}
 BuildRequires: liblqr-devel >= 0.1.0
@@ -87,6 +87,7 @@ BuildRequires:        libwebp-devel >= 0.5.0
 %{?with_wmf:BuildRequires:     libwmf-devel >= 2:0.2.2}
 BuildRequires: libxml2-devel >= 2.0
 BuildRequires: libzip-devel >= 1.0.0
+BuildRequires: lzip
 %{?with_openjpeg:BuildRequires:        openjpeg2-devel >= 2.1.0}
 BuildRequires: pango-devel >= 1:1.28.1
 BuildRequires: perl-devel >= 1:5.8.1
@@ -98,7 +99,6 @@ BuildRequires:        tar >= 1:1.22
 #BuildRequires:        txt2html
 BuildRequires: xorg-lib-libX11-devel
 BuildRequires: xorg-lib-libXext-devel
-BuildRequires: xz
 BuildRequires: xz-devel >= 2.9.0
 BuildRequires: zlib-devel >= 1.0.0
 BuildRequires: zstd-devel >= 1.0.0
@@ -746,13 +746,12 @@ Moduł kodera dla plików WMF.
 
 %prep
 %setup -q -n %{name}-%{ver}-%{pver}
-
+%patch0 -p1
 %patch1 -p1
 %patch2 -p1
 %patch3 -p1
 %patch4 -p1
 %patch5 -p1
-%patch6 -p1 -R
 
 find -type f | xargs grep -l '/usr/local/bin/perl' | xargs %{__sed} -i -e 's=!/usr/local/bin/perl=!%{__perl}='
 
@@ -784,6 +783,7 @@ touch www/Magick++/NEWS.html www/Magick++/ChangeLog.html
        --with-gs-font-dir=%{_fontsdir}/Type1 \
        --with-gslib%{!?with_gs:=no} \
        --with-gvc%{!?with_graphviz:=no} \
+       --with-heic%{!?with_heif:=no} \
        --with-jxl%{!?with_libjxl:=no} \
        --with-magick_plus_plus%{!?with_cxx:=no} \
        --with-openexr%{!?with_exr:=no} \
@@ -820,7 +820,7 @@ cp -p PerlMagick/demo/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-perl-%{version}
 %{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Image/Magick/.packlist
 %{__rm} $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod
 # packaged as %doc
-%{__rm} $RPM_BUILD_ROOT%{_docdir}/%{name}-%{mver}/{LICENSE,NEWS.txt}
+%{__rm} $RPM_BUILD_ROOT%{_docdir}/%{name}-%{mver}/LICENSE
 # obsoleted by pkg-config
 %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la
 
@@ -1167,11 +1167,13 @@ rm -rf $RPM_BUILD_ROOT
 %{modulesdir}/coders/fpx.la
 %endif
 
+%if %{with heif}
 %files coder-heic
 %defattr(644,root,root,755)
 # R: libheif
 %attr(755,root,root) %{modulesdir}/coders/heic.so
 %{modulesdir}/coders/heic.la
+%endif
 
 %files coder-jbig
 %defattr(644,root,root,755)
This page took 0.070158 seconds and 4 git commands to generate.