|
|
dd71bf |
|
|
|
dd71bf |
Name: compat-exiv2-023
|
|
|
dd71bf |
Version: 0.23
|
|
|
dd71bf |
Release: 2%{?dist}
|
|
|
dd71bf |
Summary: Compatibility package with the exiv2 library in version 0.23
|
|
|
dd71bf |
|
|
|
dd71bf |
License: GPLv2+
|
|
|
dd71bf |
URL: http://www.exiv2.org/
|
|
|
dd71bf |
Source0: http://www.exiv2.org/exiv2-%{version}.tar.gz
|
|
|
dd71bf |
|
|
|
dd71bf |
## upstream patches
|
|
|
dd71bf |
|
|
|
dd71bf |
BuildRequires: expat-devel
|
|
|
dd71bf |
BuildRequires: gettext
|
|
|
dd71bf |
BuildRequires: pkgconfig
|
|
|
dd71bf |
BuildRequires: zlib-devel
|
|
|
dd71bf |
|
|
|
dd71bf |
Conflicts: exiv2-libs < 0.26
|
|
|
dd71bf |
|
|
|
dd71bf |
%description
|
|
|
dd71bf |
Compatibility package with the exiv2 0.23 ABI. It is meant to work with
|
|
|
dd71bf |
applications and libraries using exiv2 and build prior to exiv2 0.26 update.
|
|
|
dd71bf |
|
|
|
dd71bf |
|
|
|
dd71bf |
%prep
|
|
|
dd71bf |
%setup -q -n exiv2-%{version}
|
|
|
dd71bf |
|
|
|
dd71bf |
%build
|
|
|
dd71bf |
%configure \
|
|
|
dd71bf |
--disable-rpath \
|
|
|
dd71bf |
--disable-static
|
|
|
dd71bf |
|
|
|
dd71bf |
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
|
|
dd71bf |
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
|
|
dd71bf |
|
|
|
dd71bf |
make %{?_smp_mflags}
|
|
|
dd71bf |
|
|
|
dd71bf |
%install
|
|
|
dd71bf |
rm -rf %{buildroot}
|
|
|
dd71bf |
|
|
|
dd71bf |
make install DESTDIR=%{buildroot}
|
|
|
dd71bf |
|
|
|
dd71bf |
## Unpackaged files
|
|
|
dd71bf |
rm -rf %{buildroot}%{_bindir}/exiv2
|
|
|
dd71bf |
rm -rf %{buildroot}%{_libdir}/libexiv2.la
|
|
|
dd71bf |
rm -rf %{buildroot}%{_datadir}/locale/*
|
|
|
dd71bf |
rm -rf %{buildroot}%{_mandir}/*
|
|
|
dd71bf |
rm -rf %{buildroot}%{_libdir}/pkgconfig/exiv2.pc
|
|
|
dd71bf |
rm -rf %{buildroot}%{_includedir}/exiv2
|
|
|
dd71bf |
rm -rf mv %{buildroot}%{_libdir}/libexiv2.so
|
|
|
dd71bf |
|
|
|
dd71bf |
## fix perms on installed lib
|
|
|
dd71bf |
ls -l %{buildroot}%{_libdir}/libexiv2.so.*
|
|
|
dd71bf |
chmod 755 %{buildroot}%{_libdir}/libexiv2.so.*
|
|
|
dd71bf |
|
|
|
dd71bf |
%post -p /sbin/ldconfig
|
|
|
dd71bf |
%postun -p /sbin/ldconfig
|
|
|
dd71bf |
|
|
|
dd71bf |
%files
|
|
|
dd71bf |
%doc COPYING README
|
|
|
dd71bf |
%{_libdir}/libexiv2.so.12*
|
|
|
dd71bf |
|
|
|
dd71bf |
|
|
|
dd71bf |
%changelog
|
|
|
dd71bf |
* Mon Jun 18 2018 Jan Grulich <jgrulich@redhat.com> - 0.23-2
|
|
|
dd71bf |
- Remove Windows binaries from the tarball
|
|
|
dd71bf |
Resolves: bz#1568618
|
|
|
dd71bf |
|
|
|
dd71bf |
* Wed Jun 13 2018 Jan Grulich <jgrulich@redhat.com> - 0.23-1
|
|
|
dd71bf |
- Spec file based on exiv2 package to provide old libraries before API change
|
|
|
dd71bf |
Resolves: bz#1568618
|
|
|
dd71bf |
|