#
-# "$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@
%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
/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
/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 $".
#