]> git.pld-linux.org Git - packages/lsvpd.git/blob - lsvpd.spec
- one more file
[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:  perl-base
13 BuildRequires:  sed >= 4.0
14 PreReq:         rc-scripts
15 Requires(post,preun):   /sbin/chkconfig
16 Requires:       /bin/bash
17 Requires:       /bin/sed
18 Requires:       /bin/sh
19 #Requires:      sg3_utils >= 1.01
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
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
30 levels.
31
32 %description -l pl
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.
40
41 %prep
42 %setup -q
43 %patch0 -p1
44
45 %build
46 sed -ie "s,#!/bin/sh,#!/bin/bash," lsvpd.in
47 %{__make} \
48         CC="%{__cc}" \
49         CFLAGS="%{rpmcflags} -Wall -I../lib"
50
51 %clean
52 rm -rf $RPM_BUILD_ROOT
53
54 %install
55 rm -rf $RPM_BUILD_ROOT
56
57 %{__make} install \
58         DESTDIR=$RPM_BUILD_ROOT
59
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
64
65 install -d $RPM_BUILD_ROOT/etc/cron.daily
66 install lsvpd.cron.daily $RPM_BUILD_ROOT/etc/cron.daily/lsvpd
67
68 ln -sf /usr/bin/find $RPM_BUILD_ROOT/lib/lsvpd/find
69
70 %post
71 /sbin/chkconfig --add lsvpd
72
73 %preun
74 if [ "$1" = "0" ] ; then
75         /sbin/chkconfig --del lsvpd
76 fi
77
78 %files
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
85 %dir /lib/lsvpd
86 /lib/lsvpd/common.d
87 /lib/lsvpd/common-post.d
88 /lib/lsvpd/debug.bash
89 /lib/lsvpd/lscfg.d
90 /lib/lsvpd/lsmcode.d
91 /lib/lsvpd/lsvpd-functions.bash
92 /lib/lsvpd/lsvpd.d
93 /lib/lsvpd/pci.ids
94 /lib/lsvpd/pci.vendor.blacklist
95 /lib/lsvpd/query.d
96 /lib/lsvpd/scan.d
97 /lib/lsvpd/scsihost.conf
98 /lib/lsvpd/scsivpd.conf
99 %attr(755,root,root) /lib/lsvpd/ibm_vpd_render
100 %attr(755,root,root) /lib/lsvpd/lsvpd_test
101 %attr(755,root,root) /lib/lsvpd/pci_ethernet_map
102 %attr(755,root,root) /lib/lsvpd/pci_lookup
103 %attr(755,root,root) /lib/lsvpd/pci_scsi_map
104 %attr(755,root,root) /lib/lsvpd/pci_vpd_cap_grab
105 %attr(755,root,root) /lib/lsvpd/scsi_vpd_render
106 %attr(755,root,root) /lib/lsvpd/tdump
107 %attr(755,root,root) /lib/lsvpd/tidy_lsvpd_dbs
108 %attr(755,root,root) /lib/lsvpd/tidy_subdirs
109 %attr(755,root,root) /lib/lsvpd/update-vpd.hotplug
110 %attr(755,root,root) /lib/lsvpd/vpd-name-crosslink.hotplug
111 %attr(754,root,root) /etc/rc.d/init.d/lsvpd
112 %attr(755,root,root) /etc/cron.daily/lsvpd
113 %{_mandir}/man8/*
This page took 0.087222 seconds and 4 git commands to generate.