File exiv2.spec of Package exiv2
#
# spec file for package exiv2 (Version 0.18.2)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: exiv2
BuildRequires: doxygen fdupes gcc-c++ gettext-devel libexpat-devel libxslt python zlib-devel
Url: http://www.exiv2.org/
License: GPL v2 or later
Group: Development/Libraries/C and C++
Summary: Tool to access image Exif metadata
Version: 0.18.2
Release: 1
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source0: exiv2-%version.tar.bz2
Patch1: gcc43.diff
Requires: %{name}-lang = %{version}
%description
Exiv2 is a command line utility to access image metadata from tags like
Exif.
Authors:
--------
Andreas Huggel <ahuggel@gmx.net>
%package -n libexiv2-5
License: GPL v2 or later
Summary: Library to access image metadata
Group: Development/Libraries/C and C++
%description -n libexiv2-5
libexiv2 is a C++ library with a C compatibility interface to access
image metadata, esp from Exif tags.
Authors:
--------
Andreas Huggel <ahuggel@gmx.net>
%package -n libexiv2-devel
License: GPL v2 or later
Summary: Development Headers for Exiv2
Group: Development/Libraries/C and C++
Requires: libexiv2-5 = %{version} libstdc++-devel
%description -n libexiv2-devel
Exiv2 is a C++ library and a command line utility to access image
metadata.
Authors:
--------
Andreas Huggel <ahuggel@gmx.net>
%lang_package
%prep
%setup -q
%patch1
%build
%configure --disable-static --with-pic
make %{?jobs:-j %jobs}
make doc
%install
%makeinstall
%find_lang exiv2
%fdupes -s doc/html
rm -f %{buildroot}%{_libdir}/*.la
%clean
rm -rf $RPM_BUILD_ROOT
%post -n libexiv2-5 -p /sbin/ldconfig
%postun -n libexiv2-5 -p /sbin/ldconfig
%files lang -f exiv2.lang
%files
%defattr(-,root,root)
%doc doc/ChangeLog doc/cmd.txt
%{_bindir}/exiv2
%files -n libexiv2-5
%defattr(-,root,root)
%{_libdir}/libexiv2.so.*
%files -n libexiv2-devel
%defattr(-,root,root)
%doc doc/html
/usr/include/exiv2
%{_libdir}/libexiv2.so
%{_libdir}/pkgconfig/exiv2.pc
%{_mandir}/man*/*
%changelog