From 6e415dadd5cc1c4d1aa9865dacc59809d5d86fbd21116fbbf4f951fd8434af0a Mon Sep 17 00:00:00 2001 From: Antoine Belvire Date: Sat, 18 Mar 2017 09:27:59 +0000 Subject: [PATCH] Accepting request 480969 from home:StefanBruens:branches:devel:languages:python OBS-URL: https://build.opensuse.org/request/show/480969 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zeroconf?expand=0&rev=11 --- python-zeroconf.changes | 5 +++++ python-zeroconf.spec | 18 +++++++++++------- 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/python-zeroconf.changes b/python-zeroconf.changes index 49ccfa9..f049d4f 100644 --- a/python-zeroconf.changes +++ b/python-zeroconf.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Mar 18 00:27:42 UTC 2017 - stefan.bruens@rwth-aachen.de + +- Convert package to python singlespec + ------------------------------------------------------------------- Sat Feb 18 10:46:56 UTC 2017 - antoine.belvire@opensuse.org diff --git a/python-zeroconf.spec b/python-zeroconf.spec index 0d0798b..da9dbb7 100644 --- a/python-zeroconf.spec +++ b/python-zeroconf.spec @@ -16,6 +16,7 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-zeroconf Version: 0.18.0 Release: 0 @@ -24,17 +25,20 @@ License: LGPL-2.0 Group: Development/Languages/Python Url: https://github.com/jstasiak/python-zeroconf Source: https://pypi.io/packages/source/z/zeroconf/zeroconf-%{version}.tar.gz +Source99: %{name}.changes # PATCH-FIX-OPENSUSE python-zeroconf-0.17.4-enum34-instead-of-enum-compat.patch -- replace enum-compat by enum34 (picked from Debian) Patch: python-zeroconf-0.17.4-enum34-instead-of-enum-compat.patch -BuildRequires: python-devel -BuildRequires: python-setuptools +BuildRequires: %{python_module setuptools} +BuildRequires: python-rpm-macros +%ifpython2 Requires: python-enum34 +%endif Requires: python-netifaces Requires: python-six BuildRoot: %{_tmppath}/%{name}-%{version}-build -%if 0%{?suse_version} > 1110 BuildArch: noarch -%endif + +%python_subpackages %description This is a fork of pyzeroconf, a Multicast DNS Service Discovery for Python. @@ -48,12 +52,12 @@ does not force you to use a particular event loop or python-twisted. %patch -p1 %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 README.rst %{python_sitelib}/*