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