Blame SPECS/compat-exiv2-026.spec

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