15
0

Accepting request 481018 from devel:languages:python

- Remove .changes file from source (not needed).

- Convert package to python singlespec

OBS-URL: https://build.opensuse.org/request/show/481018
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-zeroconf?expand=0&rev=4
This commit is contained in:
2017-04-17 08:25:17 +00:00
committed by Git OBS Bridge
2 changed files with 20 additions and 7 deletions

View File

@@ -1,3 +1,13 @@
-------------------------------------------------------------------
Sat Mar 18 12:46:41 UTC 2017 - antoine.belvire@opensuse.org
- Remove .changes file from source (not needed).
-------------------------------------------------------------------
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

View File

@@ -16,6 +16,7 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-zeroconf
Version: 0.18.0
Release: 0
@@ -26,15 +27,17 @@ Url: https://github.com/jstasiak/python-zeroconf
Source: https://pypi.io/packages/source/z/zeroconf/zeroconf-%{version}.tar.gz
# 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 +51,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}/*