File exiv2.spec of Package exiv2
#
# spec file for package exiv2 (Version 0.20)
#
# Copyright (c) 2010 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 pkg-config python zlib-devel
Url: http://www.exiv2.org/
License: GPLv2+
Group: Development/Libraries/C and C++
Summary: Tool to access image Exif metadata
Version: 0.20
Release: 1
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source0: %{name}-%{version}.tar.bz2
Source1: baselibs.conf
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-9
License: GPLv2+
Summary: Library to access image metadata
Group: Development/Libraries/C and C++
%description -n libexiv2-9
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: GPLv2+
Summary: Development Headers for Exiv2
Group: Development/Libraries/C and C++
Requires: libexiv2-9 = %{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
%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-9 -p /sbin/ldconfig
%postun -n libexiv2-9 -p /sbin/ldconfig
%files lang -f exiv2.lang
%files
%defattr(-,root,root)
%doc doc/ChangeLog doc/cmd.txt
%{_bindir}/exiv2
%files -n libexiv2-9
%defattr(-,root,root)
%{_libdir}/libexiv2.so.*
%files -n libexiv2-devel
%defattr(-,root,root)
%doc doc/html
%{_includedir}/exiv2
%{_libdir}/libexiv2.so
%{_libdir}/pkgconfig/exiv2.pc
%{_mandir}/man*/*
%changelog