]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - packaging/cups.spec.in
Load cups into easysw/current.
[thirdparty/cups.git] / packaging / cups.spec.in
index 7ca8bcbc28691b811f0a5c374ec2a155f3554914..da7ca0794580130453c380e4a807fe38647436c7 100644 (file)
@@ -1,5 +1,5 @@
 #
-# "$Id: cups.spec.in 5136 2006-02-19 18:46:46Z mike $"
+# "$Id: cups.spec.in 5146 2006-02-22 14:03:50Z mike $"
 #
 #   RPM "spec" file for the Common UNIX Printing System (CUPS).
 #
 #         WWW: http://www.cups.org
 #
 
+# Conditional build options (--with name/--without name):
+#
+#   dbus     - Enable/disable DBUS support (default = enable)
+
+%{!?_with_dbus: %{!?_without_dbus: %define _with_dbus --with-dbus}}
+%{?_with_dbus: %define _dbus --enable-dbus}
+%{!?_with_dbus: %define _dbus --disable-dbus}
+
 Summary: Common UNIX Printing System
 Name: cups
 Version: @CUPS_VERSION@
@@ -91,7 +99,7 @@ UNIX
 %setup
 
 %build
-CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_OPT_FLAGS" ./configure
+CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_OPT_FLAGS" ./configure %{_dbus}
 
 # If we got this far, all prerequisite libraries must be here.
 make
@@ -144,8 +152,10 @@ rm -rf $RPM_BUILD_ROOT
 /etc/cups/mime.convs
 %dir /etc/cups/ppd
 
+%if %{?_with_dbus:1}%{!?_with_dbus:0}
 # DBUS
 /etc/dbus-1/system.d/*
+%endif
 
 # PAM
 %dir /etc/pam.d
@@ -291,5 +301,5 @@ rm -rf $RPM_BUILD_ROOT
 /usr/share/locale/ja/cups_ja.po
 
 #
-# End of "$Id: cups.spec.in 5136 2006-02-19 18:46:46Z mike $".
+# End of "$Id: cups.spec.in 5146 2006-02-22 14:03:50Z mike $".
 #