configure now disables pyvips7 and pyvips8 by default.
This commit is contained in:
Benjamin Gilbert 2017-12-16 21:27:27 -08:00
parent 4ba4339a94
commit 0285207a69
3 changed files with 13 additions and 6 deletions

2
.gitignore vendored
View File

@ -1,2 +1,2 @@
/vips-8.4.4.tar.gz
/vips-8.5.9.tar.gz
/vips-8.6.0.tar.gz

View File

@ -1 +1 @@
SHA512 (vips-8.5.9.tar.gz) = 1cb825d35d18c41e5c22883ad0f00b3ba3e858ede42c4085edc4a4ec14122bbc453a579eca8e236eab0edbfcc255bc1d2246618259fbb8677df0e015c5b5e0ac
SHA512 (vips-8.6.0.tar.gz) = 3d199698942625020fd52fda2201997369136f231420a53337a45c31171db41029a9d47e031198bf2e35e696a6ead204b2e7ec8ff58f02b275b1e50a6f146bb1

View File

@ -1,10 +1,10 @@
%global vips_version_base 8.5
%global vips_version %{vips_version_base}.9
%global vips_version_base 8.6
%global vips_version %{vips_version_base}.0
%global vips_soname_major 42
Name: vips
Version: %{vips_version}
Release: 2%{?dist}
Release: 1%{?dist}
Summary: C/C++ library for processing large images
License: LGPLv2+
@ -113,6 +113,7 @@ HTML and PDF formats.
%setup -q
# make the version string consistent for multiarch
# should be unneeded after https://github.com/jcupitt/libvips/commit/0f69f0808efbe72bab464ee07966d321e9920c7e
export FAKE_BUILD_DATE=$(date -r %{SOURCE0})
sed -i "s/\\(VIPS_VERSION_STRING=\\)\$VIPS_VERSION-\`date\`/\\1\"\$VIPS_VERSION-$FAKE_BUILD_DATE\"/g" \
configure
@ -128,7 +129,7 @@ sed -i 's|sys_lib_dlsearch_path_spec="|sys_lib_dlsearch_path_spec="/%{_lib} %{_l
# https://github.com/jcupitt/libvips/pull/212#issuecomment-68177930
export CFLAGS="%{optflags} -ftree-vectorize"
export CXXFLAGS="%{optflags} -ftree-vectorize"
%configure --disable-static --enable-gtk-doc
%configure --disable-static --enable-gtk-doc --enable-pyvips7 --enable-pyvips8
make %{?_smp_mflags}
@ -136,6 +137,9 @@ make %{?_smp_mflags}
make install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT \( -name '*.la' -o -name '*.a' \) -exec rm -f {} ';'
# https://github.com/jcupitt/libvips/issues/834
mv ${RPM_BUILD_ROOT}%{_bindir}/vips-8.5 ${RPM_BUILD_ROOT}%{_bindir}/vips-8.6
# delete doc (we will get it later with %%doc)
rm -rf ${RPM_BUILD_ROOT}%{_datadir}/doc/vips
@ -193,6 +197,9 @@ find ${RPM_BUILD_ROOT}%{python3_sitearch} \
%changelog
* Sun Dec 17 2017 Benjamin Gilbert <bgilbert@backtick.net> - 8.6.0-1
- New release
* Thu Nov 23 2017 Benjamin Gilbert <bgilbert@backtick.net> - 8.5.9-2
- Rename python-gobject-base dependency to python2-gobject-base
- Don't version dependencies on python*-gobject-base