diff --git a/python-random2.changes b/python-random2.changes index 4dddc9b..4545707 100644 --- a/python-random2.changes +++ b/python-random2.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jun 28 07:32:51 UTC 2017 - aloisio@gmx.com + +- Converted to single-spec + ------------------------------------------------------------------- Tue Aug 6 20:42:33 UTC 2013 - hpj@urpla.net diff --git a/python-random2.spec b/python-random2.spec index adc0759..3c9e49f 100644 --- a/python-random2.spec +++ b/python-random2.spec @@ -1,7 +1,7 @@ # # spec file for package python-random2 # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2013 LISA GmbH, Bingen, Germany. # # All modifications and additions to the file contributed by third parties @@ -17,24 +17,22 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-random2 Version: 1.0.1 Release: 0 -License: Python-2.0 Summary: A Session and Caching library with WSGI Middleware -Url: http://pypi.python.org/pypi/random2 +License: Python-2.0 Group: Development/Languages/Python -Source: http://pypi.python.org/packages/source/r/random2/random2-%{version}.zip -BuildRequires: python-setuptools +Url: http://pypi.python.org/pypi/random2 +Source: https://files.pythonhosted.org/packages/source/r/random2/random2-%{version}.zip +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros BuildRequires: unzip BuildRoot: %{_tmppath}/%{name}-%{version}-build - -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -BuildRequires: python -%{!?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 This package provides a Python 3 ported version of Python 2.7's random module. @@ -52,15 +50,16 @@ adjusted. This package fixes that. %setup -q -n random2-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install +%python_expand %fdupes -s %{buildroot}%{$python_sitelib} %check -python setup.py test +%python_exec setup.py test -%files +%files %{python_files} %defattr(-,root,root,-) %doc CHANGES.txt README.txt PKG-INFO %{python_sitelib}/*