Blame SPECS/compat-exiv2-026.spec

1a1466
1a1466
Name:    compat-exiv2-026
1a1466
Version: 0.26
1a1466
Release: 1%{?dist}
1a1466
Summary: Compatibility package with the exiv2 library in version 0.26
1a1466
1a1466
License: GPLv2+
1a1466
URL:     http://www.exiv2.org/
1a1466
Source0: http://www.exiv2.org/builds/exiv2-%{version}-trunk.tar.gz
1a1466
1a1466
## upstream patches
1a1466
Patch6:  0006-1296-Fix-submitted.patch
1a1466
1a1466
Patch10: exiv2-CVE-2017-17723.patch
1a1466
Patch11: exiv2-CVE-2017-17725.patch
1a1466
Patch12: exiv2-CVE-2017-5772.patch
1a1466
1a1466
BuildRequires: expat-devel
1a1466
BuildRequires: gettext
1a1466
BuildRequires: pkgconfig
1a1466
BuildRequires: pkgconfig(libcurl)
1a1466
BuildRequires: zlib-devel
1a1466
1a1466
Conflicts: exiv2-libs < 0.27
1a1466
1a1466
%description
1a1466
A command line utility to access image metadata, allowing one to:
1a1466
* print the Exif metadata of Jpeg images as summary info, interpreted values,
1a1466
  or the plain data for each tag
1a1466
* print the Iptc metadata of Jpeg images
1a1466
* print the Jpeg comment of Jpeg images
1a1466
* set, add and delete Exif and Iptc metadata of Jpeg images
1a1466
* adjust the Exif timestamp (that's how it all started...)
1a1466
* rename Exif image files according to the Exif timestamp
1a1466
* extract, insert and delete Exif metadata (including thumbnails),
1a1466
  Iptc metadata and Jpeg comments
1a1466
1a1466
1a1466
%prep
1a1466
%autosetup -n exiv2-trunk -p1
1a1466
1a1466
1a1466
%build
1a1466
# exiv2: embedded copy of exempi should be compiled with BanAllEntityUsage
1a1466
# https://bugzilla.redhat.com/show_bug.cgi?id=888769
1a1466
export CPPFLAGS="-DBanAllEntityUsage=1"
1a1466
1a1466
%configure \
1a1466
  --disable-rpath \
1a1466
  --disable-static
1a1466
1a1466
# rpath
1a1466
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
1a1466
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
1a1466
1a1466
make %{?_smp_mflags}
1a1466
1a1466
%install
1a1466
rm -rf %{buildroot}
1a1466
1a1466
make install DESTDIR=%{buildroot}
1a1466
1a1466
## Unpackaged files
1a1466
rm -rf %{buildroot}%{_bindir}/exiv2
1a1466
rm -rf %{buildroot}%{_libdir}/libexiv2.la
1a1466
rm -rf %{buildroot}%{_datadir}/locale/*
1a1466
rm -rf %{buildroot}%{_mandir}/*
1a1466
rm -rf %{buildroot}%{_libdir}/pkgconfig/exiv2.pc
1a1466
rm -rf %{buildroot}%{_includedir}/exiv2
1a1466
rm -rf mv %{buildroot}%{_libdir}/libexiv2.so
1a1466
1a1466
## fix perms on installed lib
1a1466
ls -l     %{buildroot}%{_libdir}/libexiv2.so.*
1a1466
chmod 755 %{buildroot}%{_libdir}/libexiv2.so.*
1a1466
1a1466
%post -p /sbin/ldconfig
1a1466
%postun -p /sbin/ldconfig
1a1466
1a1466
%files
1a1466
%doc COPYING README
1a1466
%{_libdir}/libexiv2.so.26*
1a1466
1a1466
1a1466
%changelog
1a1466
* Tue Jan 29 2019 Jan Grulich <jgrulich@redhat.com> - 0.26-1
1a1466
- Spec file based on exiv2 package to provide old libraries before API change
1a1466
  Resolves: bz#1668355
1a1466