Matt Domsch 0b19e0d
Name:		biosdevname
Matt Domsch 0b19e0d
Version:	0.2.4
Matt Domsch a3aa742
Release:	4%{?dist}
Matt Domsch 0b19e0d
Summary:	Udev helper for naming devices per BIOS names
Matt Domsch 0b19e0d
Matt Domsch 0b19e0d
Group:		System Environment/Base
Matt Domsch 0b19e0d
License:	GPLv2
Matt Domsch 0b19e0d
URL:		http://linux.dell.com/files/%{name}
Matt Domsch 0b19e0d
# SMBIOS and PCI IRQ Routing Tables only exist on these arches.  It's
Matt Domsch 0b19e0d
# also likely that other arches don't expect the PCI bus to be sorted
Matt Domsch 0b19e0d
# breadth-first, or of so, there haven't been any comments about that
Matt Domsch 0b19e0d
# on LKML.
Matt Domsch 0b19e0d
ExclusiveArch:	%{ix86} x86_64 ia64
Matt Domsch 0b19e0d
Source0:	http://linux.dell.com/files/%{name}/%{name}-%{version}.tar.gz
Matt Domsch 0b19e0d
BuildRoot:	%(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
Matt Domsch 0b19e0d
BuildRequires:	pciutils-devel, zlib-devel
Matt Domsch 0b19e0d
# to figure out how to name the rules file
Matt Domsch 0b19e0d
BuildRequires:	udev
Matt Domsch 0b19e0d
# for ownership of /etc/udev/rules.d
Matt Domsch 9010097
# releases after 115-3.20070920.git have the proper write_net_rules and 75-persistent-net-names.rules files
Matt Domsch 9010097
Requires: udev > 115-3.20070920git
Matt Domsch 0b19e0d
Matt Domsch 0b19e0d
Matt Domsch 0b19e0d
%description
Matt Domsch 0b19e0d
biosdevname in its simplest form takes a kernel device name as an
Matt Domsch 0b19e0d
argument, and returns the BIOS-given name it "should" be.  This is necessary
Matt Domsch 0b19e0d
on systems where the BIOS name for a given device (e.g. the label on
Matt Domsch 0b19e0d
the chassis is "Gb1") doesn't map directly and obviously to the kernel
Matt Domsch 0b19e0d
name (e.g. eth0).
Matt Domsch 0b19e0d
Matt Domsch 0b19e0d
%prep
Matt Domsch 0b19e0d
%setup -q
Matt Domsch 0b19e0d
Matt Domsch 0b19e0d
%build
Matt Domsch 0b19e0d
# this is a udev rule, so it needs to live in / rather than /usr
Matt Domsch 0b19e0d
%configure --disable-rpath --prefix=/ --sbindir=/sbin
Matt Domsch 0b19e0d
make %{?_smp_mflags}
Matt Domsch 0b19e0d
Matt Domsch 0b19e0d
Matt Domsch 0b19e0d
%install
Matt Domsch 0b19e0d
rm -rf %{buildroot}
Matt Domsch 0b19e0d
make install DESTDIR=%{buildroot}
Matt Domsch 0b19e0d
rm %{buildroot}/sbin/%{name}S  || :
Matt Domsch 0b19e0d
Matt Domsch 0b19e0d
%clean
Matt Domsch 0b19e0d
rm -rf %{buildroot}
Matt Domsch 0b19e0d
Matt Domsch 0b19e0d
%files
Matt Domsch 0b19e0d
%defattr(-,root,root,-)
Matt Domsch 0b19e0d
%doc COPYING README
Matt Domsch 0b19e0d
/sbin/%{name}
Matt Domsch 0b19e0d
%config(noreplace) %{_sysconfdir}/udev/rules.d/*%{name}.rules
Matt Domsch 276246d
%{_mandir}/man1/%{name}.1*
Matt Domsch 0b19e0d
Matt Domsch 0b19e0d
Matt Domsch 0b19e0d
%changelog
Matt Domsch a3aa742
* Sun Feb 10 2008 Matt Domsch <Matt_Domsch@dell.com> 0.2.4-4
Matt Domsch a3aa742
- rebuild for gcc43
Matt Domsch a3aa742
Matt Domsch 276246d
* Fri Sep 21 2007 Matt Domsch <Matt_Domsch@dell.com> 0.2.4-3
Matt Domsch 276246d
- fix manpage entry in files
Matt Domsch 276246d
Matt Domsch eb7126d
* Fri Sep 21 2007 Matt Domsch <Matt_Domsch@dell.com> 0.2.4-2
Matt Domsch eb7126d
- rebuild with Requires: udev > 115-3.20070920git
Matt Domsch eb7126d
Matt Domsch 0b19e0d
* Fri Sep 21 2007 Matt Domsch <Matt_Domsch@dell.com> 0.2.4-1
Matt Domsch 0b19e0d
- coordinate udev rules usage with udev maintainer
Matt Domsch 0b19e0d
- fix crashes in pcmcia search, in_ethernet(), and incorrect command
Matt Domsch 0b19e0d
  line parsing.
Matt Domsch 0b19e0d
Matt Domsch 0b19e0d
* Mon Aug 27 2007 Matt Domsch <Matt_Domsch@dell.com> 0.2.3-1
Matt Domsch 0b19e0d
- eliminate libbiosdevname.*, pre and post scripts
Matt Domsch 0b19e0d
Matt Domsch 0b19e0d
* Fri Aug 24 2007 Matt Domsch <Matt_Domsch@dell.com> 0.2.2-1
Matt Domsch 0b19e0d
- ExclusiveArch those arches with SMBIOS and PCI IRQ Routing tables
Matt Domsch 0b19e0d
- eliminate libsysfs dependency, move app to / for use before /usr is mounted.
Matt Domsch 0b19e0d
- build static
Matt Domsch 0b19e0d
Matt Domsch 0b19e0d
* Mon Aug 20 2007 Matt Domsch <Matt_Domsch@dell.com> 0.2.1-1
Matt Domsch 0b19e0d
- initial release