- up to 0.4.0
[packages/biosdevname.git] / biosdevname.spec
CommitLineData
e9da034a
ER
1Summary: Udev helper for naming devices per BIOS names
2Name: biosdevname
a549425b 3Version: 0.4.0
e9da034a
ER
4Release: 1
5License: GPL v2
6Group: Base
7URL: http://linux.dell.com/files/biosdevname
674e4ea2 8Source0: https://linux.dell.com/files/biosdevname/%{name}-%{version}/biosdevname-%{version}.tar.gz
a549425b 9# Source0-md5: 43265fd7b26dd02b171cd0c6531d93f5
e9da034a
ER
10BuildRequires: autoconf
11BuildRequires: automake
12BuildRequires: libtool
6c838d48
ER
13BuildRequires: pciutils-devel
14BuildRequires: zlib-devel
e9da034a
ER
15Requires: udev-core
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.
19ExclusiveArch: %{ix86} %{x8664} ia64
20BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22%description
23biosdevname in its simplest form takes a kernel device name as an
24argument, and returns the BIOS-given name it "should" be. This is
25necessary on systems where the BIOS name for a given device (e.g. the
26label on the chassis is "Gb1") doesn't map directly and obviously to
27the kernel name (e.g. eth0).
28
29%prep
30%setup -q
31
e9da034a
ER
32%build
33%{__libtoolize}
34%{__aclocal}
35%{__autoconf}
36%{__autoheader}
37%{__automake}
38%configure \
39 --prefix=/ \
6c838d48 40 --sbindir=/sbin
e9da034a
ER
41%{__make}
42
43%install
44rm -rf $RPM_BUILD_ROOT
45%{__make} install install-data \
46 DESTDIR=$RPM_BUILD_ROOT
47
48%clean
49rm -rf $RPM_BUILD_ROOT
50
51%files
52%defattr(644,root,root,755)
53%doc README
6c838d48 54%attr(755,root,root) /sbin/%{name}
e9da034a
ER
55/lib/udev/rules.d/*.rules
56%{_mandir}/man1/%{name}.1*
This page took 0.070906 seconds and 4 git commands to generate.