Hello community,

here is the log from the commit of package python-statsd for openSUSE:Factory 
checked in at 2017-08-22 11:11:24
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-statsd (Old)
 and      /work/SRC/openSUSE:Factory/.python-statsd.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-statsd"

Tue Aug 22 11:11:24 2017 rev:2 rq:518045 version:3.2.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-statsd/python-statsd.changes      
2017-03-02 19:25:31.687883025 +0100
+++ /work/SRC/openSUSE:Factory/.python-statsd.new/python-statsd.changes 
2017-08-22 11:11:25.373216377 +0200
@@ -1,0 +2,5 @@
+Tue Aug 22 06:16:14 UTC 2017 - [email protected]
+
+- convert to singlespec
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-statsd.spec ++++++
--- /var/tmp/diff_new_pack.O2VyH7/_old  2017-08-22 11:11:25.877145421 +0200
+++ /var/tmp/diff_new_pack.O2VyH7/_new  2017-08-22 11:11:25.881144858 +0200
@@ -16,6 +16,7 @@
 #
 
 
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-statsd
 Version:        3.2.1
 Release:        0
@@ -23,15 +24,14 @@
 License:        MIT
 Group:          Development/Languages/Python
 Url:            https://github.com/jsocol/pystatsd
-Source:         
https://pypi.python.org/packages/source/s/statsd/statsd-%{version}.tar.gz
-BuildRequires:  python-devel
-BuildRequires:  python-setuptools
+Source:         
https://files.pythonhosted.org/packages/source/s/statsd/statsd-%{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
 statsd is a front-end to Graphite. This is a Python client
@@ -41,12 +41,12 @@
 %setup -q -n statsd-%{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 CHANGES LICENSE README.rst
 %{python_sitelib}/*


Reply via email to