Hello community, here is the log from the commit of package python-temps for openSUSE:Factory checked in at 2017-03-09 02:03:08 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-temps (Old) and /work/SRC/openSUSE:Factory/.python-temps.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-temps" Thu Mar 9 02:03:08 2017 rev:2 rq:476880 version:0.3.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-temps/python-temps.changes 2015-12-16 17:42:12.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.python-temps.new/python-temps.changes 2017-03-09 02:03:09.853180753 +0100 @@ -1,0 +2,5 @@ +Sat Mar 4 08:39:23 UTC 2017 - mplus...@suse.com + +- Convert to python singlespec + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-temps.spec ++++++ --- /var/tmp/diff_new_pack.wHJyGo/_old 2017-03-09 02:03:10.573078746 +0100 +++ /var/tmp/diff_new_pack.wHJyGo/_new 2017-03-09 02:03:10.577078179 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-temps # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# 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 @@ -16,6 +16,7 @@ # +%{?!python_module:%define python_module() python-%1 python3-%1} Name: python-temps Version: 0.3.0 Release: 0 @@ -23,14 +24,14 @@ License: MIT Group: Development/Languages/Python Url: https://github.com/todddeluca/temps -Source: http://pypi.python.org/packages/source/t/temps/temps-%{version}.tar.gz -BuildRequires: python-devel -BuildRequires: python-setuptools -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%else +Source: https://pypi.python.org/packages/4d/a5/1ce68a8088f9373566655c205910966da8222fd0e7f68bddd8ce5a28786e/temps-%{version}.tar.gz +BuildRequires: %{python_module base} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros BuildArch: noarch -%endif + +%python_subpackages %description temps is a python module containing context managers for creating and @@ -55,17 +56,20 @@ %setup -q -n temps-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install +%fdupes -s %{buildroot} %check -python setup.py -q test +%python_exec setup.py test -%files +%files %{python_files} %defattr(-,root,root,-) %doc LICENSE.txt -%{python_sitelib}/* +%{python_sitelib}/temps.py* +%pycache_only %{python_sitelib}/__pycache__ +%{python_sitelib}/temps-%{version}-py%{python_version}.egg-info %changelog