From e30fea5bfc4d2057df3cbba1e54b8149ce6c4191ee97e7af0a8fe88ac8fd26e0 Mon Sep 17 00:00:00 2001 From: Thomas Bechtold Date: Tue, 22 Aug 2017 06:18:06 +0000 Subject: [PATCH] Accepting request 518044 from home:tbechtold:branches:devel:languages:python - convert to singlespec OBS-URL: https://build.opensuse.org/request/show/518044 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-statsd?expand=0&rev=4 --- python-statsd.changes | 5 +++++ python-statsd.spec | 20 ++++++++++---------- 2 files changed, 15 insertions(+), 10 deletions(-) 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}/*