]>
Commit | Line | Data |
---|---|---|
b6828385 | 1 | Summary: A tool for dumping a computer's DMI table contents |
cb3a2974 | 2 | Summary(pl.UTF-8): Narzędzie do zrzucania zawartości tabeli DMI komputera |
b6828385 | 3 | Name: dmidecode |
b0bf1790 JB |
4 | Version: 3.0 |
5 | Release: 1 | |
d7b7b77b | 6 | License: GPL v2+ |
b6828385 | 7 | Group: Applications/System |
b0bf1790 JB |
8 | Source0: http://savannah.nongnu.org/download/dmidecode/%{name}-%{version}.tar.xz |
9 | # Source0-md5: 281ee572d45c78eca73a14834c495ffd | |
352666c6 | 10 | Patch0: %{name}-fixes.patch |
5fffe5eb | 11 | URL: http://www.nongnu.org/dmidecode/ |
b0bf1790 JB |
12 | BuildRequires: tar >= 1:1.22 |
13 | BuildRequires: xz | |
b6828385 | 14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
15 | ||
b6828385 | 16 | %description |
17 | Dmidecode is a tool for dumping a computer's DMI (some say SMBIOS) | |
18 | table contents in a human-readable format. This table contains a | |
19 | description of the system's hardware components, as well as other | |
20 | useful pieces of information such as serial numbers and BIOS revision. | |
21 | ||
7389a266 JR |
22 | %description -l pl.UTF-8 |
23 | Dmidecode jest narzędziem do zrzucania zawartości DMI (niektórzy mówią | |
24 | na to SMBIOS) komputera w formacie odczytywalnym przez człowieka. | |
25 | Tabela ta zawiera opis sprzętowych komponentów systemu, a także | |
d7b7b77b JB |
26 | użyteczne kawałki informacji takie jak numery seryjne i rewizja |
27 | BIOS-u. | |
b6828385 | 28 | |
29 | %prep | |
12c0a597 | 30 | %setup -q |
352666c6 | 31 | %patch0 -p1 |
b6828385 | 32 | |
33 | %build | |
9f25d81a JB |
34 | %{__make} \ |
35 | CC="%{__cc}" \ | |
73e49963 | 36 | CFLAGS="%{rpmcppflags} %{rpmcflags} -Wall -W -pedantic" \ |
37 | LDFLAGS="%{rpmcflags} %{rpmldflags}" | |
b6828385 | 38 | |
39 | %install | |
40 | rm -rf $RPM_BUILD_ROOT | |
b6828385 | 41 | |
9f25d81a | 42 | %{__make} install \ |
0f494337 | 43 | prefix=%{_prefix} \ |
44 | DESTDIR=$RPM_BUILD_ROOT | |
b6828385 | 45 | |
b0bf1790 | 46 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/dmidecode |
c5d0bc88 | 47 | |
b6828385 | 48 | %clean |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | ||
51 | %files | |
52 | %defattr(644,root,root,755) | |
5fffe5eb | 53 | %doc AUTHORS CHANGELOG README |
d7b7b77b JB |
54 | %attr(755,root,root) %{_sbindir}/biosdecode |
55 | %attr(755,root,root) %{_sbindir}/dmidecode | |
56 | %attr(755,root,root) %{_sbindir}/ownership | |
57 | %attr(755,root,root) %{_sbindir}/vpddecode | |
58 | %{_mandir}/man8/biosdecode.8* | |
59 | %{_mandir}/man8/dmidecode.8* | |
60 | %{_mandir}/man8/ownership.8* | |
61 | %{_mandir}/man8/vpddecode.8* |