Hello community,

here is the log from the commit of package python-random2 for openSUSE:Factory 
checked in at 2017-07-01 14:05:27
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-random2 (Old)
 and      /work/SRC/openSUSE:Factory/.python-random2.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-random2"

Sat Jul  1 14:05:27 2017 rev:3 rq:506975 version:1.0.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-random2/python-random2.changes    
2013-09-26 19:55:57.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.python-random2.new/python-random2.changes       
2017-07-01 14:05:27.476830099 +0200
@@ -1,0 +2,5 @@
+Wed Jun 28 07:32:51 UTC 2017 - [email protected]
+
+- Converted to single-spec
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-random2.spec ++++++
--- /var/tmp/diff_new_pack.VdZdyr/_old  2017-07-01 14:05:28.048749620 +0200
+++ /var/tmp/diff_new_pack.VdZdyr/_new  2017-07-01 14:05:28.052749057 +0200
@@ -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 @@
 %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}/*



Reply via email to