restore python

This commit is contained in:
Mikhail Novosyolov 2020-03-15 22:02:15 +03:00
parent 12fd0903a1
commit f8a8baf8ca

View file

@ -62,14 +62,13 @@
%bcond_with qt4
%bcond_with gtk3
%bcond_with systemd
%endif
%bcond_with python
%endif
Summary: Avahi service discovery (mDNS/DNS-SD) suite
Name: avahi
Version: 0.6.32
Release: 10
Release: 11
License: LGPLv2+
Group: System/Servers
Url: http://avahi.org/
@ -86,7 +85,7 @@ BuildRequires: expat-devel >= 2.0.1
BuildRequires: gdbm-devel
BuildRequires: pkgconfig(dbus-1)
%if %{with python}
BuildRequires: python2-dbus
BuildRequires: pythonegg(dbus-python)
%endif
BuildRequires: pkgconfig(libdaemon)
BuildRequires: pkgconfig(libglade-2.0)
@ -247,9 +246,8 @@ It includes avahi-discover-standalone.
Summary: Python bindings and utilities for Avahi
Group: System/Libraries
Requires: pygtk2.0-libglade
Requires: python2-twisted-core
Requires: python2-twisted-web
Requires: python2-dbus
Requires: pythonegg(twisted)
Requires: pythonegg(dbus-python)
Requires: %{name}
Requires: %{name}-x11
@ -660,6 +658,7 @@ autoreconf -vfi
%build
export PKG_CONFIG_PATH=/usr/lib/qt4/%{_lib}/pkgconfig
export PYTHON=%{__python2}
%configure \
--disable-static \
%if %{without mono}
@ -671,7 +670,7 @@ export PKG_CONFIG_PATH=/usr/lib/qt4/%{_lib}/pkgconfig
%if %{without qt4}
--disable-qt4 \
%endif
%if !%{with python}
%if %{without python}
--disable-python \
%endif
--localstatedir=/run \