14
0

Accepting request 577228 from home:alarrosa:branches:devel:languages:python

- Remove patch which was breaking zeroconf dependency check with python3
  (it was making pkg_resources generate a DistributionNotFound exception
  because enum34 wasn't found). enum34 is only required by the python2
  package, which is what the enum-compat  package is all about.
  * python-zeroconf-0.19.1-enum34-instead-of-enum-compat.patch 
- Require python-enum-compat to require python-enum34 on python2 and
  nothing on python3, just as the egg's requires.txt file does.

OBS-URL: https://build.opensuse.org/request/show/577228
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zeroconf?expand=0&rev=17
This commit is contained in:
Antoine Belvire
2018-02-16 11:55:24 +00:00
committed by Git OBS Bridge
parent 53880ddb9c
commit 3f2636bdf3
3 changed files with 14 additions and 38 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-zeroconf
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -25,13 +25,9 @@ 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
# PATCH-FIX-OPENSUSE python-zeroconf-0.19.1-enum34-instead-of-enum-compat.patch -- replace enum-compat by enum34 (picked from Debian)
Patch: python-zeroconf-0.19.1-enum34-instead-of-enum-compat.patch
BuildRequires: %{python_module setuptools}
BuildRequires: python-rpm-macros
%ifpython2
Requires: python-enum34
%endif
Requires: python-enum-compat
Requires: python-netifaces
Requires: python-six
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@@ -48,7 +44,6 @@ does not force you to use a particular event loop or python-twisted.
%prep
%setup -q -n zeroconf-%{version}
%patch -p1
%build
%python_build