0af968
0af968
Summary: Exif and Iptc metadata manipulation library
70ca91
Name:    exiv2
70ca91
Version: 0.26
70ca91
Release: 3%{?dist}
0af968
0af968
License: GPLv2+
70ca91
URL:     http://www.exiv2.org/
70ca91
Source0: http://www.exiv2.org/builds/exiv2-%{version}-trunk.tar.gz
0af968
70ca91
## upstream patches (lookaside cache)
70ca91
Patch6:  0006-1296-Fix-submitted.patch
70ca91
70ca91
Patch10: exiv2-CVE-2017-17723.patch
70ca91
Patch11: exiv2-CVE-2017-17725.patch
70ca91
Patch12: exiv2-CVE-2017-5772.patch
70ca91
70ca91
## upstreamable patches
70ca91
Patch100: exiv2-doxygen.patch
0af968
0af968
BuildRequires: expat-devel
0af968
BuildRequires: gettext
0af968
BuildRequires: pkgconfig
70ca91
BuildRequires: pkgconfig(libcurl)
0af968
BuildRequires: zlib-devel
0af968
# docs
0af968
BuildRequires: doxygen graphviz libxslt
0af968
0af968
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
0af968
0af968
0af968
%description
0af968
A command line utility to access image metadata, allowing one to:
0af968
* print the Exif metadata of Jpeg images as summary info, interpreted values,
0af968
  or the plain data for each tag
