summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2020-12-14 17:24:05 +0100
committerRemi Collet <remi@remirepo.net>2020-12-14 17:24:05 +0100
commitcccd353c66360b628d4d75e14067de865dd33c64 (patch)
tree12ad3a7d46ab91344a03767bceccc7b42581344e
parent6df095fc082c53f22a93caec44f28401c637b7fd (diff)
enable libspng usage on Fedora
-rw-r--r--vips.spec20
1 files changed, 18 insertions, 2 deletions
diff --git a/vips.spec b/vips.spec
index ff41a5c..76b74e5 100644
--- a/vips.spec
+++ b/vips.spec
@@ -25,6 +25,12 @@
%bcond_with libimagequant
%endif
+%if 0%{?fedora}
+%bcond_without libspng
+%else
+%bcond_with libspng
+%endif
+
# from mock config, when rpmfusion enabled
%if 0%{?_with_rpmfusion:1}
%bcond_without libheif
@@ -35,10 +41,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
@@ -75,6 +81,9 @@ BuildRequires: pkgconfig(libgsf-1)
BuildRequires: pkgconfig(librsvg-2.0) >= 2.40.3
BuildRequires: pkgconfig(poppler-glib)
BuildRequires: pkgconfig(libjpeg)
+%if %{with libspng}
+BuildRequires: pkgconfig(spng) >= 0.6
+%endif
%if %{with libheif}
BuildRequires: pkgconfig(libheif) >= 1.3
%endif
@@ -181,7 +190,11 @@ export CXXFLAGS="%{optflags} -ftree-vectorize"
%else
--without-imagequant \
%endif
+%if %{with libspng}
+ --with-libspng \
+%else
--without-libspng \
+%endif
%if %{with doc}
--enable-gtk-doc \
%endif
@@ -238,6 +251,9 @@ sed -e 's:/usr/bin/python:%{_bindir}/python3:' -i %{buildroot}/%{_bindir}/vipspr
%changelog
+* Mon Dec 14 2020 Remi Collet <remi@remirepo.net> - 8.10.4-3
+- enable libspng usage on Fedora
+
* Mon Dec 14 2020 Remi Collet <remi@remirepo.net> - 8.10.4-1
- update to 8.10.4