File python-pyexiv2.spec of Package python-pyexiv2

#
# spec file for package python-pyexiv2
#
# Copyright (c) 2012 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/
#


%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(True)")}

Name:           python-pyexiv2
Version:        0.3.2
Release:        0
Summary:        Python Bindings to Exiv2
License:        GPL-2.0+
Group:          Development/Libraries/Python
Url:            http://tilloy.net/dev/pyexiv2/
Source:         http://launchpad.net/pyexiv2/0.3.x/%{version}/+download/pyexiv2-%{version}.tar.bz2
BuildRequires:  boost-devel
BuildRequires:  gcc-c++
BuildRequires:  libexiv2-devel
BuildRequires:  libstdc++-devel
BuildRequires:  pkgconfig
BuildRequires:  python
BuildRequires:  python-devel
BuildRequires:  scons
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%py_requires

%description
pyexiv2 is a python binding to exiv2, the C++ library for manipulation of EXIF
and IPTC image metadata. It is a python module that allows your python scripts
to read and write metadata (EXIF, IPTC, thumbnail) embedded in image files
(JPEG, TIFF, ...).

It is designed as a high level interface to the functionalities offered by
exiv2 (and is built on top of it). Using python's built-in data types and
standard modules, it provides easy manipulation of image metadata.

%prep
%setup -q -n "pyexiv2-%{version}"

%build
CPPFLAGS="%{optflags}" scons

%install
CPPFLAGS="%{optflags}" scons install DESTDIR=%{buildroot}


%clean
%{?buildroot:rm -rf %{buildroot}}

%files
%defattr(-,root,root)
%doc COPYING README todo
%{python_sitearch}/libexiv2python.so
%{python_sitearch}/pyexiv2

%changelog
openSUSE Build Service is sponsored by