Hello community, here is the log from the commit of package python-wrapt for openSUSE:Factory checked in at 2017-03-18 20:50:44 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-wrapt (Old) and /work/SRC/openSUSE:Factory/.python-wrapt.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python-wrapt" Sat Mar 18 20:50:44 2017 rev:4 rq:479713 version:1.10.8 Changes: -------- --- /work/SRC/openSUSE:Factory/python-wrapt/python-wrapt.changes 2016-09-01 14:03:47.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python-wrapt.new/python-wrapt.changes 2017-03-18 20:50:45.328136622 +0100 @@ -1,0 +2,5 @@ +Mon Feb 27 13:54:07 UTC 2017 - jmatejek@suse.com + +- update for singlespec + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-wrapt.spec ++++++ --- /var/tmp/diff_new_pack.YTqU9X/_old 2017-03-18 20:50:45.804069199 +0100 +++ /var/tmp/diff_new_pack.YTqU9X/_new 2017-03-18 20:50:45.808068632 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-wrapt # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2015 LISA GmbH, Bingen, Germany. # # All modifications and additions to the file contributed by third parties @@ -17,6 +17,7 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-wrapt Version: 1.10.8 Release: 0 @@ -25,12 +26,11 @@ Group: Development/Languages/Python Url: https://github.com/GrahamDumpleton/wrapt Source: https://pypi.io/packages/source/w/wrapt/wrapt-%{version}.tar.gz -BuildRequires: python-devel -BuildRequires: python-setuptools +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: python-rpm-macros BuildRoot: %{_tmppath}/%{name}-%{version}-build -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} -%endif +%python_subpackages %description The aim of the **wrapt** module is to provide a transparent object proxy @@ -60,12 +60,13 @@ %setup -q -n wrapt-%{version} %build -CFLAGS="%{optflags}" python setup.py build +export CFLAGS="%{optflags}" +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install -%files +%files %{python_files} %defattr(-,root,root,-) %doc LICENSE README.rst %{python_sitearch}/*