]>
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 |
501986a1 | 4 | Version: 0.7.3 |
e9da034a ER |
5 | Release: 1 |
6 | License: GPL v2 | |
7 | Group: Base | |
6bc9c0a0 JB |
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 | |
501986a1 JP |
11 | Source0: https://github.com/dell/biosdevname/archive/v%{version}.tar.gz |
12 | # Source0-md5: e7e76fd8e4b72e7364b10655a9e5f716 | |
13 | URL: https://github.com/dell/biosdevname | |
ecccf403 | 14 | BuildRequires: autoconf >= 2.59 |
e9da034a | 15 | BuildRequires: automake |
6c838d48 ER |
16 | BuildRequires: pciutils-devel |
17 | BuildRequires: zlib-devel | |
e9da034a ER |
18 | Requires: udev-core |
19 | # SMBIOS only exists on these arches. It's also likely that other | |
e497225b | 20 | # arches don't expect the PCI bus to be sorted breadth-first, or if |
e9da034a | 21 | # so, there haven't been any comments about that on LKML. |
e497225b | 22 | ExclusiveArch: %{ix86} %{x8664} x32 |
e9da034a ER |
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 | ||
ecccf403 JB |
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 | ||
e9da034a ER |
40 | %prep |
41 | %setup -q | |
42 | ||
e9da034a | 43 | %build |
e9da034a ER |
44 | %{__aclocal} |
45 | %{__autoconf} | |
46 | %{__autoheader} | |
47 | %{__automake} | |
48 | %configure \ | |
49 | --prefix=/ \ | |
6c838d48 | 50 | --sbindir=/sbin |
e9da034a ER |
51 | %{__make} |
52 | ||
53 | %install | |
54 | rm -rf $RPM_BUILD_ROOT | |
6bc9c0a0 | 55 | |
e9da034a ER |
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) | |
6bc9c0a0 JB |
64 | %doc AUTHORS README TODO |
65 | %attr(755,root,root) /sbin/biosdevname | |
ecccf403 | 66 | /lib/udev/rules.d/*-biosdevname.rules |
6bc9c0a0 | 67 | %{_mandir}/man1/biosdevname.1* |