2016-03-16 19:09:57 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-zeroconf
|
|
|
|
|
#
|
2024-05-08 10:56:39 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
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
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
2023-06-20 20:47:50 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2016-03-16 19:09:57 +00:00
|
|
|
Name: python-zeroconf
|
2024-09-23 09:06:54 +00:00
|
|
|
Version: 0.134.0
|
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
|
2023-05-03 10:29:33 +00:00
|
|
|
Source: https://github.com/python-zeroconf/python-zeroconf/archive/refs/tags/%{version}.tar.gz
|
2022-09-17 18:52:30 +00:00
|
|
|
BuildRequires: %{python_module async_timeout >= 4.0.1}
|
2020-07-21 11:15:53 +00:00
|
|
|
BuildRequires: %{python_module ifaddr >= 0.1.7}
|
2023-05-03 10:29:33 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
|
|
|
|
BuildRequires: %{python_module poetry-core}
|
2021-06-03 12:28:02 +00:00
|
|
|
BuildRequires: %{python_module pytest-asyncio}
|
2023-05-03 10:29:33 +00:00
|
|
|
BuildRequires: %{python_module pytest-cov}
|
2020-04-16 09:13:20 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
2023-05-03 10:29:33 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2019-03-11 11:59:24 +00:00
|
|
|
BuildRequires: fdupes
|
2017-03-18 09:27:59 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2022-09-17 19:00:27 +00:00
|
|
|
Requires: python-async_timeout >= 4.0.1
|
2020-07-21 11:15:53 +00:00
|
|
|
Requires: python-ifaddr >= 0.1.7
|
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
|
2021-06-03 12:28:02 +00:00
|
|
|
%autosetup -p1
|
2016-03-16 19:09:57 +00:00
|
|
|
|
|
|
|
|
%build
|
2023-05-03 10:29:33 +00:00
|
|
|
%pyproject_wheel
|
2016-03-16 19:09:57 +00:00
|
|
|
|
|
|
|
|
%install
|
2023-05-03 10:29:33 +00:00
|
|
|
%pyproject_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
|
2022-06-25 15:42:56 +00:00
|
|
|
# Skip tests:
|
|
|
|
|
# - test_integration_with_listener_ipv6: Requires network access
|
|
|
|
|
# - test_launch*: Require network access
|
|
|
|
|
# - test_close_multiple_times: Requires network access
|
2022-09-17 18:52:30 +00:00
|
|
|
%pytest tests -k 'not (test_integration_with_listener_ipv6 or test_launch or test_close_multiple_times)'
|
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
|
2023-05-03 10:29:33 +00:00
|
|
|
%{python_sitearch}/zeroconf
|
|
|
|
|
%{python_sitearch}/zeroconf-%{version}.dist-info
|
2016-03-16 19:09:57 +00:00
|
|
|
|
|
|
|
|
%changelog
|