]> git.pld-linux.org Git - packages/biosdevname.git/blame_incremental - biosdevname.spec
- based on fedora package
[packages/biosdevname.git] / biosdevname.spec
... / ...
CommitLineData
1Summary: Udev helper for naming devices per BIOS names
2Name: biosdevname
3Version: 0.3.4
4Release: 1
5License: GPL v2
6Group: Base
7URL: http://linux.dell.com/files/biosdevname
8Source0: http://linux.dell.com/files/biosdevname/permalink/%{name}-%{version}.tar.gz
9# Source0-md5: 6dfc8802a51786b9b851c0b2705312c7
10BuildRequires: pciutils-devel
11BuildRequires: zlib-devel
12BuildRequires: autoconf
13BuildRequires: automake
14BuildRequires: libtool
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
32# don't build static
33%{__sed} -i -e '/sbin_PROGRAMS/ s/src\/biosdevnameS//' src/Makefile.am
34
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
39
40%build
41%{__libtoolize}
42%{__aclocal}
43%{__autoconf}
44%{__autoheader}
45%{__automake}
46%configure \
47 --prefix=/ \
48 --sbindir=/lib/udev \
49 --sysconfdir=/lib \
50
51%{__make}
52
53%install
54rm -rf $RPM_BUILD_ROOT
55%{__make} install install-data \
56 DESTDIR=$RPM_BUILD_ROOT
57
58%clean
59rm -rf $RPM_BUILD_ROOT
60
61%files
62%defattr(644,root,root,755)
63%doc README
64%attr(755,root,root) /lib/udev/%{name}
65/lib/udev/rules.d/*.rules
66%{_mandir}/man1/%{name}.1*
This page took 0.06599 seconds and 4 git commands to generate.