diff --git a/python-zeroconf.spec b/python-zeroconf.spec index 3e98908..f7ef3b7 100644 --- a/python-zeroconf.spec +++ b/python-zeroconf.spec @@ -11,12 +11,9 @@ Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel -BuildRequires: python3-setuptools BuildRequires: python3-pytest BuildRequires: python3-pytest-asyncio BuildRequires: python3-pytest-xdist -BuildRequires: python3dist(ifaddr) -BuildRequires: python3-async-timeout %description @@ -30,16 +27,22 @@ Summary: %{summary} A pure Python 3 implementation of multicast DNS service discovery supporting Bonjour/Avahi. + %prep %autosetup -p1 +%generate_buildrequires +%pyproject_buildrequires + + %build -%py3_build +%pyproject_wheel %install -%py3_install +%pyproject_install +%pyproject_save_files zeroconf %check @@ -47,11 +50,8 @@ supporting Bonjour/Avahi. %pytest -v -k "not test_sending_unicast and not test_integration_with_listener_ipv6" -%files -n python3-%{pypi_name} -%license COPYING +%files -n python3-%{pypi_name} -f %{pyproject_files} %doc README.rst -%{python3_sitelib}/%{pypi_name}/ -%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/ %changelog