Hello community, here is the log from the commit of package python-betamax for openSUSE:Factory checked in at 2017-05-17 10:55:11 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-betamax (Old) and /work/SRC/openSUSE:Factory/.python-betamax.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-betamax" Wed May 17 10:55:11 2017 rev:4 rq:495402 version:0.8.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-betamax/python-betamax.changes 2016-12-08 00:29:24.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.python-betamax.new/python-betamax.changes 2017-05-17 10:55:14.151385293 +0200 @@ -1,0 +2,5 @@ +Tue May 16 15:57:27 UTC 2017 - dmuel...@suse.com + +- convert to singlespec packaging + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-betamax.spec ++++++ --- /var/tmp/diff_new_pack.sgQtDs/_old 2017-05-17 10:55:14.847287394 +0200 +++ /var/tmp/diff_new_pack.sgQtDs/_new 2017-05-17 10:55:14.847287394 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-betamax # -# Copyright (c) 2016 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-%{**} python3-%{**}} Name: python-betamax Version: 0.8.0 Release: 0 @@ -24,15 +25,12 @@ Group: Development/Languages/Python Url: https://github.com/sigmavirus24/betamax Source: https://pypi.io/packages/source/b/betamax/betamax-%{version}.tar.gz -BuildRequires: python-devel -BuildRequires: python-setuptools +BuildRequires: %{python_module setuptools} +BuildRequires: python-rpm-macros Requires: python-requests >= 2.0 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 Betamax is a VCR_ imitation for requests. This will make mocking out requests @@ -42,12 +40,12 @@ %setup -q -n betamax-%{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 AUTHORS.rst LICENSE README.rst %{python_sitelib}/*