]>
Commit | Line | Data |
---|---|---|
1 | Summary: Udev helper for naming devices per BIOS names | |
2 | Summary(pl.UTF-8): Program pomocniczy udev do nazywania urządzeń zgodnie z nazwami BIOS-u | |
3 | Name: biosdevname | |
4 | Version: 0.7.3 | |
5 | Release: 1 | |
6 | License: GPL v2 | |
7 | Group: Base | |
8 | #Source0Download: https://github.com/dell/biosdevname/releases | |
9 | #TODO: switch to named sources: | |
10 | #Source0: https://github.com/dell/biosdevname/archive/v%{version}/%{name}-%{version}.tar.gz | |
11 | Source0: https://github.com/dell/biosdevname/archive/v%{version}.tar.gz | |
12 | # Source0-md5: e7e76fd8e4b72e7364b10655a9e5f716 | |
13 | URL: https://github.com/dell/biosdevname | |
14 | BuildRequires: autoconf >= 2.59 | |
15 | BuildRequires: automake | |
16 | BuildRequires: pciutils-devel | |
17 | BuildRequires: zlib-devel | |
18 | Requires: udev-core | |
19 | # SMBIOS only exists on these arches. It's also likely that other | |
20 | # arches don't expect the PCI bus to be sorted breadth-first, or if | |
21 | # so, there haven't been any comments about that on LKML. | |
22 | ExclusiveArch: %{ix86} %{x8664} x32 | |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
25 | %description | |
26 | biosdevname in its simplest form takes a kernel device name as an | |
27 | argument, and returns the BIOS-given name it "should" be. This is | |
28 | necessary on systems where the BIOS name for a given device (e.g. the | |
29 | label on the chassis is "Gb1") doesn't map directly and obviously to | |
30 | the kernel name (e.g. eth0). | |
31 | ||
32 | %description -l pl.UTF-8 | |
33 | biosdevname w najprostszej formie przyjmuje jako arugmnet nazwę | |
34 | urządzenia wg jądra Linuksa i zwraca, jaką ono powinno mieć nazwę | |
35 | nadaną przez BIOS. Jest to przydatne na systemach, gdzie BIOS-owa | |
36 | nazwa danego urządzenia (np. etykieta na obudowie "Gb1") nie ma | |
37 | bezpośredniego, oczywistego odwzorowania na nazwę wg jądra Linuksa | |
38 | (np. eth0). | |
39 | ||
40 | %prep | |
41 | %setup -q | |
42 | ||
43 | %build | |
44 | %{__aclocal} | |
45 | %{__autoconf} | |
46 | %{__autoheader} | |
47 | %{__automake} | |
48 | %configure \ | |
49 | --prefix=/ \ | |
50 | --sbindir=/sbin | |
51 | %{__make} | |
52 | ||
53 | %install | |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | ||
56 | %{__make} install install-data \ | |
57 | DESTDIR=$RPM_BUILD_ROOT | |
58 | ||
59 | %clean | |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | ||
62 | %files | |
63 | %defattr(644,root,root,755) | |
64 | %doc AUTHORS README TODO | |
65 | %attr(755,root,root) /sbin/biosdevname | |
66 | /lib/udev/rules.d/*-biosdevname.rules | |
67 | %{_mandir}/man1/biosdevname.1* |