1 Summary: Udev helper for naming devices per BIOS names
7 URL: http://linux.dell.com/files/biosdevname
8 Source0: http://linux.dell.com/files/biosdevname/permalink/%{name}-%{version}.tar.gz
9 # Source0-md5: 6dfc8802a51786b9b851c0b2705312c7
10 BuildRequires: pciutils-devel
11 BuildRequires: zlib-devel
12 BuildRequires: autoconf
13 BuildRequires: automake
14 BuildRequires: libtool
16 # SMBIOS only exists on these arches. It's also likely that other
17 # arches don't expect the PCI bus to be sorted breadth-first, or of
18 # so, there haven't been any comments about that on LKML.
19 ExclusiveArch: %{ix86} %{x8664} ia64
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 biosdevname in its simplest form takes a kernel device name as an
24 argument, and returns the BIOS-given name it "should" be. This is
25 necessary on systems where the BIOS name for a given device (e.g. the
26 label on the chassis is "Gb1") doesn't map directly and obviously to
27 the kernel name (e.g. eth0).
33 %{__sed} -i -e '/sbin_PROGRAMS/ s/src\/biosdevnameS//' src/Makefile.am
35 # path was supposed to be configurable
36 %{__sed} -i -e 's,/sbin/biosdevname,@sbindir@/biosdevname,' biosdevname.rules.in
37 %{__sed} -i -e '/AC_CONFIG_FILES/ s/Makefile/& biosdevname.rules/' configure.ac
38 %{__sed} -i -e '/INSTALL_DATA/ s/biosdevname.rules.in/biosdevname.rules/' Makefile.am
54 rm -rf $RPM_BUILD_ROOT
55 %{__make} install install-data \
56 DESTDIR=$RPM_BUILD_ROOT
59 rm -rf $RPM_BUILD_ROOT
62 %defattr(644,root,root,755)
64 %attr(755,root,root) /lib/udev/%{name}
65 /lib/udev/rules.d/*.rules
66 %{_mandir}/man1/%{name}.1*