Hello community, here is the log from the commit of package exiv2 for openSUSE:Factory checked in at 2018-07-07 21:56:13 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/exiv2 (Old) and /work/SRC/openSUSE:Factory/.exiv2.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "exiv2" Sat Jul 7 21:56:13 2018 rev:50 rq:620180 version:0.26 Changes: -------- --- /work/SRC/openSUSE:Factory/exiv2/exiv2.changes 2018-06-03 12:29:50.198178986 +0200 +++ /work/SRC/openSUSE:Factory/.exiv2.new/exiv2.changes 2018-07-07 21:57:05.411417223 +0200 @@ -1,0 +2,6 @@ +Fri Jun 29 12:20:33 UTC 2018 - [email protected] + +- Fix build on python3 only system by making sure we use + python3 when building + +------------------------------------------------------------------- @@ -21 +26,0 @@ - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ exiv2.spec ++++++ --- /var/tmp/diff_new_pack.GjJI5r/_old 2018-07-07 21:57:06.043416421 +0200 +++ /var/tmp/diff_new_pack.GjJI5r/_new 2018-07-07 21:57:06.047416416 +0200 @@ -22,7 +22,7 @@ Summary: Tool to access image Exif metadata License: GPL-2.0-or-later Group: Productivity/Graphics/Other -Url: http://www.exiv2.org/ +URL: http://www.exiv2.org/ Source0: https://github.com/Exiv2/exiv2/archive/v0.26.tar.gz Source1: baselibs.conf Patch1: exiv2-build-date.patch @@ -35,15 +35,14 @@ BuildRequires: fdupes BuildRequires: gcc-c++ BuildRequires: gettext-devel +# doxygen likes to have this +BuildRequires: graphviz BuildRequires: libexpat-devel BuildRequires: libxslt -BuildRequires: pkg-config -BuildRequires: python +BuildRequires: pkgconfig +BuildRequires: python3-base BuildRequires: zlib-devel -# doxygen likes to have this -BuildRequires: graphviz Recommends: %{name}-lang = %{version} -BuildRoot: %{_tmppath}/%{name}-%{version}-build %description Exiv2 is a command line utility to access image metadata from tags like @@ -77,52 +76,51 @@ documentation in HTML format. %lang_package + %prep -%setup -q -n %{name}-%{version} +%setup -q %patch1 -p1 %patch2 %patch3 -p1 +# use python3 not env python +sed -i -e 's:#! %{_bindir}/env python:#!%{_bindir}/python3:' doc/templates/gen.py + %build -export CXXFLAGS="%optflags $(getconf LFS_CFLAGS)" +export CXXFLAGS="%{optflags} $(getconf LFS_CFLAGS)" %cmake \ -DEXIV2_ENABLE_BUILD_PO:BOOL=ON \ -DEXIV2_ENABLE_BUILD_SAMPLES:BOOL=OFF make %{?_smp_mflags} -make doc +make %{?_smp_mflags} doc %install %cmake_install %find_lang exiv2 %fdupes -s doc/html -rm -f %{buildroot}%{_libdir}/*.la +find %{buildroot} -type f -name "*.la" -delete -print rm -f %{buildroot}%{_libdir}/*.a rm %{buildroot}%{_libdir}/pkgconfig/exiv2.lsm %post -n libexiv2-26 -p /sbin/ldconfig - %postun -n libexiv2-26 -p /sbin/ldconfig %files lang -f exiv2.lang %files -%defattr(-,root,root) %doc doc/ChangeLog doc/cmd.txt %{_bindir}/exiv2 %{_mandir}/man1/* %files -n libexiv2-26 -%defattr(-,root,root) %{_libdir}/libexiv2.so.* %files -n libexiv2-devel -%defattr(-,root,root) %{_includedir}/exiv2 %{_libdir}/libexiv2.so %{_libdir}/pkgconfig/exiv2.pc %files -n libexiv2-doc -%defattr(-,root,root) %doc doc/html %changelog
