]>
Commit | Line | Data |
---|---|---|
a6b33d7b | 1 | Summary: VPD/hardware inventory utilities for Linux |
40312222 | 2 | Summary(pl.UTF-8): Narzędzia do inwentaryzacji VPD/sprzętu dla Linuksa |
a6b33d7b | 3 | Name: lsvpd |
97eed209 | 4 | Version: 0.16.0 |
bc8f7eb8 | 5 | Release: 1 |
a6b33d7b JB |
6 | License: GPL |
7 | Group: Applications/System | |
8 | Source0: http://dl.sourceforge.net/linux-diag/%{name}-%{version}.tar.gz | |
97eed209 | 9 | # Source0-md5: d3abbecb7056816fe3f6ce6729b433cc |
30c21f0a | 10 | Patch0: %{name}-gcc4.patch |
27f7840e | 11 | URL: http://linux-diag.sourceforge.net/Lsvpd.html |
084a6e96 | 12 | BuildRequires: perl-base |
11297fa9 | 13 | BuildRequires: rpmbuild(macros) >= 1.268 |
750c3256 | 14 | BuildRequires: sed >= 4.0 |
8706ca9d | 15 | BuildRequires: sg3_utils-devel >= 1.01 |
a6b33d7b JB |
16 | Requires(post,preun): /sbin/chkconfig |
17 | Requires: /bin/bash | |
18 | Requires: /bin/sed | |
19 | Requires: /bin/sh | |
00f47270 | 20 | Requires: rc-scripts |
8706ca9d | 21 | Requires: sg3_utils >= 1.01 |
a6b33d7b JB |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
23 | ||
24 | %description | |
25 | The lsvpd package contains both the lsvpd, lscfg and lsmcode commands. | |
26 | These commands, along with a boot-time scanning script called | |
27 | update-device-tree, constitute a simple hardware inventory system. The | |
28 | lsvpd command provides Vital Product Data (VPD) about hardware | |
29 | components to higher-level serviceability tools. The lscfg command | |
30 | provides a more human-readable format of the VPD, as well as some | |
31 | system-specific information. lsmcode lists microcode and firmware | |
32 | levels. | |
33 | ||
a018b7aa JR |
34 | %description -l pl.UTF-8 |
35 | Pakiet lsvpd zawiera polecenia lsvpd, lscfg i lsmcode. Tworzą one, | |
a6b33d7b | 36 | wraz z uruchamianym przy starcie systemu skryptem update-device-tree, |
a018b7aa JR |
37 | prosty system inwentaryzacji sprzętu. Polecenie lsvpd dostarcza VPD |
38 | (Vital Product Data) o podzespołach sprzętowych dla narzędzi wyższego | |
39 | poziomu. Polecenie lscfg dostarcza bardziej czytelną dla człowieka | |
40 | postać VPD oraz trochę informacji specyficznych dla systemu. lsmcode | |
a6b33d7b JB |
41 | wypisuje poziomy mikrokodu i firmware'u. |
42 | ||
43 | %prep | |
44 | %setup -q | |
30c21f0a | 45 | %patch0 -p1 |
8706ca9d | 46 | sed -i -e "s,#!/bin/sh,#!/bin/bash," scripts/lsvpd.in |
a6b33d7b JB |
47 | |
48 | %build | |
49 | %{__make} \ | |
50 | CC="%{__cc}" \ | |
30c21f0a | 51 | CFLAGS="%{rpmcflags} -Wall -Werror -I../lib" \ |
97eed209 | 52 | LDLIBS="-lsgutils" |
a6b33d7b JB |
53 | |
54 | %install | |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
57 | %{__make} install \ | |
58 | DESTDIR=$RPM_BUILD_ROOT | |
59 | ||
60 | install -d $RPM_BUILD_ROOT/etc/rc.d/init.d | |
61 | install debian/init.d $RPM_BUILD_ROOT/etc/rc.d/init.d/lsvpd | |
62 | # don't install this right now. It can crash systems. | |
97eed209 | 63 | #rm -f $RPM_BUILD_ROOT/lib/lsvpd/pci_vpd_rom_grab |
a6b33d7b JB |
64 | |
65 | install -d $RPM_BUILD_ROOT/etc/cron.daily | |
97eed209 | 66 | install debian/cron.daily $RPM_BUILD_ROOT/etc/cron.daily/lsvpd |
a6b33d7b JB |
67 | |
68 | ln -sf /usr/bin/find $RPM_BUILD_ROOT/lib/lsvpd/find | |
69 | ||
8706ca9d JB |
70 | %clean |
71 | rm -rf $RPM_BUILD_ROOT | |
72 | ||
a6b33d7b JB |
73 | %post |
74 | /sbin/chkconfig --add lsvpd | |
11297fa9 | 75 | %service lsvpd restart |
a6b33d7b JB |
76 | |
77 | %preun | |
78 | if [ "$1" = "0" ] ; then | |
11297fa9 | 79 | %service lsvpd stop |
a6b33d7b JB |
80 | /sbin/chkconfig --del lsvpd |
81 | fi | |
82 | ||
83 | %files | |
84 | %defattr(644,root,root,755) | |
85 | %doc NEWS README TODO docs/*.html | |
86 | %attr(755,root,root) /sbin/lsvpd | |
87 | %attr(755,root,root) /sbin/lscfg | |
88 | %attr(755,root,root) /sbin/lsmcode | |
8706ca9d | 89 | %attr(755,root,root) /sbin/lsvio |
ead54238 JB |
90 | %attr(755,root,root) /sbin/update-lsvpd-db |
91 | %dir /lib/lsvpd | |
b202f3c1 | 92 | /lib/lsvpd/common.d |
9dfbb630 | 93 | /lib/lsvpd/common-post.d |
b202f3c1 | 94 | /lib/lsvpd/debug.bash |
8706ca9d | 95 | /lib/lsvpd/ide_mf.map |
b202f3c1 | 96 | /lib/lsvpd/lscfg.d |
97 | /lib/lsvpd/lsmcode.d | |
8706ca9d | 98 | /lib/lsvpd/lsvio.d |
b202f3c1 | 99 | /lib/lsvpd/lsvpd-functions.bash |
100 | /lib/lsvpd/lsvpd.d | |
101 | /lib/lsvpd/pci.ids | |
102 | /lib/lsvpd/query.d | |
103 | /lib/lsvpd/scan.d | |
b202f3c1 | 104 | /lib/lsvpd/scsivpd.conf |
97eed209 | 105 | %attr(755,root,root) /lib/lsvpd/adapter_pci_legacy |
b202f3c1 | 106 | %attr(755,root,root) /lib/lsvpd/ibm_vpd_render |
97eed209 | 107 | %attr(755,root,root) /lib/lsvpd/node_handler |
ead54238 | 108 | %attr(755,root,root) /lib/lsvpd/tdump |
a6b33d7b JB |
109 | %attr(754,root,root) /etc/rc.d/init.d/lsvpd |
110 | %attr(755,root,root) /etc/cron.daily/lsvpd | |
111 | %{_mandir}/man8/* |