[packages/GraphicsMagick] - updated to 1.3.38; some oss-fuzz fixes, ready for jasper 3 now - added coder-heif subpackage; code
qboosh
qboosh at pld-linux.org
Sun Apr 10 20:53:36 CEST 2022
commit 9c3aebeddb2ba31cb7b299ded3e0d65cf64292e2
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Apr 10 20:53:31 2022 +0200
- updated to 1.3.38; some oss-fuzz fixes, ready for jasper 3 now
- added coder-heif subpackage; coder-jxl is pending, but needs unreleased version of libjxl
GraphicsMagick.spec | 41 ++++++++++++++++++++++++++++++++---------
1 file changed, 32 insertions(+), 9 deletions(-)
---
diff --git a/GraphicsMagick.spec b/GraphicsMagick.spec
index 2830fd1..359c698 100644
--- a/GraphicsMagick.spec
+++ b/GraphicsMagick.spec
@@ -1,11 +1,13 @@
+# TODO: package coder-jxl when libjxl >= 0.6.2 (0.7.0?) gets released
#
# Conditional build:
-%bcond_with broken # broken/dangerous coders (currently PSD)
-%bcond_without fpx # FlashPIX module (which uses fpx library)
-%bcond_with gs # PostScript support through ghostscript library (warning: breaks jpeg!)
-%bcond_without jasper # JPEG2000 module (which uses jasper library)
-%bcond_without cxx # Magick++ library
-%bcond_without openmp # OpenMP support
+%bcond_with broken # broken/dangerous coders (currently PSD)
+%bcond_without fpx # FlashPIX module (which uses fpx library)
+%bcond_with gs # PostScript support through ghostscript library (warning: breaks jpeg!)
+%bcond_without jasper # JPEG2000 module (which uses jasper library)
+%bcond_with libjxl # JPEG-XL module (which uses libjxl library)
+%bcond_without cxx # Magick++ library
+%bcond_without openmp # OpenMP support
%define pdir Graphics
%define pnam Magick
@@ -20,12 +22,12 @@ Summary(ru.UTF-8): Просмотр, конвертирование, обраб
Summary(tr.UTF-8): X altında resim gösterme, çevirme ve değişiklik yapma
Summary(uk.UTF-8): Перегляд, конвертування та обробка зображень під X Window
Name: GraphicsMagick
-Version: 1.3.36
+Version: 1.3.38
Release: 1
License: MIT
Group: X11/Applications/Graphics
-Source0: http://downloads.sourceforge.net/graphicsmagick/%{name}-%{version}.tar.xz
-# Source0-md5: 3e936b42fd46fb460016f91c1a239e33
+Source0: https://downloads.sourceforge.net/graphicsmagick/%{name}-%{version}.tar.xz
+# Source0-md5: 9a5978427c3841711f470e15343ca71f
Patch0: %{name}-link.patch
Patch1: %{name}-ldflags.patch
URL: http://www.graphicsmagick.org/
@@ -41,7 +43,9 @@ BuildRequires: jbigkit-devel >= 1.6
BuildRequires: lcms2-devel >= 2.0
%{?with_fpx:BuildRequires: libfpx-devel >= 1.2.0.4-3}
%{?with_openmp:BuildRequires: libgomp-devel}
+BuildRequires: libheif-devel
BuildRequires: libjpeg-devel >= 6b
+%{?with_libjxl:BuildRequires: libjxl-devel >= 0.6.2}
BuildRequires: libltdl-devel >= 2:2.2
BuildRequires: libpng-devel >= 2:1.2.18
BuildRequires: libstdc++-devel
@@ -249,6 +253,18 @@ Coder module for FlashPIX (FPX) files.
%description coder-fpx -l pl.UTF-8
Moduł kodera dla plików FlashPIX (FPX).
+%package coder-heif
+Summary: Coder module for HEIF/HEIC files
+Summary(pl.UTF-8): Moduł kodera dla plików HEIF/HEIC
+Group: X11/Applications/Graphics
+Requires: %{name} = %{version}-%{release}
+
+%description coder-heif
+Coder module for HEIF/HEIC files.
+
+%description coder-heif -l pl.UTF-8
+Moduł kodera dla plików HEIF/HEIC.
+
%package coder-jbig
Summary: Coder module for JBIG files
Summary(pl.UTF-8): Moduł kodera dla plików JBIG
@@ -584,6 +600,7 @@ find PerlMagick scripts www -type f -exec perl -pi -e 's=!%{_prefix}/local/bin/p
--with-gs-font-dir=%{_fontsdir}/Type1 \
--with-gslib%{!?with_gs:=no} \
--with-jp2%{!?with_jasper:=no} \
+ %{!?with_libjxl:--without-jxl} \
--with-magick_plus_plus%{!?with_cxx:=no} \
--with-modules \
--with-perl=%{__perl} \
@@ -839,6 +856,12 @@ rm -rf $RPM_BUILD_ROOT
%{modulesdir}/coders/fpx.la
%endif
+%files coder-heif
+%defattr(644,root,root,755)
+# R: libheif
+%attr(755,root,root) %{modulesdir}/coders/heif.so
+%{modulesdir}/coders/heif.la
+
%files coder-jbig
%defattr(644,root,root,755)
# R: jbigkit (libjbig.so)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/GraphicsMagick.git/commitdiff/9c3aebeddb2ba31cb7b299ded3e0d65cf64292e2
More information about the pld-cvs-commit
mailing list