Hello community,
here is the log from the commit of package python-pyexiv2 for openSUSE:Factory
checked in at 2017-11-25 08:43:59
Comparing /work/SRC/openSUSE:Factory/python-pyexiv2 (Old)
and /work/SRC/openSUSE:Factory/.python-pyexiv2.new (New)
Package is "python-pyexiv2"
Sat Nov 25 08:43:59 2017 rev:7 rq:545156 version:0.3.2
Changes:
--- /work/SRC/openSUSE:Factory/python-pyexiv2/python-pyexiv2.changes
2017-02-04 16:47:47.041798499 +0100
+++ /work/SRC/openSUSE:Factory/.python-pyexiv2.new/python-pyexiv2.changes
2017-11-25 08:44:03.711190979 +0100
@@ -1,0 +2,7 @@
+Thu Nov 23 13:53:20 UTC 2017 - mimi...@gmail.com
+
+- spec-cleaned
+- added setup.py to build without scons
+- removed scons from build
+
+---
New:
setup.py
Other differences:
--
++ python-pyexiv2.spec ++
--- /var/tmp/diff_new_pack.whSyuk/_old 2017-11-25 08:44:06.063105288 +0100
+++ /var/tmp/diff_new_pack.whSyuk/_new 2017-11-25 08:44:06.063105288 +0100
@@ -18,7 +18,6 @@
%{!?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
@@ -27,20 +26,20 @@
Group: Development/Libraries/Python
Url:http://tilloy.net/dev/pyexiv2/
Source:
http://launchpad.net/pyexiv2/0.3.x/%{version}/+download/pyexiv2-%{version}.tar.bz2
-%if 0%{?suse_version} > 1325
-BuildRequires: libboost_python-devel
-%else
-BuildRequires: boost-devel
-%endif
+Source1:setup.py
BuildRequires: gcc-c++
BuildRequires: libexiv2-devel
BuildRequires: libstdc++-devel
BuildRequires: pkgconfig
-BuildRequires: python
-BuildRequires: python-devel
-BuildRequires: scons
-BuildRoot: %{_tmppath}/%{name}-%{version}-build
+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
@@ -54,20 +53,20 @@
%prep
%setup -q -n "pyexiv2-%{version}"
+cp %{SOURCE1} .
%build
-CPPFLAGS="%{optflags}" scons
+python2 setup.py build
%install
-CPPFLAGS="%{optflags}" scons install DESTDIR=%{buildroot}
-
-%clean
-%{?buildroot:rm -rf %{buildroot}}
+python2 setup.py install --skip-build --root %{buildroot}
%files
-%defattr(-,root,root)
%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
++ setup.py ++
from setuptools import setup, find_packages, Extension
version = "0.3.2"
setup(
name="pyexiv2",
version=version,
url='http://tilloy.net/dev/pyexiv2/',
author='Olivier Tilloy',
author_email='oliv...@tilloy.net',
description='A python binding to exiv2, the C++ library for manipulation '
'of EXIF, IPTC and XMP image metadata.',
long_description=open('README').read(),
license='GNU GPL v2',
download_url=('https://launchpad.net/pyexiv2/0.3.x/{version}/+download/'
'pyexiv2-{version}.tar.bz2').format(version=version),
packages=find_packages('src'),
package_dir={'': 'src'},
zip_safe=False,
include_package_data=True,
platforms='any',
ext_modules=[
Extension('libexiv2python',
['src/exiv2wrapper.cpp', 'src/exiv2wrapper_python.cpp'],
libraries=['boost_python', 'exiv2']),
],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU General Public License v2 (GPLv2)',
'Operating System :: OS Independent',
'Programming Language :: C++',
'Programming Language :: Python',
'Topic :: Multimedia :: Graphics',
'Topic :: Software Development :: Libraries :: Python Modules'
]
)