2003-12-25 10:38:58 +03:00
# if we want to build against the included version of klibc or not.
# 0 - do not use klibc
# 1 - use klibc
# Watch out for where the linux symlink is in the klibc part of the tarball,
# it probably is not where you want it to be.
%define klibc 1
2004-01-16 09:00:58 +03:00
# if we want to have logging support in or not.
# 0 - no logging support
# 1 - logging support
# Note, it is not recommend if you use klibc to enable logging.
%define log 0
2003-12-25 10:38:58 +03:00
# if we want to enable debugging support in udev. If it is enabled, lots of
# stuff will get sent to the debug syslog.
# 0 - debugging disabled
# 1 - debugging enabled
%define debug 0
2004-02-20 05:20:33 +03:00
# if we want to build the scsi_id "extra" package or not
# 0 - do not build the package
# 1 - build it
%define scsi_id 1
2004-05-15 10:08:04 +04:00
# if we want to build the volume_id "extra" package or not
# 0 - do not build the package
# 1 - build it
%define volume_id 1
2005-07-22 20:35:58 +04:00
Summary : A userspace device manager providing devfs functionality
2003-08-05 12:17:07 +04:00
Name : udev
2005-08-18 21:04:49 +04:00
Version : 068
2003-08-05 12:17:07 +04:00
Release : 1
License : GPL
Group : Utilities/System
Source : ftp://ftp.kernel.org/pub/linux/utils/kernel/hotplug/%{name} -%{version} .tar.gz
ExclusiveOS: Linux
2003-08-05 12:18:46 +04:00
Vendor : Greg Kroah-Hartman <greg@kroah.com>
2004-01-27 06:41:00 +03:00
URL : kernel.org/pub/linux/utils/kernel/hotplug/
2003-10-30 09:26:35 +03:00
BuildRoot : %{_tmppath} /%{name} -%{version} -%{release} -root
2003-10-18 10:34:19 +04:00
Prereq : /bin/sh, fileutils, hotplug
2003-08-05 12:17:07 +04:00
%description
2005-07-22 20:35:58 +04:00
udev is a userspace device manager, using sysfs and uevents
to provide a devfs-like device directory management and uevent
dispatching.
2003-08-05 12:17:07 +04:00
%prep
2003-10-18 10:34:19 +04:00
%setup -q
2003-08-05 12:17:07 +04:00
%build
2003-12-25 10:38:58 +03:00
make CC=" g c c $RPM_OPT_FLAGS " \
%if %{klibc}
USE_KLIBC=true \
%endif
2004-01-16 09:00:58 +03:00
%if %{log}
USE_LOG=true \
2004-02-13 10:40:56 +03:00
%else
USE_LOG=false \
2004-01-16 09:00:58 +03:00
%endif
2003-12-25 10:38:58 +03:00
%if %{debug}
DEBUG=true \
2004-02-13 10:40:56 +03:00
%else
DEBUG=false \
2003-12-25 10:38:58 +03:00
%endif
2004-02-20 05:20:33 +03:00
EXTRAS=" \
%if %{scsi_id}
extras/scsi_id \
%endif
2004-05-15 10:08:04 +04:00
%if %{volume_id}
extras/volume_id \
%endif
2004-02-20 05:20:33 +03:00
"
2004-02-03 12:29:45 +03:00
2003-08-05 12:17:07 +04:00
%install
2004-05-21 06:14:09 +04:00
rm -rf $RPM_BUILD_ROOT
2003-12-31 11:34:49 +03:00
make DESTDIR=$RPM_BUILD_ROOT install \
2004-02-20 05:20:33 +03:00
EXTRAS=" \
%if %{scsi_id}
extras/scsi_id \
%endif
2004-05-15 10:08:04 +04:00
%if %{volume_id}
extras/volume_id \
%endif
2004-02-20 05:20:33 +03:00
"
2004-02-17 05:37:59 +03:00
2003-12-17 10:30:15 +03:00
%post
/sbin/chkconfig --add udev
2003-12-17 10:31:16 +03:00
%postun
if [ $1 = 0 ]; then
/sbin/chkconfig --del udev
fi
2003-08-05 12:17:07 +04:00
%clean
2003-10-18 10:34:19 +04:00
rm -rf $RPM_BUILD_ROOT
2003-08-05 12:17:07 +04:00
%files
2003-12-25 09:54:39 +03:00
%defattr (-,root,root)
2004-03-05 05:59:18 +03:00
%doc COPYING README TODO ChangeLog HOWTO* docs/*
%doc etc/udev/udev.rules.{examples,gentoo,redhat}
2003-10-18 10:34:19 +04:00
%attr (755,root,root) /sbin/udev
2004-03-03 10:51:50 +03:00
%attr (755,root,root) /usr/bin/udevinfo
2004-02-03 12:29:45 +03:00
%attr (755,root,root) /sbin/udevsend
%attr (755,root,root) /sbin/udevd
2004-03-25 11:14:47 +03:00
%attr (755,root,root) /usr/bin/udevtest
2004-03-03 09:34:40 +03:00
%attr (755,root,root) /sbin/udevstart
2004-02-17 05:37:59 +03:00
%attr (755,root,root) %dir /udev/
%attr (755,root,root) %dir /etc/udev/
2003-12-17 19:35:00 +03:00
%config (noreplace) %attr (0644,root,root) /etc/udev/udev.conf
2004-05-21 06:14:09 +04:00
%attr (755,root,root) %dir /etc/udev/rules.d/
%config (noreplace) %attr (0644,root,root) /etc/udev/rules.d/50-udev.rules
2003-10-18 11:12:16 +04:00
%attr (-,root,root) /etc/hotplug.d/default/udev.hotplug
2003-12-16 09:22:30 +03:00
%attr (755,root,root) /etc/init.d/udev
2004-01-27 06:56:59 +03:00
%attr (0644,root,root) %{_mandir} /man8/udev*.8*
2003-08-05 12:17:07 +04:00
2004-02-20 05:20:33 +03:00
%if %{scsi_id}
%attr (755,root,root) /sbin/scsi_id
%config (noreplace) %attr (0644,root,root) /etc/scsi_id.config
%attr (0644,root,root) %{_mandir} /man8/scsi_id*.8*
%endif
2004-05-15 10:08:04 +04:00
%if %{volume_id}
%attr (755,root,root) /sbin/udev_volume_id
%endif
2004-02-20 05:20:33 +03:00
2003-08-05 12:17:07 +04:00
%changelog
2004-05-15 10:08:04 +04:00
* Fri May 14 2004 Greg Kroah-Hartman <greg@kroah.com>
- remove dbus and selinux stuff from here
- added volume_id option
2004-03-25 08:42:40 +03:00
* Wed Mar 24 2004 Greg Kroah-Hartman <greg@kroah.com>
2004-03-25 09:49:03 +03:00
- change the way dbus and selinux support is built (now an extra)
2004-03-25 08:42:40 +03:00
2004-03-03 09:34:40 +03:00
* Tue Mar 2 2004 Greg Kroah-Hartman <greg@kroah.com>
- added udevstart to the list of files installed
2004-03-03 10:51:50 +03:00
- udevinfo is now in /usr/bin not /sbin
2004-03-03 09:34:40 +03:00
2004-02-28 12:11:20 +03:00
* Fri Feb 27 2004 Greg Kroah-Hartman <greg@kroah.com>
- added ability to build with SELinux support
2004-02-20 05:20:33 +03:00
* Thu Feb 19 2004 Greg Kroah-Hartman <greg@kroah.com>
- add some more files to the documentation directory
- add ability to build scsi_id and make it the default
2004-02-17 05:37:59 +03:00
* Mon Feb 16 2004 Greg Kroah-Hartman <greg@kroah.com>
- fix up udevd build, as it's no longer needed to be build seperatly
- add udevtest to list of files
- more Red Hat sync ups.
2004-02-13 10:40:56 +03:00
* Thu Feb 12 2004 Greg Kroah-Hartman <greg@kroah.com>
- add some changes from the latest Fedora udev release.
2004-02-03 12:29:45 +03:00
* Mon Feb 2 2004 Greg Kroah-Hartman <greg@kroah.com>
- add udevsend, and udevd to the files
- add ability to build udevd with glibc after the rest is build with klibc
2004-01-27 06:32:57 +03:00
* Mon Jan 26 2004 Greg Kroah-Hartman <greg@kroah.com>
2004-01-27 06:56:59 +03:00
- added udevinfo to rpm
2004-01-27 06:41:00 +03:00
- added URL to spec file
2004-01-27 06:56:59 +03:00
- added udevinfo's man page
2004-01-27 06:32:57 +03:00
2004-01-10 12:19:57 +03:00
* Mon Jan 05 2004 Rolf Eike Beer <eike-hotplug@sf-tec.de>
- add defines to choose the init script (Redhat or LSB)
2003-12-17 10:30:15 +03:00
* Tue Dec 16 2003 Robert Love <rml@ximian.com>
- install the initscript and run chkconfig on it
2003-12-03 12:08:46 +03:00
* Tue Nov 2 2003 Greg Kroah-Hartman <greg@kroah.com>
- changes due to config file name changes
2003-10-18 10:34:19 +04:00
* Fri Oct 17 2003 Robert Love <rml@tech9.net>
- Make work without a build root
- Correctly install the right files
- Pass the RPM_OPT_FLAGS to gcc so we can build per the build policy
- Put some prereqs in
2003-10-18 11:12:16 +04:00
- Install the hotplug symlink to udev
2003-10-18 10:34:19 +04:00
2003-08-05 12:17:07 +04:00
* Mon Jul 28 2003 Paul Mundt <lethal@linux-sh.org>
- Initial spec file for udev-0.2.