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