##### GENERAL STUFF ##### %define libname %mklibname exiv2_ 4 %define libdev %mklibname exiv2 -d Summary: Command line tool to access EXIF data in image files Name: exiv2 Version: 0.17.1 Release: %mkrel 1 License: GPL Group: Graphics Url: http://www.exiv2.org/ ##### SOURCE FILES ##### Source: http://www.exiv2.org/%name-%{version}.tar.gz ##### ADDITIONAL DEFINITIONS ##### #Provides: libexiv BuildRoot: %{_tmppath}/%{name}-buildroot BuildRequires: doxygen BuildRequires: graphviz BuildRequires: python BuildRequires: libxslt-proc BuildRequires: expat-devel ##### SUB-PACKAGES ##### %description Exiv2 is a command line utility to access image metadata: * print the Exif metadata of JPEG, TIFF and several RAW image formats as summary info, interpreted values, or the plain data for each tag (a sample is here) * print the IPTC metadata of JPEG images * print, set and delete the JPEG comment of JPEG images * set, add and delete Exif and IPTC metadata of JPEG images * adjust the Exif timestamp (that's how it all started...) * rename Exif image files according to the Exif timestamp * extract, insert and delete Exif metadata, IPTC metadata and JPEG comments * extract, insert and delete the thumbnail image embedded in the Exif metadata * fix the Exif ISO setting of picture taken with Nikon cameras %package -n %libname Summary: Library to access EXIF data in image files #Provides: libexiv Group: Graphics Obsoletes: %{_lib}exiv22 < 0.16-1 %description -n %libname libexiv2 is a C++ library to access image metadata. libexiv2 is free software. The Exiv2 library provides * full read and write access to the Exif and IPTC metadata of an image through Exiv2 keys and standard C++ iterators (Example1, Example2, Example3, Example4) * a smart IPTC implementation that does not affect data that programs like Photoshop store in the same image segment * Exif MakerNote support: o MakerNote tags can be accessed just like any other Exif metadata o a sophisticated write algorithm avoids corrupting the MakerNote: 1) the MakerNote is not re-located if possible at all, and 2) MakerNote Ifd offsets are re-calculated if the MakerNote needs to be moved (for known Ifd MakerNotes) * extract and delete methods for Exif thumbnails (both, JPEG and TIFF thumbnails) * set methods for Exif thumbnails (JPEG only, TIFF thumbnails can be set from individual tags) * complete API documentation (by Doxygen) %package -n %{libdev} Summary: Headers and links to compile against the "%{libname}" library Requires: %{libname} = %{version} Requires: multiarch-utils Provides: libexiv-devel = %{version} Obsoletes: %{_lib}exiv2_2-devel BuildRequires: zlib1-devel Group: Development/C %description -n %{libdev} This package contains all files which one needs to compile programs using the "%{libname}" library. %package doc Summary: Exiv2 library documentation Group: Books/Computer books Conflicts: %{_lib}exiv2_2-devel %description doc Exiv2 library documentation. ##### PREP ##### %prep rm -rf $RPM_BUILD_DIR/exiv2-%{version} %setup -q -n exiv2-%{version} ##### BUILD ##### %build # "autogen" is needed if we have a CVS/SVN snapshot. #./autogen.sh #LDFLAGS="$LDFLAGS -module" %configure --enable-shared %make cd po make update-po cd .. make doc ##### INSTALL ##### %install rm -rf $RPM_BUILD_ROOT #makeinstall %make DESTDIR=%{buildroot} install ##### PRE/POST INSTALL SCRIPTS ##### %find_lang exiv2 %if %mdkversion < 200900 %post -n %{libname} -p /sbin/ldconfig %endif %if %mdkversion < 200900 %postun -n %{libname} -p /sbin/ldconfig %endif %clean rm -rf $RPM_BUILD_ROOT ##### FILE LISTS FOR ALL BINARY PACKAGES ##### ##### exiv2 %files -f %{name}.lang %doc COPYING README %{_bindir}/exiv2 %{_mandir}/man1/* ##### libexiv2 %files -n %libname %defattr(-,root,root) %{_libdir}/lib%{name}.so.* ##### libexiv2-devel %files -n %{libdev} %defattr(-,root,root) %{_libdir}/lib%{name}.so %{_libdir}/*.la %{_libdir}/*.a %{_libdir}/pkgconfig/* %{_includedir}/* %files doc %defattr(-,root,root) %doc doc/ChangeLog doc/cmd.txt doc/html doc/include doc/index.html doc/templates ##### CHANGELOG ##### %changelog * Mon Jun 23 2008 Tiago Salem <salem@mandriva.com.br> 0.17.1-1mdv2009.0 + Revision: 228078 - version 0.17.1 - fix CVE-2008-2696 * Fri Jun 20 2008 Helio Chissini de Castro <helio@mandriva.com> 0.17-1mdv2009.0 + Revision: 227482 - New upstream version - Moved docs for a separated doc package instead of devel package - Fixed devel package naming, as new major was making impossible to upgrade + Thierry Vignaud <tvignaud@mandriva.com> - rebuild + Pixel <pixel@mandriva.com> - do not call ldconfig in %%post/%%postun, it is now handled by filetriggers * Tue Feb 05 2008 Anssi Hannula <anssi@mandriva.org> 0.16-3mdv2008.1 + Revision: 162757 - remove obsoletes on old library * Sat Jan 26 2008 Anssi Hannula <anssi@mandriva.org> 0.16-2mdv2008.1 + Revision: 158233 - obsolete old library name * Fri Jan 25 2008 Marcelo Ricardo Leitner <mrl@mandriva.com> 0.16-1mdv2008.1 + Revision: 157944 - New stable upstream: 0.16. Closes: #36634 + Olivier Blin <oblin@mandriva.com> - restore BuildRoot + Thierry Vignaud <tvignaud@mandriva.com> - kill re-definition of %%buildroot on Pixel's request * Mon Nov 26 2007 Thierry Vignaud <tvignaud@mandriva.com> 0.16-0.pre1.3mdv2008.1 + Revision: 112174 - further improved libification (anssi) * Mon Nov 26 2007 Thierry Vignaud <tvignaud@mandriva.com> 0.16-0.pre1.2mdv2008.1 + Revision: 112173 - use more macros - fix library name (which fixes upgrading from previous bogus packages using a wrong major as a side effect) * Sun Nov 25 2007 Nicolas Lécureuil <neoclust@mandriva.org> 0.16-0.pre1.1mdv2008.1 + Revision: 111869 - Add Expat-devel as BuildRequire - 0.16 pre1 + Thierry Vignaud <tvignaud@mandriva.com> - do not duplicate description - description is not copyright * Tue Oct 16 2007 Angelo Naselli <anaselli@mandriva.org> 0.15-3mdv2008.1 + Revision: 98947 - Added documents into developer package * Tue Sep 18 2007 Guillaume Rousse <guillomovitch@mandriva.org> 0.15-2mdv2008.0 + Revision: 89634 - rebuild * Mon Aug 27 2007 Marcelo Ricardo Leitner <mrl@mandriva.com> 0.15-1mdv2008.0 + Revision: 71867 - New upstream: 0.15 * Fri Apr 20 2007 Angelo Naselli <anaselli@mandriva.org> 0.14-1mdv2008.0 + Revision: 16204 - new version 0.14 * Sun Mar 04 2007 Angelo Naselli <anaselli@mandriva.org> 0.13-1mdv2007.0 + Revision: 132257 - new version 0.13 * Mon Dec 04 2006 Angelo Naselli <anaselli@mandriva.org> 0.12-3mdv2007.1 + Revision: 90545 - Added version provided by libexiv-devel * Sun Dec 03 2006 Angelo Naselli <anaselli@mandriva.org> 0.12-2mdv2007.1 + Revision: 90288 - added zlib-devel requirement + Laurent Montel <lmontel@mandriva.com> - 0.12.0 - Import exiv2 * Sun Sep 10 2006 Emmanuel Andry <eandry@mandriva.org> 0.10-2mdv2007.0 - fix x86_64 build * Wed Aug 09 2006 Till Kamppeter <till@mandriva.com> 0.10-1mdv2007.0 - Initial release