diff --git a/avahi.spec b/avahi.spec index cb97e0f..35d8bd6 100644 --- a/avahi.spec +++ b/avahi.spec @@ -1,9 +1,22 @@ +%bcond_with bootstrap + +%if %{without bootstrap} %{?!WITH_MONO: %global WITH_MONO 1} +%else +%{?!WITH_MONO: %global WITH_MONO 0} +%endif + %{?!WITH_COMPAT_DNSSD: %global WITH_COMPAT_DNSSD 1} %{?!WITH_COMPAT_HOWL: %global WITH_COMPAT_HOWL 1} %{?!WITH_QT3: %global WITH_QT3 1} %{?!WITH_QT4: %global WITH_QT4 1} + +%if %{without bootstrap} %{?!WITH_QT5: %global WITH_QT5 1} +%else +%{?!WITH_QT5: %global WITH_QT5 0} +%endif + %{?!WITH_PYTHON: %global WITH_PYTHON 1} %ifnarch %{mono_arches} @@ -51,8 +64,10 @@ BuildRequires: libtool BuildRequires: dbus-devel >= 0.90 BuildRequires: dbus-glib-devel >= 0.70 BuildRequires: desktop-file-utils +%if %{without bootstrap} BuildRequires: gtk2-devel BuildRequires: gtk3-devel >= 2.99.0 +%endif #BuildRequires: gobject-introspection-devel %if %{WITH_QT3} BuildRequires: qt3-devel @@ -84,8 +99,10 @@ BuildRequires: python3-devel Obsoletes: python2-avahi < %{version}-%{release} Obsoletes: python3-avahi < %{version}-%{release} Obsoletes: avahi-ui-tools < %{version}-%{release} +%if %{without bootstrap} BuildRequires: pygtk2 %endif +%endif BuildRequires: gdbm-devel BuildRequires: pkgconfig(pygobject-3.0) BuildRequires: pkgconfig(libevent) >= 2.0.21 @@ -191,6 +208,7 @@ Requires: %{name}-gobject%{?_isa} = %{version}-%{release} The avahi-gobject-devel package contains the header files and libraries necessary for developing programs using avahi-gobject. +%if %{without bootstrap} %package ui Summary: Gtk user interface library for Avahi (Gtk+ 2 version) Requires: %{name}-libs%{?_isa} = %{version}-%{release} @@ -219,6 +237,7 @@ Requires: %{name}-ui-gtk3%{?_isa} = %{version}-%{release} %description ui-devel The avahi-ui-devel package contains the header files and libraries necessary for developing programs using avahi-ui. +%endif %if %{WITH_QT3} %package qt3 @@ -431,7 +450,12 @@ NOCONFIGURE=1 ./autogen.sh --enable-shared=yes \ --enable-static=no \ --disable-silent-rules \ +%if %{without bootstrap} --enable-gtk \ +%else + --disable-gtk \ + --disable-gtk3 \ +%endif %if ! %{WITH_PYTHON} --disable-python \ %endif @@ -684,6 +708,7 @@ exit 0 #%{_datadir}/gir-1.0/Avahi-0.6.gir #%{_datadir}/gir-1.0/AvahiCore-0.6.gir +%if %{without bootstrap} %files ui %{_libdir}/libavahi-ui.so.* @@ -696,6 +721,7 @@ exit 0 %{_includedir}/avahi-ui %{_libdir}/pkgconfig/avahi-ui.pc %{_libdir}/pkgconfig/avahi-ui-gtk3.pc +%endif %if %{WITH_QT3} %ldconfig_scriptlets qt3