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
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
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)
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).
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
54 rm -rf $RPM_BUILD_ROOT
56 %{__make} install install-data \
57 DESTDIR=$RPM_BUILD_ROOT
60 rm -rf $RPM_BUILD_ROOT
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*