diff options
Diffstat (limited to 'vips.spec')
-rw-r--r-- | vips.spec | 31 |
1 files changed, 18 insertions, 13 deletions
@@ -25,13 +25,14 @@ %bcond_with libimagequant %endif -%if 0%{?rhel} == 7 +%if 0%{?fedora} >= 34 +%bcond_without openjpeg2 +%else # disabled by default # as vips pulls poppler (libopenjpeg) and IM (libopenjp2) # so vips segfaults in various place +# also see https://github.com/libvips/libvips/pull/2305 %bcond_with openjpeg2 -%else -%bcond_without openjpeg2 %endif %if 0%{?fedora} @@ -43,9 +44,9 @@ %endif # 3 builds needed to get the full stack -# --without im6 --with im7 -# --without im6 --with gm -# --with heif +# --without heif --without im6 --with im7 +# --without heif --without im6 --with gm +# --with heif --with im6 %bcond_without im6 %bcond_with im7 @@ -59,7 +60,7 @@ %endif Name: vips -Release: 1%{?dist}.1 +Release: 1%{?dist}.2 Version: %{vips_version}%{?vips_prever:~%{vips_prever}} Summary: C/C++ library for processing large images @@ -67,6 +68,9 @@ License: LGPLv2+ URL: https://libvips.github.io/libvips/ Source0: https://github.com/libvips/libvips/releases/download/v%{vips_version}%{?vips_prever:-%{vips_prever}}/vips-%{vips_tarver}.tar.gz +# https://github.com/libvips/libvips/pull/2308 +Patch0: vips-lib64.patch + BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(expat) BuildRequires: pkgconfig(fftw3) @@ -94,7 +98,7 @@ BuildRequires: pkgconfig(spng) >= 0.6 BuildRequires: nifticlib-devel %endif %if %{with openjpeg2} -BuildRequires: pkgconfig(libopenjp2) >= 2.3 +BuildRequires: pkgconfig(libopenjp2) >= 2.4 %endif %if %{with libimagequant} #BuildRequires: pkgconfig(imagequant) TODO only in 2.12+ @@ -243,6 +247,7 @@ The %{name}-magick-gm contains the magick module using GraphicsMagick. %prep %setup -q -n vips-%{vips_version} +%patch0 -p1 # make the version string consistent for multiarch export FAKE_BUILD_DATE=$(date -r %{SOURCE0}) @@ -250,11 +255,6 @@ sed -i "s/\\(VIPS_VERSION_STRING=\\)\$VIPS_VERSION-\`date\`/\\1\"\$VIPS_VERSION- configure unset FAKE_BUILD_DATE -%if %{with openjpeg2} -# allow openjpeg2 version 2.3 -sed -i '/libopenjp2/s/2.4/2.3/' -i configure -%endif - # Avoid setting RPATH to /usr/lib64 on 64-bit builds # The DIE_RPATH_DIE trick breaks the build wrt gobject-introspection sed -i 's|sys_lib_dlsearch_path_spec="|sys_lib_dlsearch_path_spec="/%{_lib} %{_libdir} |' configure @@ -373,6 +373,11 @@ sed -e 's:/usr/bin/python:%{_bindir}/python3:' -i %{buildroot}/%{_bindir}/vipspr %changelog +* Tue Jun 15 2021 Remi Collet <remi@remirepo.net> - 8.11.0-1.2 +- test build for fix for bad prefix guess from + https://github.com/libvips/libvips/pull/2308 +- only use openjpeg2 >= 2.4 (Fedora >= 34) + * Tue Jun 15 2021 Remi Collet <remi@remirepo.net> - 8.11.0-1.1 - test build using openjpeg2 2.3 - open https://github.com/libvips/libvips/pull/2305 allow libopenjp2 2.3 |