diff --git a/python-zeroconf.spec b/python-zeroconf.spec index 2982825..cdf3950 100644 --- a/python-zeroconf.spec +++ b/python-zeroconf.spec @@ -1,4 +1,3 @@ -%{?python_enable_dependency_generator} %global pypi_name zeroconf Name: python-%{pypi_name} @@ -7,8 +6,8 @@ Release: 1%{?dist} Summary: Pure Python Multicast DNS Service Discovery Library License: LGPLv2 -URL: https://github.com/jstasiak/%{name} -Source0: %{url}/archive/%{version}.tar.gz#/%{pypi_name}-%{version}.tar.gz +URL: https://github.com/jstasiak/python-zeroconf +Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel @@ -26,17 +25,15 @@ A pure Python implementation of multicast DNS service discovery supporting Bonjour/Avahi. %package -n python3-%{pypi_name} -Summary: Pure Python 3 Multicast DNS Service Discovery Library -%{?python_provide:%python_provide python3-%{pypi_name}} +Summary: %{summary} %description -n python3-%{pypi_name} A pure Python 3 implementation of multicast DNS service discovery supporting Bonjour/Avahi. %prep -%autosetup -# Remove bundled egg-info -rm -rf %{pypi_name}.egg-info +%autosetup -p1 + %build %py3_build @@ -50,7 +47,7 @@ rm -rf %{pypi_name}.egg-info # IPv6 tests fail in Koji/mock, test_sending_unicast uses IPv6 # test_ptr_optimization fails in Koji # with 0.33.4, running tests in parallel produces some failures, possibly race conditions -%{__python3} -m pytest -n 1 -v \ +%pytest -n 1 -v \ %if %{with integration} -k "not v6 and not test_sending_unicast" \ %else %{without integration}