From: Jakub Bogusz Date: Sun, 26 Mar 2023 19:00:42 +0000 (+0200) Subject: - disable python3 here X-Git-Tag: auto/th/python-zeroconf-0.19.1-1 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=9006ed268623dadf07f11ba7bc75a20478583893;p=packages%2Fpython-zeroconf.git - disable python3 here --- diff --git a/python-zeroconf.spec b/python-zeroconf.spec index aa2c41f..327116e 100644 --- a/python-zeroconf.spec +++ b/python-zeroconf.spec @@ -3,7 +3,7 @@ %bcond_with integration # Integration tests work in mock but fail in Koji with PermissionError %bcond_with tests # unit tests %bcond_without python2 # CPython 2.x module -%bcond_without python3 # CPython 3.x module +%bcond_with python3 # CPython 3.x module (built from python3-zeroconf.spec) %define module zeroconf Summary: Pure Python Multicast DNS Service Discovery Library @@ -41,6 +41,7 @@ BuildRequires: python3-six %endif BuildRequires: rpm-pythonprov BuildRequires: rpmbuild(macros) >= 1.714 +BuildRequires: sed >= 4.0 BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -71,7 +72,7 @@ przy użyciu Bonjour/Avahi. # Remove enum-compat from install_requires # See https://bugzilla.redhat.com/show_bug.cgi?id=1432165 -sed -i '/enum-compat/d' setup.py +%{__sed} -i '/enum-compat/d' setup.py %build %if %{with python2}