summaryrefslogtreecommitdiffstats
path: root/vips.spec
diff options
context:
space:
mode:
Diffstat (limited to 'vips.spec')
-rw-r--r--vips.spec30
1 files changed, 28 insertions, 2 deletions
diff --git a/vips.spec b/vips.spec
index 04538ba..781dd2f 100644
--- a/vips.spec
+++ b/vips.spec
@@ -32,6 +32,10 @@
%bcond_with libspng
%endif
+%bcond_without im6
+%bcond_with im7
+%bcond_with gm
+
# from mock config, when rpmfusion enabled
%if 0%{?_with_rpmfusion:1}
%bcond_without libheif
@@ -42,10 +46,10 @@
%if %{with libheif}
Name: vips-full
# Keep vips-full release > vips release
-Release: 2%{?dist}
+Release: 4%{?dist}
%else
Name: vips
-Release: 1%{?dist}
+Release: 3%{?dist}
%endif
Version: %{vips_version}%{?vips_prever:~%{vips_prever}}
Summary: C/C++ library for processing large images
@@ -57,12 +61,20 @@ Source0: https://github.com/libvips/libvips/releases/download/v%{vips_version}%{
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(expat)
BuildRequires: pkgconfig(fftw3)
+%if %{with im6}
%if 0%{?fedora} >= 99 || 0%{?rhel} >= 99
BuildRequires: ImageMagick-devel
%else
# Ensure we use version 6 (same as imagick ext).
BuildRequires: ImageMagick6-devel
%endif
+%endif
+%if %{with im7}
+BuildRequires: ImageMagick7-devel
+%endif
+%if %{with gm}
+BuildRequires: GraphicsMagick-devel
+%endif
BuildRequires: pkgconfig(gobject-introspection-1.0)
BuildRequires: pkgconfig(orc-0.4)
BuildRequires: pkgconfig(lcms2)
@@ -122,12 +134,20 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
Conflicts: vips-devel < %{version}-%{release}
%endif
# for consistency, same version at buildtime and runtime
+%if %{with im6}
%if 0%{?fedora} >= 99 || 0%{?rhel} >= 99
Requires: ImageMagick-devel
%else
# Ensure we use version 6 (same as imagick ext).
Requires: ImageMagick6-devel
%endif
+%endif
+%if %{with im7}
+Requires: ImageMagick7-devel
+%endif
+%if %{with gm}
+Requires: GraphicsMagick-devel
+%endif
%description devel
The %{name}-devel package contains the header files and
@@ -199,6 +219,9 @@ export CXXFLAGS="%{optflags} -ftree-vectorize"
%if %{with doc}
--enable-gtk-doc \
%endif
+%if %{with gm}
+ --with-magickpackage=GraphicsMagick \
+%endif
--disable-static
make %{?_smp_mflags}
@@ -252,6 +275,9 @@ sed -e 's:/usr/bin/python:%{_bindir}/python3:' -i %{buildroot}/%{_bindir}/vipspr
%changelog
+* Tue Apr 6 2021 Remi Collet <remi@remirepo.net> - 8.10.6-3
+- rebuild for new matio (Fedora 32 to 34)
+
* Wed Mar 24 2021 Remi Collet <remi@remirepo.net> - 8.10.6-1
- update to 8.10.6