]> git.pld-linux.org Git - packages/lsvpd.git/blob - lsvpd.spec
- updated to 0.12.3
[packages/lsvpd.git] / lsvpd.spec
1 Summary:        VPD/hardware inventory utilities for Linux
2 Summary(pl):    Narzêdzia do inwentaryzacji VPD/sprzêtu dla Linuksa
3 Name:           lsvpd
4 Version:        0.12.3
5 Release:        1
6 License:        GPL
7 Group:          Applications/System
8 Source0:        http://dl.sourceforge.net/linux-diag/%{name}-%{version}.tar.gz
9 # Source0-md5:  0fc276aa5c7ffba17c94c702490902b6
10 PreReq:         rc-scripts
11 Requires(post,preun):   /sbin/chkconfig
12 Requires:       /bin/bash
13 Requires:       /bin/sed
14 Requires:       /bin/sh
15 #Requires:      sg3_utils >= 1.01
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
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
26 levels.
27
28 %description -l pl
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.
36
37 %prep
38 %setup -q
39
40 %build
41 sed -ie "s,#!/bin/sh,#!/bin/bash," lsvpd.in
42 %{__make} \
43         CC="%{__cc}" \
44         CFLAGS="%{rpmcflags} -Wall -I../lib"
45
46 %clean
47 rm -rf $RPM_BUILD_ROOT
48
49 %install
50 rm -rf $RPM_BUILD_ROOT
51
52 %{__make} install \
53         DESTDIR=$RPM_BUILD_ROOT
54
55 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
56 install debian/init.d $RPM_BUILD_ROOT/etc/rc.d/init.d/lsvpd
57 # don't install this right now.  It can crash systems.
58 rm -f $RPM_BUILD_ROOT/lib/lsvpd/pci_vpd_rom_grab
59
60 install -d $RPM_BUILD_ROOT/etc/cron.daily
61 install lsvpd.cron.daily $RPM_BUILD_ROOT/etc/cron.daily/lsvpd
62
63 ln -sf /usr/bin/find $RPM_BUILD_ROOT/lib/lsvpd/find
64
65 %post
66 /sbin/chkconfig --add lsvpd
67
68 %preun
69 if [ "$1" = "0" ] ; then
70         /sbin/chkconfig --del lsvpd
71 fi
72
73 %files
74 %defattr(644,root,root,755)
75 %doc NEWS README TODO docs/*.html
76 %attr(755,root,root) /sbin/lsvpd
77 %attr(755,root,root) /sbin/lscfg
78 %attr(755,root,root) /sbin/lsmcode
79 %attr(755,root,root) /sbin/update-lsvpd-db
80 %dir /lib/lsvpd
81 /lib/lsvpd/common.d
82 /lib/lsvpd/common-post.d
83 /lib/lsvpd/debug.bash
84 /lib/lsvpd/lscfg.d
85 /lib/lsvpd/lsmcode.d
86 /lib/lsvpd/lsvpd-functions.bash
87 /lib/lsvpd/lsvpd.d
88 /lib/lsvpd/pci.ids
89 /lib/lsvpd/query.d
90 /lib/lsvpd/scan.d
91 /lib/lsvpd/scsihost.conf
92 /lib/lsvpd/scsivpd.conf
93 %attr(755,root,root) /lib/lsvpd/ibm_vpd_render
94 %attr(755,root,root) /lib/lsvpd/lsvpd_test
95 %attr(755,root,root) /lib/lsvpd/pci_ethernet_map
96 %attr(755,root,root) /lib/lsvpd/pci_lookup
97 %attr(755,root,root) /lib/lsvpd/pci_scsi_map
98 %attr(755,root,root) /lib/lsvpd/pci_vpd_cap_grab
99 %attr(755,root,root) /lib/lsvpd/scsi_vpd_render
100 %attr(755,root,root) /lib/lsvpd/tdump
101 %attr(755,root,root) /lib/lsvpd/tidy_lsvpd_dbs
102 %attr(755,root,root) /lib/lsvpd/tidy_subdirs
103 %attr(755,root,root) /lib/lsvpd/update-vpd.hotplug
104 %attr(755,root,root) /lib/lsvpd/vpd-name-crosslink.hotplug
105 %attr(754,root,root) /etc/rc.d/init.d/lsvpd
106 %attr(755,root,root) /etc/cron.daily/lsvpd
107 %{_mandir}/man8/*
This page took 0.078975 seconds and 4 git commands to generate.