1 Summary: VPD/hardware inventory utilities for Linux
2 Summary(pl): Narzêdzia do inwentaryzacji VPD/sprzêtu dla Linuksa
7 Group: Applications/System
8 Source0: http://dl.sourceforge.net/linux-diag/%{name}-%{version}.tar.gz
9 # Source0-md5: ba1bb42d627c815d89bf57e43a5b3de1
11 Requires(post,preun): /sbin/chkconfig
15 #Requires: sg3_utils >= 1.01
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 The lsvpd package contains both the lsvpd, lscfg and lsmcode commands.
20 These commands, along with a boot-time scanning script called
21 update-device-tree, constitute a simple hardware inventory system. The
22 lsvpd command provides Vital Product Data (VPD) about hardware
23 components to higher-level serviceability tools. The lscfg command
24 provides a more human-readable format of the VPD, as well as some
25 system-specific information. lsmcode lists microcode and firmware
29 Pakiet lsvpd zawiera polecenia lsvpd, lscfg i lsmcode. Tworz± one,
30 wraz z uruchamianym przy starcie systemu skryptem update-device-tree,
31 prosty system inwentaryzacji sprzêtu. Polecenie lsvpd dostarcza VPD
32 (Vital Product Data) o podzespo³ach sprzêtowych dla narzêdzi wy¿szego
33 poziomu. Polecenie lscfg dostarcza bardziej czyteln± dla cz³owieka
34 postaæ VPD oraz trochê informacji specyficznych dla systemu. lsmcode
35 wypisuje poziomy mikrokodu i firmware'u.
43 CFLAGS="%{rpmcflags} -Wall -I../lib"
46 rm -rf $RPM_BUILD_ROOT
49 rm -rf $RPM_BUILD_ROOT
52 DESTDIR=$RPM_BUILD_ROOT
54 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
55 install debian/init.d $RPM_BUILD_ROOT/etc/rc.d/init.d/lsvpd
56 # don't install this right now. It can crash systems.
57 rm -f $RPM_BUILD_ROOT/lib/lsvpd/pci_vpd_rom_grab
59 install -d $RPM_BUILD_ROOT/etc/cron.daily
60 install lsvpd.cron.daily $RPM_BUILD_ROOT/etc/cron.daily/lsvpd
62 ln -sf /usr/bin/find $RPM_BUILD_ROOT/lib/lsvpd/find
65 /sbin/chkconfig --add lsvpd
68 if [ "$1" = "0" ] ; then
69 /sbin/chkconfig --del lsvpd
73 %defattr(644,root,root,755)
74 %doc NEWS README TODO docs/*.html
75 %attr(755,root,root) /sbin/lsvpd
76 %attr(755,root,root) /sbin/lscfg
77 %attr(755,root,root) /sbin/lsmcode
78 %attr(755,root,root) /sbin/update-device-tree
80 %attr(754,root,root) /etc/rc.d/init.d/lsvpd
81 %attr(755,root,root) /etc/cron.daily/lsvpd