Blob Blame History Raw

%define pre pre1

%if 0%{?fedora} > 7
# make -libs subpkg
%define libs 1

Summary: Exif and Iptc metadata manipulation library
Name:	 exiv2
Version: 0.16
Release: 0.3.%{?pre}%{?dist}

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

BuildRequires: chrpath
BuildRequires: expat-devel
BuildRequires: gettext
BuildRequires: zlib-devel
# docs
#BuildRequires: doxygen graphviz libxslt

Patch2: exiv2-0.9.1-deps.patch
Patch3: exiv-0.16-CVE-2007-6353.patch

%if 0%{?libs}
Requires: %{name}-libs = %{version}-%{release}
Obsoletes: %{name}-libs < %{version}-%{release}
Provides:  %{name}-libs = %{version}-%{release}

A command line utility to access image metadata, allowing one 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}-libs = %{version}-%{release}
Requires: pkgconfig
%description devel

%if 0%{?libs}
%package libs
Summary: Exif and Iptc metadata manipulation library
Group: System Environment/Libraries
# helps multilib upgrades
# Obsoletes: %{name} < %{version}-%{release}
# not *strictly* required, but runtime may expect presence of exiv2 binary
# we'll try removing it, and see... -- Rex
#Requires: %{name} = %{version}-%{release}
%description libs
A C++ library to access image metadata, supporting 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.

%setup -q -n %{name}-%{version}%{?pre:-%{pre}}

%patch2 -p1 -b .deps
%patch3 -p1 -b .CVE-2007-6353

mkdir doc/html

%configure \
  --disable-rpath \

make %{?_smp_mflags} 

rm -rf %{buildroot} 

make install DESTDIR=%{buildroot}

%find_lang exiv2

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

# fix perms on installed lib
chmod 755 %{buildroot}%{_libdir}/lib*.so*

# nuke rpaths
chrpath --list   %{buildroot}%{_bindir}/exiv2
chrpath --delete %{buildroot}%{_bindir}/exiv2

rm -rf %{buildroot} 

%post %{?libs:libs} -p /sbin/ldconfig

%postun %{?libs:libs} -p /sbin/ldconfig

%files %{!?libs:-f exiv2.lang} 

%if 0%{?libs}
%files libs -f exiv2.lang

%files devel
%doc doc/html

* Mon Dec 17 2007 Rex Dieter <rdieter[AT]> 0.16-0.3.pre1
- CVE-2007-6353 (#425921, #425924)

* Mon Nov 26 2007 Rex Dieter <rdieter[AT]> 0.16-0.2.pre1
- -libs subpkg toggle (f8+)

* Tue Nov 13 2007 Rex Dieter <rdieter[AT]> 0.16-0.1.pre1
- exiv2-0.16-pre1

* Tue Sep 18 2007 Rex Dieter <rdieter[AT]> 0.15-4
- -libs: -Requires: %%name

* Tue Aug 21 2007 Rex Dieter <rdieter[AT]> 0.15-3
- -libs subpkg to be multilib-friendlier (f8+)

* Sat Aug 11 2007 Rex Dieter <rdieter[AT]> 0.15-2
- License: GPLv2+

* Thu Jul 12 2007 Rex Dieter <rdieter[AT]> 0.15-1
- exiv2-0.15

* Mon Apr 02 2007 Rex Dieter <rdieter[AT]> 0.14-1
- exiv2-0.14

* 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