240d3a
240d3a
Summary: Exif and Iptc metadata manipulation library
240d3a
Name:    exiv2
14512e
Version: 0.27.2
14512e
Release: 5%{?dist}
240d3a
240d3a
License: GPLv2+
240d3a
URL:     http://www.exiv2.org/
240d3a
Source0: https://github.com/Exiv2/%{name}/archive/exiv2-%{version}.tar.gz
240d3a
240d3a
## upstream patches (lookaside cache)
14512e
Patch0:  exiv2-CVE-2019-20421.patch
240d3a
240d3a
## upstreamable patches
240d3a
240d3a
BuildRequires: cmake
240d3a
BuildRequires: expat-devel
240d3a
BuildRequires: gettext
240d3a
BuildRequires: pkgconfig
240d3a
BuildRequires: pkgconfig(libcurl)
240d3a
BuildRequires: pkgconfig(libssh)
240d3a
BuildRequires: zlib-devel
240d3a
# docs
240d3a
BuildRequires: doxygen graphviz libxslt
240d3a
240d3a
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
240d3a
240d3a
%description
240d3a
A command line utility to access image metadata, allowing one to:
240d3a
* print the Exif metadata of Jpeg images as summary info, interpreted values,
240d3a
  or the plain data for each tag
240d3a
* print the Iptc metadata of Jpeg images
240d3a
* print the Jpeg comment of Jpeg images
240d3a
* set, add and delete Exif and Iptc metadata of Jpeg images
240d3a
* adjust the Exif timestamp (that's how it all started...)
240d3a
* rename Exif image files according to the Exif timestamp
240d3a
* extract, insert and delete Exif metadata (including thumbnails),
240d3a
  Iptc metadata and Jpeg comments
240d3a
240d3a
%package devel
240d3a
Summary: Header files, libraries and development documentation for %{name}
240d3a
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
240d3a
%description devel
240d3a
%{summary}.
240d3a
240d3a
%package libs
240d3a
Summary: Exif and Iptc metadata manipulation library
240d3a
# not strictly required, but convenient and expected
240d3a
%if 0%{?rhel} && 0%{?rhel} <= 7
240d3a
Requires: %{name} = %{version}-%{release}
240d3a
%else
240d3a
Recommends: %{name} = %{version}-%{release}
240d3a
%endif
240d3a
%description libs
240d3a
A C++ library to access image metadata, supporting full read and write access
240d3a
to the Exif and Iptc metadata, Exif MakerNote support, extract and delete
240d3a
methods for Exif thumbnails, classes to access Ifd and so on.
240d3a
240d3a
%package doc
240d3a
Summary: Api documentation for %{name}
240d3a
BuildArch: noarch
240d3a
%description doc
240d3a
%{summary}.
240d3a
240d3a
240d3a
%prep
240d3a
%autosetup -n %{name}-%{version} -p1
240d3a
240d3a
240d3a
%build
14512e
%{cmake} . \
14512e
  -DCMAKE_INSTALL_DOCDIR="%{_pkgdocdir}" \
14512e
  -DEXIV2_BUILD_DOC:BOOL=ON \
14512e
  -DEXIV2_ENABLE_NLS:BOOL=ON \
14512e
  -DEXIV2_BUILD_SAMPLES:BOOL=OFF
240d3a
14512e
%make_build
14512e
%make_build doc
240d3a
240d3a
%install
240d3a
make install/fast DESTDIR=%{buildroot}
240d3a
240d3a
%find_lang exiv2 --with-man
240d3a
240d3a
## unpackaged files
240d3a
rm -fv %{buildroot}%{_libdir}/libexiv2.la
14512e
#rm -fv %{buildroot}%{_libdir}/pkgconfig/exiv2.lsm
240d3a
240d3a
%check
14512e
export PKG_CONFIG_PATH="%{buildroot}%{_libdir}/pkgconfig${PKG_CONFIG_PATH:+:}${PKG_CONFIG_PATH}"
14512e
test "$(pkg-config --modversion exiv2)" = "0.27.2"
14512e
test "$(pkg-config --variable=libdir exiv2)" = "%{_libdir}"
240d3a
test -x %{buildroot}%{_libdir}/libexiv2.so
240d3a
240d3a
240d3a
%files -f exiv2.lang
240d3a
%license COPYING
240d3a
%doc doc/ChangeLog
240d3a
# README is mostly installation instructions
14512e
#doc README.md
240d3a
%{_bindir}/exiv2
240d3a
%{_mandir}/man1/exiv2*.1*
240d3a
240d3a
%ldconfig_scriptlets libs
240d3a
240d3a
%files libs
14512e
%{_libdir}/libexiv2.so.27*
14512e
%{_libdir}/libexiv2.so.0.27.2
240d3a
240d3a
%files devel
240d3a
%{_includedir}/exiv2/
240d3a
%{_libdir}/libexiv2.so
240d3a
%{_libdir}/pkgconfig/exiv2.pc
14512e
%{_libdir}/cmake/exiv2/
14512e
%{_libdir}/libexiv2-xmp.a
240d3a
240d3a
%files doc
14512e
%{_pkgdocdir}/
14512e
240d3a
240d3a
240d3a
%changelog
14512e
* Wed Mar 04 2020 Jan Grulich <jgrulich@redhat.com> - 0.27.2-5
14512e
- Fix failing test
14512e
  Resolves: bz#1800472
14512e
14512e
* Wed Mar 04 2020 Jan Grulich <jgrulich@redhat.com> - 0.27.2-4
14512e
- Drop test for the previous CVE as we test it manually and we don't have POC available
14512e
  Resolves: bz#1800472
14512e
14512e
* Wed Feb 26 2020 Jan Grulich <jgrulich@redhat.com> - 0.27.2-3
14512e
- Fix infinite loop and hang in Jp2Image::readMetadata()
14512e
  Resolves: bz#1800472
14512e
14512e
* Tue Oct 29 2019 Jan Grulich <jgrulich@redhat.com> - 0.27.2-2
14512e
  Rebuild
14512e
  Resolves: bz#1651917
14512e
14512e
* Fri Sep 20 2019 Jan Grulich <jgrulich@redhat.com> - 0.27.2-1
14512e
- Update to 0.27.2
14512e
  Resolves: bz#1651917
14512e
240d3a
* Tue Sep 11 2018 Jan Grulich <jgrulich@redhat.com> - 0.26-10
240d3a
- Security fix for CVE-2018-16336
240d3a
240d3a
* Tue Jul 24 2018 Jan Grulich <jgrulich@redhat.com> - 0.26-9
240d3a
- Security fix for CVE-2017-17723, CVE-2017-17725, CVE-2018-10958, CVE-2018-10998,
240d3a
  CVE-2018-11531, CVE-2018-12264, CVE-2018-12265, CVE-2018-14046, CVE-2018-5772,
240d3a
  CVE-2018-8976, CVE-2018-8977, CVE-2018-9144
240d3a
240d3a
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.26-8
240d3a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
240d3a
240d3a
* Sat Feb 03 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.26-7
240d3a
- Switch to %%ldconfig_scriptlets
240d3a
240d3a
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.26-6
240d3a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
240d3a
240d3a
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.26-5
240d3a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
240d3a
240d3a
* Sun May 28 2017 Rex Dieter <rdieter@fedoraproject.org> - 0.26-4
240d3a
- Security fix for CVE-2017-9239 (#1455859,#1455860)
240d3a
240d3a
* Sat May 20 2017 Rex Dieter <rdieter@fedoraproject.org> - 0.26-3
240d3a
- -libs: use Recommends: instead (#1452938)
240d3a
240d3a
* Mon May 15 2017 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.26-2
240d3a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild
240d3a
240d3a
* Tue May 02 2017 Rex Dieter <rdieter@fedoraproject.org> - 0.26-1
240d3a
- exiv2-0.26 (#1447129)
240d3a
240d3a
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.25-4
240d3a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
240d3a
240d3a
* Mon Feb 22 2016 Rex Dieter <rdieter@fedoraproject.org> 0.25-3
240d3a
- embedded copy of exempi should be compiled with BanAllEntityUsage (#888769)
240d3a
240d3a
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.25-2
240d3a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
240d3a
240d3a
* Mon Jun 22 2015 Rex Dieter <rdieter@fedoraproject.org> 0.25-1
240d3a
- exiv2-0.25 (#1234185)
240d3a
240d3a
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.24-7
240d3a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
240d3a
240d3a
* Tue Apr 14 2015 Rex Dieter <rdieter@fedoraproject.org> 0.24-6
240d3a
- rebuild (gcc5)
240d3a
240d3a
* Thu Feb 19 2015 Rex Dieter <rdieter@fedoraproject.org> 0.24-5
240d3a
- rebuild (gcc5)
240d3a
240d3a
* Mon Jan 05 2015 Rex Dieter <rdieter@fedoraproject.org> 0.24-4
240d3a
- CVE-2014-9449 exiv2: buffer overflow in RiffVideo::infoTagsHandler (#1178909)
240d3a
240d3a
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.24-3
240d3a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
240d3a
240d3a
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.24-2
240d3a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
240d3a
240d3a
* Mon Dec 02 2013 Rex Dieter <rdieter@fedoraproject.org> - 0.24-1
240d3a
- exiv2-0.24, abi bump
240d3a
- -doc subpkg
240d3a
- ready experimental cmake buildsystem support
240d3a
240d3a
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.23-5
240d3a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
240d3a
240d3a
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.23-4
240d3a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
240d3a
240d3a
* Tue Aug 14 2012 Rex Dieter <rdieter@fedoraproject.org> 0.23-3
240d3a
- empty html doc dir (#848025)
240d3a
240d3a
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.23-2
240d3a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
240d3a
240d3a
* Tue Apr 24 2012 Rex Dieter <rdieter@fedoraproject.org> 0.23-1
240d3a
- exiv2-0.23
240d3a
- abi bump
240d3a
240d3a
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.22-5
240d3a
- Rebuilt for c++ ABI breakage
240d3a
240d3a
* Mon Jan 16 2012 Rex Dieter <rdieter@fedoraproject.org> 0.22-4
240d3a
- better rpath handling
240d3a
- revert locale change, move back to -libs
240d3a
240d3a
* Mon Jan 16 2012 Rex Dieter <rdieter@fedoraproject.org> 0.22-3
240d3a
- move locale files to main pkg (from -libs)
240d3a
240d3a
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.22-2
240d3a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
240d3a
240d3a
* Fri Oct 14 2011 Rex Dieter <rdieter@fedoraproject.org> 0.22-1
240d3a
- exiv2-0.22
240d3a
240d3a
* Tue Sep 27 2011 Rex Dieter <rdieter@fedoraproject.org> 0.21.1-3
240d3a
- New Tamron 70-300 mm lens improperly recognized (#708403)
240d3a
240d3a
* Mon Sep 26 2011 Rex Dieter <rdieter@fedoraproject.org> 0.21.1-2
240d3a
- gthumb crashes because of bug in exiv2 0.21.1 (#741429)
240d3a
240d3a
* Sat Feb 26 2011 Rex Dieter <rdieter@fedoraproject.org> 0.21.1-1
240d3a
- exiv2-0.21.1
240d3a
240d3a
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.21-3
240d3a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
240d3a
240d3a
* Wed Jan 26 2011 Rex Dieter <rdieter@fedoraproject.org> 0.21-2
240d3a
- Move ldconfig scriptlet calls to -libs (#672361)
240d3a
240d3a
* Wed Dec 01 2010 Rex Dieter <rdieter@fedoraproject.org> - 0.21-1
240d3a
- exiv2-0.21
240d3a
240d3a
* Sun May 30 2010 Rex Dieter <rdieter@fedoraproject.org> - 0.20-1
240d3a
- exiv2-0.20
240d3a
240d3a
* Wed Dec 30 2009 Rex Dieter <rdieter@fedoraproject.org> - 0.19-1
240d3a
- exiv2-0.19 (#552275)
240d3a
240d3a
* Sun Dec 13 2009 Rex Dieter <rdieter@fedoraproject.org> - 0.18.2-3
240d3a
- -libs unconditional
240d3a
- tighten deps using %%?_isa
240d3a
240d3a
* Fri Aug 07 2009 Rex Dieter <rdieter@fedoraproject.org> - 0.18.2-2
240d3a
- (again) drop -fvisibility-inlines-hidden (#496050)
240d3a
240d3a
* Fri Jul 24 2009 Rex Dieter <rdieter@fedoraproject.org> - 0.18.2-1
240d3a
- exiv2-0.18.2
240d3a
- drop visibility patch
240d3a
240d3a
* Fri Apr 17 2009 Rex Dieter <rdieter@fedoraproject.org> - 0.18.1-1
240d3a
- exiv2-0.18.1
240d3a
- drop -fvisibility-inlines-hidden (#496050)
240d3a
240d3a
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.18-2
240d3a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
240d3a
240d3a
* Thu Dec 18 2008 Rex Dieter <rdieter@fedoraproject.org> 0.18-1
240d3a
- exiv2-0.18
240d3a
240d3a
* Fri Dec 12 2008 Rex Dieter <rdieter@fedoraproject.org> 0.17.2-2
240d3a
- rebuild for pkgconfig deps
240d3a
240d3a
* Mon Jun 23 2008 Rex Dieter <rdieter@fedoraproject.org> 0.17.1-1
240d3a
- exiv2-0.17.1
240d3a
240d3a
* Mon Feb 11 2008 Rex Dieter <rdieter@fedoraproject.org> 0.16-2
240d3a
- respin (gcc43)
240d3a
- gcc43 patch
240d3a
240d3a
* Sun Jan 13 2008 Rex Dieter <rdieter[AT]fedoraproject.org> 0.16-1
240d3a
- eviv2-0.16
240d3a
240d3a
* Mon Dec 17 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 0.16-0.3.pre1
240d3a
- CVE-2007-6353 (#425924)
240d3a
240d3a
* Mon Nov 26 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 0.16-0.2.pre1
240d3a
- -libs subpkg toggle (f8+)
240d3a
240d3a
* Tue Nov 13 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 0.16-0.1.pre1
240d3a
- exiv2-0.16-pre1
240d3a
240d3a
* Tue Sep 18 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 0.15-4
240d3a
- -libs: -Requires: %%name
240d3a
240d3a
* Tue Aug 21 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 0.15-3
240d3a
- -libs subpkg to be multilib-friendlier (f8+)
240d3a
240d3a
* Sat Aug 11 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 0.15-2
240d3a
- License: GPLv2+
240d3a
240d3a
* Thu Jul 12 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 0.15-1
240d3a
- exiv2-0.15
240d3a
240d3a
* Mon Apr 02 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 0.14-1
240d3a
- exiv2-0.14
240d3a
240d3a
* Tue Nov 28 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.12-1
240d3a
- exiv2-0.12
240d3a
240d3a
* Wed Oct 04 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.11-3
240d3a
- respin
240d3a
240d3a
* Tue Sep 19 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.11-2
240d3a
- BR: zlib-devel
240d3a
240d3a
* Tue Sep 19 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.11-1
240d3a
- exiv2-0.11
240d3a
240d3a
* Tue Aug 29 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.10-2
240d3a
- fc6 respin
240d3a
240d3a
* Sat Jun 03 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.10-1
240d3a
- 0.10
240d3a
240d3a
* Wed May 17 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.9.1-3
240d3a
- cleanup %%description
240d3a
- set eXecute bit on installed lib.
240d3a
- no_rpath patch
240d3a
- deps patch (items get (re)compiled on *every* call to 'make')
240d3a
240d3a
* Wed May 17 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.9.1-2
240d3a
- %%post/%%postun: /sbin/ldconfig
240d3a
240d3a
* Tue May 16 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.9.1-1
240d3a
- first try