From 4845f1badece4875b1223acc810a4ff5f8520eeb Mon Sep 17 00:00:00 2001 From: Rex Dieter Date: Fri, 15 Dec 2017 10:53:11 -0600 Subject: [PATCH] adjust prior commit to affect f28+ only so branches remain mergeable --- avahi.spec | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/avahi.spec b/avahi.spec index 5c56ead..bcd8233 100644 --- a/avahi.spec +++ b/avahi.spec @@ -38,9 +38,16 @@ BuildRequires: automake BuildRequires: libtool BuildRequires: dbus-devel >= 0.90 BuildRequires: dbus-glib-devel >= 0.70 -BuildRequires: python2-dbus +%if 0%{?fedora} > 27 +%global python2_dbus python2-dbus +%global python2_libxml2 python2-libxml2 +%else +%global python2_dbus dbus-python +%global python2_libxml2 libxml2-python +%endif +BuildRequires: %{python2_dbus} +BuildRequires; %{python2_libxml2} BuildRequires: desktop-file-utils -BuildRequires: python2-libxml2 BuildRequires: gtk2-devel BuildRequires: gtk3-devel >= 2.99.0 #BuildRequires: gobject-introspection-devel @@ -110,7 +117,7 @@ Requires: openssh-clients Requires: pygtk2 Requires: pygtk2-libglade Requires: gdbm -Requires: python2-dbus +Requires: %{python2_dbus} %description ui-tools Graphical user interface tools that use Avahi to browse for mDNS services.