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