File python-pyexiv2.spec of Package python-pyexiv2

#
# spec file for package python-pyexiv2
#
# Copyright (c) 2017 SUSE LINUX 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
Source1:        setup.py
BuildRequires:  gcc-c++
BuildRequires:  libexiv2-devel
BuildRequires:  libstdc++-devel
BuildRequires:  pkgconfig
BuildRequires:  python2
BuildRequires:  python2-devel
BuildRequires:  python2-setuptools
%py_requires
%if 0%{?suse_version} > 1325
BuildRequires:  libboost_python-devel
%else
BuildRequires:  boost-devel
%endif

%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}"
cp %{SOURCE1} .

%build
python2 setup.py build

%install
python2 setup.py install --skip-build --root %{buildroot}

%files
%doc COPYING README todo
%{python_sitearch}/libexiv2python.so
%{python_sitearch}/pyexiv2
# not excepting python-2.8 :)
%{python_sitearch}/pyexiv2-0.3.2-py2.7.egg-info/
%{python_sitearch}/pyexiv2-0.3.2-py2.7.egg-info/*

%changelog
openSUSE Build Service is sponsored by