14
0

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
This commit is contained in:
Antoine Belvire
2017-03-18 09:27:59 +00:00
committed by Git OBS Bridge
parent fe6e1f81ea
commit 6e415dadd5
2 changed files with 16 additions and 7 deletions

View File

@@ -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}/*