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