# 1 - debugging enabled
%define debug 0
-# if we want to build the DBUS "extra" package or not
-# 0 - no DBUS support
-# 1 - DBUS support
-%define dbus 0
-
-# if we want to build the SELinux "extra" package or not
-# 0 - no SELinux support
-# 1 - SELinux support
-%define selinux 0
-
# if we want to build the scsi_id "extra" package or not
# 0 - do not build the package
# 1 - build it
%if %{scsi_id}
extras/scsi_id \
%endif
-%if %{dbus}
- extras/dbus \
-%endif
-%if %{selinux}
- extras/selinux \
-%endif
"
%install
%if %{scsi_id}
extras/scsi_id \
%endif
-%if %{dbus}
- extras/dbus \
-%endif
-%if %{selinux}
- extras/selinux \
-%endif
"
%post
%attr(755,root,root) /etc/init.d/udev
%attr(0644,root,root) %{_mandir}/man8/udev*.8*
-%if %{dbus}
- %config(noreplace) %attr(0644,root,root) /etc/dbus-1/system.d/udev_sysbus_policy.conf
-%endif
-
%if %{scsi_id}
%attr(755,root,root) /sbin/scsi_id
%config(noreplace) %attr(0644,root,root) /etc/scsi_id.config