diff --git a/python-statsd.changes b/python-statsd.changes index bb18289..eb3f20e 100644 --- a/python-statsd.changes +++ b/python-statsd.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Aug 22 06:16:14 UTC 2017 - tbechtold@suse.com + +- convert to singlespec + ------------------------------------------------------------------- Tue Feb 14 21:06:11 UTC 2017 - jengelh@inai.de diff --git a/python-statsd.spec b/python-statsd.spec index b2b5d12..365788e 100644 --- a/python-statsd.spec +++ b/python-statsd.spec @@ -16,6 +16,7 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-statsd Version: 3.2.1 Release: 0 @@ -23,15 +24,14 @@ Summary: A simple statsd client 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 @@ for the statsd daemon. %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}/*