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: d3abbecb7056816fe3f6ce6729b433cc
10 URL: http://linux-diag.sourceforge.net/Lsvpd.html
11 BuildRequires: perl-base
12 BuildRequires: rpmbuild(macros) >= 1.268
13 BuildRequires: sed >= 4.0
14 BuildRequires: sg3_utils-devel >= 1.01
15 Requires(post,preun): /sbin/chkconfig
20 Requires: sg3_utils >= 1.01
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 The lsvpd package contains both the lsvpd, lscfg and lsmcode commands.
25 These commands, along with a boot-time scanning script called
26 update-device-tree, constitute a simple hardware inventory system. The
27 lsvpd command provides Vital Product Data (VPD) about hardware
28 components to higher-level serviceability tools. The lscfg command
29 provides a more human-readable format of the VPD, as well as some
30 system-specific information. lsmcode lists microcode and firmware
34 Pakiet lsvpd zawiera polecenia lsvpd, lscfg i lsmcode. Tworz± one,
35 wraz z uruchamianym przy starcie systemu skryptem update-device-tree,
36 prosty system inwentaryzacji sprzêtu. Polecenie lsvpd dostarcza VPD
37 (Vital Product Data) o podzespo³ach sprzêtowych dla narzêdzi wy¿szego
38 poziomu. Polecenie lscfg dostarcza bardziej czyteln± dla cz³owieka
39 postaæ VPD oraz trochê informacji specyficznych dla systemu. lsmcode
40 wypisuje poziomy mikrokodu i firmware'u.
44 sed -i -e "s,#!/bin/sh,#!/bin/bash," scripts/lsvpd.in
47 # disable unit-at-a-time - see src/init.h
50 CFLAGS="%{rpmcflags} -fno-unit-at-a-time -Wall -Werror -I../lib" \
54 rm -rf $RPM_BUILD_ROOT
57 DESTDIR=$RPM_BUILD_ROOT
59 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
60 install debian/init.d $RPM_BUILD_ROOT/etc/rc.d/init.d/lsvpd
61 # don't install this right now. It can crash systems.
62 #rm -f $RPM_BUILD_ROOT/lib/lsvpd/pci_vpd_rom_grab
64 install -d $RPM_BUILD_ROOT/etc/cron.daily
65 install debian/cron.daily $RPM_BUILD_ROOT/etc/cron.daily/lsvpd
67 ln -sf /usr/bin/find $RPM_BUILD_ROOT/lib/lsvpd/find
70 rm -rf $RPM_BUILD_ROOT
73 /sbin/chkconfig --add lsvpd
74 %service lsvpd restart
77 if [ "$1" = "0" ] ; then
79 /sbin/chkconfig --del lsvpd
83 %defattr(644,root,root,755)
84 %doc NEWS README TODO docs/*.html
85 %attr(755,root,root) /sbin/lsvpd
86 %attr(755,root,root) /sbin/lscfg
87 %attr(755,root,root) /sbin/lsmcode
88 %attr(755,root,root) /sbin/lsvio
89 %attr(755,root,root) /sbin/update-lsvpd-db
92 /lib/lsvpd/common-post.d
98 /lib/lsvpd/lsvpd-functions.bash
103 /lib/lsvpd/scsivpd.conf
104 %attr(755,root,root) /lib/lsvpd/adapter_pci_legacy
105 %attr(755,root,root) /lib/lsvpd/ibm_vpd_render
106 %attr(755,root,root) /lib/lsvpd/node_handler
107 %attr(755,root,root) /lib/lsvpd/tdump
108 %attr(754,root,root) /etc/rc.d/init.d/lsvpd
109 %attr(755,root,root) /etc/cron.daily/lsvpd