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: d5e46f3a92e36a82a07e02fd3244e6d9
10 Patch0: %{name}-ide-proc.patch
11 URL: http://linux-diag.sourceforge.net/Lsvpd.html
12 BuildRequires: perl-base
13 BuildRequires: sed >= 4.0
15 Requires(post,preun): /sbin/chkconfig
19 #Requires: sg3_utils >= 1.01
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 The lsvpd package contains both the lsvpd, lscfg and lsmcode commands.
24 These commands, along with a boot-time scanning script called
25 update-device-tree, constitute a simple hardware inventory system. The
26 lsvpd command provides Vital Product Data (VPD) about hardware
27 components to higher-level serviceability tools. The lscfg command
28 provides a more human-readable format of the VPD, as well as some
29 system-specific information. lsmcode lists microcode and firmware
33 Pakiet lsvpd zawiera polecenia lsvpd, lscfg i lsmcode. Tworz± one,
34 wraz z uruchamianym przy starcie systemu skryptem update-device-tree,
35 prosty system inwentaryzacji sprzêtu. Polecenie lsvpd dostarcza VPD
36 (Vital Product Data) o podzespo³ach sprzêtowych dla narzêdzi wy¿szego
37 poziomu. Polecenie lscfg dostarcza bardziej czyteln± dla cz³owieka
38 postaæ VPD oraz trochê informacji specyficznych dla systemu. lsmcode
39 wypisuje poziomy mikrokodu i firmware'u.
46 sed -ie "s,#!/bin/sh,#!/bin/bash," lsvpd.in
49 CFLAGS="%{rpmcflags} -Wall -I../lib"
52 rm -rf $RPM_BUILD_ROOT
55 rm -rf $RPM_BUILD_ROOT
58 DESTDIR=$RPM_BUILD_ROOT
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.
63 rm -f $RPM_BUILD_ROOT/lib/lsvpd/pci_vpd_rom_grab
65 install -d $RPM_BUILD_ROOT/etc/cron.daily
66 install lsvpd.cron.daily $RPM_BUILD_ROOT/etc/cron.daily/lsvpd
68 ln -sf /usr/bin/find $RPM_BUILD_ROOT/lib/lsvpd/find
71 /sbin/chkconfig --add lsvpd
74 if [ "$1" = "0" ] ; then
75 /sbin/chkconfig --del lsvpd
79 %defattr(644,root,root,755)
80 %doc NEWS README TODO docs/*.html
81 %attr(755,root,root) /sbin/lsvpd
82 %attr(755,root,root) /sbin/lscfg
83 %attr(755,root,root) /sbin/lsmcode
84 %attr(755,root,root) /sbin/update-lsvpd-db
87 /lib/lsvpd/common-post.d
91 /lib/lsvpd/lsvpd-functions.bash
96 /lib/lsvpd/scsihost.conf
97 /lib/lsvpd/scsivpd.conf
98 %attr(755,root,root) /lib/lsvpd/ibm_vpd_render
99 %attr(755,root,root) /lib/lsvpd/lsvpd_test
100 %attr(755,root,root) /lib/lsvpd/pci_ethernet_map
101 %attr(755,root,root) /lib/lsvpd/pci_lookup
102 %attr(755,root,root) /lib/lsvpd/pci_scsi_map
103 %attr(755,root,root) /lib/lsvpd/pci_vpd_cap_grab
104 %attr(755,root,root) /lib/lsvpd/scsi_vpd_render
105 %attr(755,root,root) /lib/lsvpd/tdump
106 %attr(755,root,root) /lib/lsvpd/tidy_lsvpd_dbs
107 %attr(755,root,root) /lib/lsvpd/tidy_subdirs
108 %attr(755,root,root) /lib/lsvpd/update-vpd.hotplug
109 %attr(755,root,root) /lib/lsvpd/vpd-name-crosslink.hotplug
110 %attr(754,root,root) /etc/rc.d/init.d/lsvpd
111 %attr(755,root,root) /etc/cron.daily/lsvpd