#
# Conditional build:
-%bcond_without dotnet # build with dotnet bindings
-%bcond_without qt # build with qt bindings
+%bcond_without dotnet # build without dotnet bindings
+%bcond_without qt # build without (any) qt bindings
+%bcond_without qt3 # build without qt3 bindings
+%bcond_without qt4 # build without qt4 bindings
#
+%if %{without qt}
+%undefine with_qt3
+%undefine with_qt4
+%endif
%include /usr/lib/rpm/macros.mono
#
Summary: Free mDNS/DNS-SD implementation
BuildRequires: pkgconfig
BuildRequires: python-dbus
BuildRequires: python-pygtk-devel
-%if %{with qt}
-BuildRequires: QtCore-devel
+%if %{with qt3}
BuildRequires: qt-devel >= 3.0
+%endif
+%if %{with qt4}
+BuildRequires: QtCore-devel
BuildRequires: qt4-build
%endif
BuildRequires: rpmbuild(macros) >= 1.228
--enable-compat-libdns_sd \
--enable-compat-howl \
--with-distro=none \
- %{!?with_qt:--disable-qt3 --disable-qt4} \
+ %{!?with_qt3:--disable-qt3} \
+ %{!?with_qt4:--disable-qt4} \
%{!?with_dotnet:--disable-mono} \
%{!?with_dotnet:--disable-monodoc}
%{__make}
%defattr(644,root,root,755)
%{_libdir}/libavahi-glib.a
-%if %{with qt}
+%if %{with qt3}
%files qt
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libavahi-qt3.so.*.*.*
%files qt-static
%defattr(644,root,root,755)
%{_libdir}/libavahi-qt3.a
+%endif
+%if %{with qt4}
%files Qt
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libavahi-qt4.so.*.*.*