]> git.pld-linux.org Git - packages/avahi.git/commitdiff
- separated qt3/qt4 bconds (from AC-branch), qt bcond disables both
authorJakub Bogusz <qboosh@pld-linux.org>
Mon, 15 May 2006 09:01:45 +0000 (09:01 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    avahi.spec -> 1.46

avahi.spec

index 718518f558b9f4338a018e95cf9cb9ae9b869c0f..a504bf9169415b10f58d0640bbce93f569412ca9 100644 (file)
@@ -1,8 +1,14 @@
 #
 # 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
@@ -40,9 +46,11 @@ BuildRequires:       monodoc
 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
@@ -397,7 +405,8 @@ Narz
        --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}
@@ -582,7 +591,7 @@ fi
 %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.*.*.*
@@ -597,7 +606,9 @@ fi
 %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.*.*.*
This page took 0.093291 seconds and 4 git commands to generate.