From 6b672fb7d54c6d5313a4252603825e3afc3254a2 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Oct 31 2019 14:33:05 +0000 Subject: import compat-exiv2-023-0.23-2.el7 --- diff --git a/.compat-exiv2-023.metadata b/.compat-exiv2-023.metadata new file mode 100644 index 0000000..0adc501 --- /dev/null +++ b/.compat-exiv2-023.metadata @@ -0,0 +1 @@ +f0b22b9f4b819cdd0e3613b938f665e5aa27a266 SOURCES/exiv2-0.23.tar.gz diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f79bef6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/exiv2-0.23.tar.gz diff --git a/SPECS/compat-exiv2-023.spec b/SPECS/compat-exiv2-023.spec new file mode 100644 index 0000000..591a4f6 --- /dev/null +++ b/SPECS/compat-exiv2-023.spec @@ -0,0 +1,72 @@ + +Name: compat-exiv2-023 +Version: 0.23 +Release: 2%{?dist} +Summary: Compatibility package with the exiv2 library in version 0.23 + +License: GPLv2+ +URL: http://www.exiv2.org/ +Source0: http://www.exiv2.org/exiv2-%{version}.tar.gz + +## upstream patches + +BuildRequires: expat-devel +BuildRequires: gettext +BuildRequires: pkgconfig +BuildRequires: zlib-devel + +Conflicts: exiv2-libs < 0.26 + +%description +Compatibility package with the exiv2 0.23 ABI. It is meant to work with +applications and libraries using exiv2 and build prior to exiv2 0.26 update. + + +%prep +%setup -q -n exiv2-%{version} + +%build +%configure \ + --disable-rpath \ + --disable-static + +sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool +sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool + +make %{?_smp_mflags} + +%install +rm -rf %{buildroot} + +make install DESTDIR=%{buildroot} + +## Unpackaged files +rm -rf %{buildroot}%{_bindir}/exiv2 +rm -rf %{buildroot}%{_libdir}/libexiv2.la +rm -rf %{buildroot}%{_datadir}/locale/* +rm -rf %{buildroot}%{_mandir}/* +rm -rf %{buildroot}%{_libdir}/pkgconfig/exiv2.pc +rm -rf %{buildroot}%{_includedir}/exiv2 +rm -rf mv %{buildroot}%{_libdir}/libexiv2.so + +## fix perms on installed lib +ls -l %{buildroot}%{_libdir}/libexiv2.so.* +chmod 755 %{buildroot}%{_libdir}/libexiv2.so.* + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%doc COPYING README +%{_libdir}/libexiv2.so.12* + + +%changelog +* Mon Jun 18 2018 Jan Grulich - 0.23-2 +- Remove Windows binaries from the tarball + Resolves: bz#1568618 + +* Wed Jun 13 2018 Jan Grulich - 0.23-1 +- Spec file based on exiv2 package to provide old libraries before API change + Resolves: bz#1568618 +