]>
Commit | Line | Data |
---|---|---|
e9da034a | 1 | Summary: Udev helper for naming devices per BIOS names |
ecccf403 | 2 | Summary(pl.UTF-8): Program pomocniczy udev do nazywania urządzeń zgodnie z nazwami BIOS-u |
e9da034a | 3 | Name: biosdevname |
7960aba4 | 4 | Version: 0.7.1 |
e9da034a ER |
5 | Release: 1 |
6 | License: GPL v2 | |
7 | Group: Base | |
7960aba4 JP |
8 | Source0: http://linux.dell.com/files/biosdevname/%{name}-%{version}/%{name}-%{version}.tar.gz |
9 | # Source0-md5: 86d1040754df774f7a58e8aa2ced2d78 | |
ecccf403 JB |
10 | URL: http://linux.dell.com/files/biosdevname/ |
11 | BuildRequires: autoconf >= 2.59 | |
e9da034a | 12 | BuildRequires: automake |
6c838d48 ER |
13 | BuildRequires: pciutils-devel |
14 | BuildRequires: zlib-devel | |
e9da034a ER |
15 | Requires: udev-core |
16 | # SMBIOS only exists on these arches. It's also likely that other | |
e497225b | 17 | # arches don't expect the PCI bus to be sorted breadth-first, or if |
e9da034a | 18 | # so, there haven't been any comments about that on LKML. |
e497225b | 19 | ExclusiveArch: %{ix86} %{x8664} x32 |
e9da034a ER |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
21 | ||
22 | %description | |
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). | |
28 | ||
ecccf403 JB |
29 | %description -l pl.UTF-8 |
30 | biosdevname w najprostszej formie przyjmuje jako arugmnet nazwę | |
31 | urządzenia wg jądra Linuksa i zwraca, jaką ono powinno mieć nazwę | |
32 | nadaną przez BIOS. Jest to przydatne na systemach, gdzie BIOS-owa | |
33 | nazwa danego urządzenia (np. etykieta na obudowie "Gb1") nie ma | |
34 | bezpośredniego, oczywistego odwzorowania na nazwę wg jądra Linuksa | |
35 | (np. eth0). | |
36 | ||
e9da034a ER |
37 | %prep |
38 | %setup -q | |
39 | ||
e9da034a | 40 | %build |
e9da034a ER |
41 | %{__aclocal} |
42 | %{__autoconf} | |
43 | %{__autoheader} | |
44 | %{__automake} | |
45 | %configure \ | |
46 | --prefix=/ \ | |
6c838d48 | 47 | --sbindir=/sbin |
e9da034a ER |
48 | %{__make} |
49 | ||
50 | %install | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | %{__make} install install-data \ | |
53 | DESTDIR=$RPM_BUILD_ROOT | |
54 | ||
55 | %clean | |
56 | rm -rf $RPM_BUILD_ROOT | |
57 | ||
58 | %files | |
59 | %defattr(644,root,root,755) | |
ecccf403 | 60 | %doc AUTHORS ChangeLog README TODO |
6c838d48 | 61 | %attr(755,root,root) /sbin/%{name} |
ecccf403 | 62 | /lib/udev/rules.d/*-biosdevname.rules |
e9da034a | 63 | %{_mandir}/man1/%{name}.1* |