]> git.pld-linux.org Git - packages/biosdevname.git/blob - biosdevname.spec
up to 0.7.3
[packages/biosdevname.git] / biosdevname.spec
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 Source0:        https://github.com/dell/biosdevname/archive/v%{version}.tar.gz
9 # Source0-md5:  e7e76fd8e4b72e7364b10655a9e5f716
10 URL:            https://github.com/dell/biosdevname
11 BuildRequires:  autoconf >= 2.59
12 BuildRequires:  automake
13 BuildRequires:  pciutils-devel
14 BuildRequires:  zlib-devel
15 Requires:       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 if
18 # so, there haven't been any comments about that on LKML.
19 ExclusiveArch:  %{ix86} %{x8664} x32
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
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
37 %prep
38 %setup -q
39
40 %build
41 %{__aclocal}
42 %{__autoconf}
43 %{__autoheader}
44 %{__automake}
45 %configure \
46         --prefix=/ \
47         --sbindir=/sbin
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)
60 %doc AUTHORS ChangeLog README TODO
61 %attr(755,root,root) /sbin/%{name}
62 /lib/udev/rules.d/*-biosdevname.rules
63 %{_mandir}/man1/%{name}.1*
This page took 0.060394 seconds and 3 git commands to generate.