Blob Blame History Raw

Summary: Exif and Iptc metadata manipulation library
Name:	 exiv2
Version: 0.12
Release: 1%{?dist} 

License: GPL
Group:	 Applications/Multimedia
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires: zlib-devel

Patch1: exiv2-0.11-no_rpath.patch
Patch2: exiv2-0.9.1-deps.patch

Exiv2 comprises of a C++ library and a command line utility to access image
metadata. Exiv2 supports full read and write access to the Exif and Iptc
metadata, Exif MakerNote support, extract and delete methods for Exif
thumbnails, classes to access Ifd and so on.
The command line utility allows you to:
* print the Exif metadata of Jpeg images as summary info, interpreted values,
  or the plain data for each tag
* print the Iptc metadata of Jpeg images
* print 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 (including thumbnails),
  Iptc metadata and Jpeg comments

%package devel
Summary: Header files, libraries and development documentation for %{name}
Group:	 Development/Libraries
Requires: %{name} = %{version}-%{release}
Requires: pkgconfig
%description devel

%setup -q

%patch1 -p1 -b .no_rpath
%patch2 -p1 -b .deps

%configure --disable-static 

make -C src %{?_smp_mflags} 


make -C src install DESTDIR=$RPM_BUILD_ROOT

# Unpackaged files
rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.la

# set eXecute bit on installed lib
chmod a+x $RPM_BUILD_ROOT%{_libdir}/libexiv2-*.so

## FIXME/TODO: patch installed exiv2-config to instead pull values from pkgconfig


%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig


%files devel
%doc doc/html

* Tue Nov 28 2006 Rex Dieter <rexdieter[AT]> 0.12-1
- exiv2-0.12

* Wed Oct 04 2006 Rex Dieter <rexdieter[AT]> 0.11-3
- respin

* Tue Sep 19 2006 Rex Dieter <rexdieter[AT]> 0.11-2
- BR: zlib-devel

* Tue Sep 19 2006 Rex Dieter <rexdieter[AT]> 0.11-1
- exiv2-0.11

* Tue Aug 29 2006 Rex Dieter <rexdieter[AT]> 0.10-2
- fc6 respin

* Sat Jun 03 2006 Rex Dieter <rexdieter[AT]> 0.10-1
- 0.10

* Wed May 17 2006 Rex Dieter <rexdieter[AT]> 0.9.1-3
- cleanup %%description
- set eXecute bit on installed lib.
- no_rpath patch
- deps patch (items get (re)compiled on *every* call to 'make')

* Wed May 17 2006 Rex Dieter <rexdieter[AT]> 0.9.1-2
- %%post/%%postun: /sbin/ldconfig

* Tue May 16 2006 Rex Dieter <rexdieter[AT]> 0.9.1-1
- first try