]> git.pld-linux.org Git - packages/lsvpd.git/blob - lsvpd.spec
- added URL
[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 URL:            http://linux-diag.sourceforge.net/Lsvpd.html
11 PreReq:         rc-scripts
12 Requires(post,preun):   /sbin/chkconfig
13 Requires:       /bin/bash
14 Requires:       /bin/sed
15 Requires:       /bin/sh
16 #Requires:      sg3_utils >= 1.01
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 The lsvpd package contains both the lsvpd, lscfg and lsmcode commands.
21 These commands, along with a boot-time scanning script called
22 update-device-tree, constitute a simple hardware inventory system. The
23 lsvpd command provides Vital Product Data (VPD) about hardware
24 components to higher-level serviceability tools. The lscfg command
25 provides a more human-readable format of the VPD, as well as some
26 system-specific information. lsmcode lists microcode and firmware
27 levels.
28
29 %description -l pl
30 Pakiet lsvpd zawiera polecenia lsvpd, lscfg i lsmcode. Tworz± one,
31 wraz z uruchamianym przy starcie systemu skryptem update-device-tree,
32 prosty system inwentaryzacji sprzêtu. Polecenie lsvpd dostarcza VPD
33 (Vital Product Data) o podzespo³ach sprzêtowych dla narzêdzi wy¿szego
34 poziomu. Polecenie lscfg dostarcza bardziej czyteln± dla cz³owieka
35 postaæ VPD oraz trochê informacji specyficznych dla systemu. lsmcode
36 wypisuje poziomy mikrokodu i firmware'u.
37
38 %prep
39 %setup -q
40
41 %build
42 sed -ie "s,#!/bin/sh,#!/bin/bash," lsvpd.in
43 %{__make} \
44         CC="%{__cc}" \
45         CFLAGS="%{rpmcflags} -Wall -I../lib"
46
47 %clean
48 rm -rf $RPM_BUILD_ROOT
49
50 %install
51 rm -rf $RPM_BUILD_ROOT
52
53 %{__make} install \
54         DESTDIR=$RPM_BUILD_ROOT
55
56 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
57 install debian/init.d $RPM_BUILD_ROOT/etc/rc.d/init.d/lsvpd
58 # don't install this right now.  It can crash systems.
59 rm -f $RPM_BUILD_ROOT/lib/lsvpd/pci_vpd_rom_grab
60
61 install -d $RPM_BUILD_ROOT/etc/cron.daily
62 install lsvpd.cron.daily $RPM_BUILD_ROOT/etc/cron.daily/lsvpd
63
64 ln -sf /usr/bin/find $RPM_BUILD_ROOT/lib/lsvpd/find
65
66 %post
67 /sbin/chkconfig --add lsvpd
68
69 %preun
70 if [ "$1" = "0" ] ; then
71         /sbin/chkconfig --del lsvpd
72 fi
73
74 %files
75 %defattr(644,root,root,755)
76 %doc NEWS README TODO docs/*.html
77 %attr(755,root,root) /sbin/lsvpd
78 %attr(755,root,root) /sbin/lscfg
79 %attr(755,root,root) /sbin/lsmcode
80 %attr(755,root,root) /sbin/update-lsvpd-db
81 %dir /lib/lsvpd
82 /lib/lsvpd/common.d
83 /lib/lsvpd/common-post.d
84 /lib/lsvpd/debug.bash
85 /lib/lsvpd/lscfg.d
86 /lib/lsvpd/lsmcode.d
87 /lib/lsvpd/lsvpd-functions.bash
88 /lib/lsvpd/lsvpd.d
89 /lib/lsvpd/pci.ids
90 /lib/lsvpd/query.d
91 /lib/lsvpd/scan.d
92 /lib/lsvpd/scsihost.conf
93 /lib/lsvpd/scsivpd.conf
94 %attr(755,root,root) /lib/lsvpd/ibm_vpd_render
95 %attr(755,root,root) /lib/lsvpd/lsvpd_test
96 %attr(755,root,root) /lib/lsvpd/pci_ethernet_map
97 %attr(755,root,root) /lib/lsvpd/pci_lookup
98 %attr(755,root,root) /lib/lsvpd/pci_scsi_map
99 %attr(755,root,root) /lib/lsvpd/pci_vpd_cap_grab
100 %attr(755,root,root) /lib/lsvpd/scsi_vpd_render
101 %attr(755,root,root) /lib/lsvpd/tdump
102 %attr(755,root,root) /lib/lsvpd/tidy_lsvpd_dbs
103 %attr(755,root,root) /lib/lsvpd/tidy_subdirs
104 %attr(755,root,root) /lib/lsvpd/update-vpd.hotplug
105 %attr(755,root,root) /lib/lsvpd/vpd-name-crosslink.hotplug
106 %attr(754,root,root) /etc/rc.d/init.d/lsvpd
107 %attr(755,root,root) /etc/cron.daily/lsvpd
108 %{_mandir}/man8/*
This page took 0.068231 seconds and 4 git commands to generate.