0af968
* print the Iptc metadata of Jpeg images
0af968
* print the Jpeg comment of Jpeg images
0af968
* set, add and delete Exif and Iptc metadata of Jpeg images
0af968
* adjust the Exif timestamp (that's how it all started...)
0af968
* rename Exif image files according to the Exif timestamp
0af968
* extract, insert and delete Exif metadata (including thumbnails),
0af968
  Iptc metadata and Jpeg comments
0af968
0af968
%package devel
0af968
Summary: Header files, libraries and development documentation for %{name}
0af968
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
0af968
%description devel
0af968
%{summary}.
0af968
0af968
%package libs
0af968
Summary: Exif and Iptc metadata manipulation library
0af968
%description libs
0af968
A C++ library to access image metadata, supporting full read and write access
70ca91
to the Exif and Iptc metadata, Exif MakerNote support, extract and delete
0af968
methods for Exif thumbnails, classes to access Ifd and so on.
0af968
70ca91
%package doc
70ca91
Summary: Api documentation for %{name}
70ca91
BuildArch: noarch
70ca91
%description doc
70ca91
%{summary}.
0af968
0af968
70ca91
%prep
70ca91
%autosetup -n %{name}-trunk -p1
0af968
0af968
%build
70ca91
# exiv2: embedded copy of exempi should be compiled with BanAllEntityUsage
70ca91
# https://bugzilla.redhat.com/show_bug.cgi?id=888769
70ca91
export CPPFLAGS="-DBanAllEntityUsage=1"
70ca91
0af968
%configure \
0af968
  --disable-rpath \
70ca91
  --disable-static
0af968
70ca91
# rpath
0af968
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
0af968
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
0af968
70ca91
make %{?_smp_mflags}
70ca91
make doc -k ||:
0af968
0af968
%install
70ca91
rm -rf %{buildroot}
0af968
0af968
make install DESTDIR=%{buildroot}
0af968
0af968
%find_lang exiv2
0af968
0af968
## Unpackaged files
0af968
rm -fv %{buildroot}%{_libdir}/libexiv2.la
0af968
0af968
## fix perms on installed lib
0af968
ls -l     %{buildroot}%{_libdir}/libexiv2.so.*
0af968
chmod 755 %{buildroot}%{_libdir}/libexiv2.so.*
0af968
0af968
70ca91
%find_lang exiv2 --with-man
70ca91
70ca91
## unpackaged files
70ca91
rm -fv %{buildroot}%{_libdir}/libexiv2.la
70ca91
0af968
%check
70ca91
export PKG_CONFIG_PATH=%{buildroot}%{_libdir}/pkgconfig
0af968
test "$(pkg-config --modversion exiv2)" = "%{version}"
0af968
test -x %{buildroot}%{_libdir}/libexiv2.so
0af968
0af968
70ca91
%files -f exiv2.lang
70ca91
%license COPYING
70ca91
%doc doc/ChangeLog
70ca91
# README is mostly installation instructions
70ca91
#doc README
0af968
%{_bindir}/exiv2
70ca91
%{_mandir}/man1/exiv2*.1*
0af968
0af968
%post libs -p /sbin/ldconfig
0af968
%postun libs -p /sbin/ldconfig
0af968
70ca91
%files libs
70ca91
%{_libdir}/libexiv2.so.26*
0af968
0af968
%files devel
0af968
%{_includedir}/exiv2/
0af968
%{_libdir}/libexiv2.so
0af968
%{_libdir}/pkgconfig/exiv2.pc
0af968
70ca91
%files doc
70ca91
%doc doc/html
0af968
0af968
%changelog
70ca91
* Fri Feb 23 2018 Jan Grulich <jgrulich@redhat.com> - 0.26-3
70ca91
- Fix uncontrolled recursion in image.cpp:Exiv2::Image::printIFDStructure() which can allow a
70ca91
  remote attacker to cause a denial of service via a crafted tif file
70ca91
  Resolves: bz#1548410
70ca91
70ca91
* Thu Feb 22 2018 Jan Grulich <jgrulich@redhat.com> - 0.26-2
70ca91
- Fix heap-based buffer over-read in Exiv2::Image::byteSwap4 in image.cpp
70ca91
  Resolves: bz#1547207
70ca91
70ca91
  Fix heap-based buffer over-read in Exiv2::getULong function in types.cpp
70ca91
  Resolves: bz#1545232
70ca91
70ca91
* Tue Aug 29 2017 Jan Grulich <jgrulich@redhat.com> - 0.26-1
70ca91
- Update to 0.26
70ca91
  Resolves: bz#1420227
70ca91
cae675
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 0.23-6
cae675
- Mass rebuild 2014-01-24
cae675
cae675
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.23-5
cae675
- Mass rebuild 2013-12-27
cae675
0af968
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.23-4
0af968
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
0af968
0af968
* Tue Aug 14 2012 Rex Dieter <rdieter@fedoraproject.org> 0.23-3
0af968
- empty html doc dir (#848025)
0af968
0af968
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.23-2
0af968
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
0af968
0af968
* Tue Apr 24 2012 Rex Dieter <rdieter@fedoraproject.org> 0.23-1
0af968
- exiv2-0.23
0af968
- abi bump
0af968
0af968
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.22-5
0af968
- Rebuilt for c++ ABI breakage
0af968
0af968
* Mon Jan 16 2012 Rex Dieter <rdieter@fedoraproject.org> 0.22-4
0af968
- better rpath handling
0af968
- revert locale change, move back to -libs
0af968
0af968
* Mon Jan 16 2012 Rex Dieter <rdieter@fedoraproject.org> 0.22-3
0af968
- move locale files to main pkg (from -libs)
0af968
0af968
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.22-2
0af968
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
0af968
0af968
* Fri Oct 14 2011 Rex Dieter <rdieter@fedoraproject.org> 0.22-1
0af968
- exiv2-0.22
0af968
0af968
* Tue Sep 27 2011 Rex Dieter <rdieter@fedoraproject.org> 0.21.1-3
0af968
- New Tamron 70-300 mm lens improperly recognized (#708403)
0af968
0af968
* Mon Sep 26 2011 Rex Dieter <rdieter@fedoraproject.org> 0.21.1-2
0af968
- gthumb crashes because of bug in exiv2 0.21.1 (#741429)
0af968
0af968
* Sat Feb 26 2011 Rex Dieter <rdieter@fedoraproject.org> 0.21.1-1
0af968
- exiv2-0.21.1
0af968
0af968
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.21-3
0af968
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
0af968
0af968
* Wed Jan 26 2011 Rex Dieter <rdieter@fedoraproject.org> 0.21-2
0af968
- Move ldconfig scriptlet calls to -libs (#672361)
0af968
0af968
* Wed Dec 01 2010 Rex Dieter <rdieter@fedoraproject.org> - 0.21-1
0af968
- exiv2-0.21
0af968
0af968
* Sun May 30 2010 Rex Dieter <rdieter@fedoraproject.org> - 0.20-1
0af968
- exiv2-0.20
0af968
0af968
* Wed Dec 30 2009 Rex Dieter <rdieter@fedoraproject.org> - 0.19-1
0af968
- exiv2-0.19 (#552275)
0af968
0af968
* Sun Dec 13 2009 Rex Dieter <rdieter@fedoraproject.org> - 0.18.2-3
0af968
- -libs unconditional
0af968
- tighten deps using %%?_isa
0af968
0af968
* Fri Aug 07 2009 Rex Dieter <rdieter@fedoraproject.org> - 0.18.2-2
0af968
- (again) drop -fvisibility-inlines-hidden (#496050)
0af968
0af968
* Fri Jul 24 2009 Rex Dieter <rdieter@fedoraproject.org> - 0.18.2-1
0af968
- exiv2-0.18.2
0af968
- drop visibility patch
0af968
0af968
* Fri Apr 17 2009 Rex Dieter <rdieter@fedoraproject.org> - 0.18.1-1
0af968
- exiv2-0.18.1
0af968
- drop -fvisibility-inlines-hidden (#496050)
0af968
0af968
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.18-2
0af968
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
0af968
0af968
* Thu Dec 18 2008 Rex Dieter <rdieter@fedoraproject.org> 0.18-1
0af968
- exiv2-0.18
0af968
0af968
* Fri Dec 12 2008 Rex Dieter <rdieter@fedoraproject.org> 0.17.2-2
0af968
- rebuild for pkgconfig deps
0af968
0af968
* Mon Jun 23 2008 Rex Dieter <rdieter@fedoraproject.org> 0.17.1-1
0af968
- exiv2-0.17.1
0af968
0af968
* Mon Feb 11 2008 Rex Dieter <rdieter@fedoraproject.org> 0.16-2
0af968
- respin (gcc43)
0af968
- gcc43 patch
0af968
0af968
* Sun Jan 13 2008 Rex Dieter <rdieter[AT]fedoraproject.org> 0.16-1
0af968
- eviv2-0.16
0af968
0af968
* Mon Dec 17 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 0.16-0.3.pre1
0af968
- CVE-2007-6353 (#425924)
0af968
0af968
* Mon Nov 26 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 0.16-0.2.pre1
0af968
- -libs subpkg toggle (f8+)
0af968
0af968
* Tue Nov 13 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 0.16-0.1.pre1
0af968
- exiv2-0.16-pre1
0af968
0af968
* Tue Sep 18 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 0.15-4
0af968
- -libs: -Requires: %%name
0af968
0af968
* Tue Aug 21 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 0.15-3
0af968
- -libs subpkg to be multilib-friendlier (f8+)
0af968
0af968
* Sat Aug 11 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 0.15-2
0af968
- License: GPLv2+
0af968
0af968
* Thu Jul 12 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 0.15-1
0af968
- exiv2-0.15
0af968
0af968
* Mon Apr 02 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 0.14-1
0af968
- exiv2-0.14
0af968
0af968
* Tue Nov 28 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.12-1
0af968
- exiv2-0.12
0af968
0af968
* Wed Oct 04 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.11-3
0af968
- respin
0af968
0af968
* Tue Sep 19 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.11-2
0af968
- BR: zlib-devel
0af968
0af968
* Tue Sep 19 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.11-1
0af968
- exiv2-0.11
0af968
0af968
* Tue Aug 29 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.10-2
0af968
- fc6 respin
0af968
0af968
* Sat Jun 03 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.10-1
0af968
- 0.10
0af968
0af968
* Wed May 17 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.9.1-3
0af968
- cleanup %%description
0af968
- set eXecute bit on installed lib.
0af968
- no_rpath patch
0af968
- deps patch (items get (re)compiled on *every* call to 'make')
0af968
0af968
* Wed May 17 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.9.1-2
0af968
- %%post/%%postun: /sbin/ldconfig
0af968
0af968
* Tue May 16 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.9.1-1
0af968
- first try