2016-03-16 19:09:57 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-zeroconf
|
|
|
|
|
#
|
2019-03-11 11:59:24 +00:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2016-03-16 19:09:57 +00:00
|
|
|
#
|
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
2019-03-11 11:59:24 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2016-03-16 19:09:57 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
2017-03-18 09:27:59 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2019-03-11 11:59:24 +00:00
|
|
|
%define skip_python2 1
|
2016-03-16 19:09:57 +00:00
|
|
|
Name: python-zeroconf
|
2019-12-28 22:49:47 +00:00
|
|
|
Version: 0.24.3
|
2016-03-16 19:09:57 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: Pure Python Multicast DNS Service Discovery Library (Bonjour/Avahi compatible)
|
2019-03-11 11:59:24 +00:00
|
|
|
License: LGPL-2.0-only
|
2016-03-16 19:09:57 +00:00
|
|
|
Group: Development/Languages/Python
|
2019-03-11 11:59:24 +00:00
|
|
|
URL: https://github.com/jstasiak/python-zeroconf
|
2019-12-28 22:49:47 +00:00
|
|
|
Source: https://github.com/jstasiak/python-zeroconf/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
|
|
|
Patch0: python-zeroconf-disable-some-tests.patch
|
2019-03-11 11:59:24 +00:00
|
|
|
BuildRequires: %{python_module ifaddr}
|
2019-12-28 22:49:47 +00:00
|
|
|
BuildRequires: %{python_module nose}
|
2017-03-18 09:27:59 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2019-03-11 11:59:24 +00:00
|
|
|
BuildRequires: fdupes
|
2017-03-18 09:27:59 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2019-03-11 11:59:24 +00:00
|
|
|
Requires: python-ifaddr
|
2016-03-16 19:09:57 +00:00
|
|
|
BuildArch: noarch
|
2017-03-18 09:27:59 +00:00
|
|
|
%python_subpackages
|
2016-03-16 19:09:57 +00:00
|
|
|
|
|
|
|
|
%description
|
2016-12-28 17:56:30 +00:00
|
|
|
This is a fork of pyzeroconf, a Multicast DNS Service Discovery for Python.
|
|
|
|
|
It is compatible with Bonjour and Avahi.
|
|
|
|
|
Compared to some other Zeroconf/Bonjour/Avahi Python packages, python-zeroconf
|
|
|
|
|
is not tied to Bonjour or Avahi, does not use D-Bus and
|
|
|
|
|
does not force you to use a particular event loop or python-twisted.
|
2016-03-16 19:09:57 +00:00
|
|
|
|
|
|
|
|
%prep
|
2019-12-28 22:49:47 +00:00
|
|
|
%setup -q
|
|
|
|
|
%patch0 -p1
|
2016-03-16 19:09:57 +00:00
|
|
|
|
|
|
|
|
%build
|
2017-03-18 09:27:59 +00:00
|
|
|
%python_build
|
2016-03-16 19:09:57 +00:00
|
|
|
|
|
|
|
|
%install
|
2017-03-18 09:27:59 +00:00
|
|
|
%python_install
|
2019-12-28 22:49:47 +00:00
|
|
|
%python_expand rm -f %{buildroot}%{$python_sitelib}/zeroconf/test.py
|
2019-03-11 11:59:24 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
|
|
%check
|
2019-12-28 22:49:47 +00:00
|
|
|
# tests that do not run in an OBS chroot are disabled via python-zeroconf-disable-some-tests.patch
|
|
|
|
|
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} %python_exec -m unittest discover -v
|
2016-03-16 19:09:57 +00:00
|
|
|
|
2019-03-11 11:59:24 +00:00
|
|
|
%files %{python_files}
|
2016-03-16 19:09:57 +00:00
|
|
|
%doc README.rst
|
2019-03-11 11:59:24 +00:00
|
|
|
%license COPYING
|
2019-12-28 22:49:47 +00:00
|
|
|
%{python_sitelib}/zeroconf*
|
2016-03-16 19:09:57 +00:00
|
|
|
|
|
|
|
|
%changelog
|