Hello community, here is the log from the commit of package python-pretend for openSUSE:Factory checked in at 2017-03-22 23:16:48 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pretend (Old) and /work/SRC/openSUSE:Factory/.python-pretend.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pretend" Wed Mar 22 23:16:48 2017 rev:3 rq:480653 version:1.0.8 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pretend/python-pretend.changes 2014-04-02 17:25:43.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python-pretend.new/python-pretend.changes 2017-03-22 23:16:49.476149625 +0100 @@ -1,0 +2,5 @@ +Thu Mar 16 14:48:02 UTC 2017 - tbecht...@suse.com + +- Switch to singlespec approach + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pretend.spec ++++++ --- /var/tmp/diff_new_pack.f27Wj7/_old 2017-03-22 23:16:50.284035184 +0100 +++ /var/tmp/diff_new_pack.f27Wj7/_new 2017-03-22 23:16:50.288034617 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-pretend # -# Copyright (c) 2014 SUSE LINUX Products 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-%{**} python3-%{**}} Name: python-pretend Version: 1.0.8 Release: 0 @@ -23,15 +24,14 @@ License: BSD-3-Clause Group: Development/Languages/Python Url: https://github.com/alex/pretend -Source: https://pypi.python.org/packages/source/p/pretend/pretend-%{version}.tar.gz -BuildRequires: python-devel -BuildRequires: python-setuptools +Source: https://pypi.io/packages/source/p/pretend/pretend-%{version}.tar.gz +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_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%else BuildArch: noarch -%endif + +%python_subpackages %description Pretend is a library to make stubbing with Python easier. @@ -40,12 +40,12 @@ %setup -q -n pretend-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install -%files +%files %python_files %defattr(-,root,root,-) %doc LICENSE.rst README.rst %{python_sitelib}/*