]> git.pld-linux.org Git - packages/lsvpd.git/blob - lsvpd.spec
541e82de0f20d2a73c46b810cdbae31005022f84
[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.16.0
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:  d3abbecb7056816fe3f6ce6729b433cc
10 URL:            http://linux-diag.sourceforge.net/Lsvpd.html
11 BuildRequires:  perl-base
12 BuildRequires:  rpmbuild(macros) >= 1.268
13 BuildRequires:  sed >= 4.0
14 BuildRequires:  sg3_utils-devel >= 1.01
15 Requires(post,preun):   /sbin/chkconfig
16 Requires:       /bin/bash
17 Requires:       /bin/sed
18 Requires:       /bin/sh
19 Requires:       rc-scripts
20 Requires:       sg3_utils >= 1.01
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
24 The lsvpd package contains both the lsvpd, lscfg and lsmcode commands.
25 These commands, along with a boot-time scanning script called
26 update-device-tree, constitute a simple hardware inventory system. The
27 lsvpd command provides Vital Product Data (VPD) about hardware
28 components to higher-level serviceability tools. The lscfg command
29 provides a more human-readable format of the VPD, as well as some
30 system-specific information. lsmcode lists microcode and firmware
31 levels.
32
33 %description -l pl
34 Pakiet lsvpd zawiera polecenia lsvpd, lscfg i lsmcode. Tworz± one,
35 wraz z uruchamianym przy starcie systemu skryptem update-device-tree,
36 prosty system inwentaryzacji sprzêtu. Polecenie lsvpd dostarcza VPD
37 (Vital Product Data) o podzespo³ach sprzêtowych dla narzêdzi wy¿szego
38 poziomu. Polecenie lscfg dostarcza bardziej czyteln± dla cz³owieka
39 postaæ VPD oraz trochê informacji specyficznych dla systemu. lsmcode
40 wypisuje poziomy mikrokodu i firmware'u.
41
42 %prep
43 %setup -q
44 sed -i -e "s,#!/bin/sh,#!/bin/bash," scripts/lsvpd.in
45
46 %build
47 # disable unit-at-a-time - see src/init.h
48 %{__make} \
49         CC="%{__cc}" \
50         CFLAGS="%{rpmcflags} -fno-unit-at-a-time -Wall -Werror -I../lib" \
51         LDLIBS="-lsgutils"
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 debian/cron.daily $RPM_BUILD_ROOT/etc/cron.daily/lsvpd
66
67 ln -sf /usr/bin/find $RPM_BUILD_ROOT/lib/lsvpd/find
68
69 %clean
70 rm -rf $RPM_BUILD_ROOT
71
72 %post
73 /sbin/chkconfig --add lsvpd
74 %service lsvpd restart
75
76 %preun
77 if [ "$1" = "0" ] ; then
78         %service lsvpd stop
79         /sbin/chkconfig --del lsvpd
80 fi
81
82 %files
83 %defattr(644,root,root,755)
84 %doc NEWS README TODO docs/*.html
85 %attr(755,root,root) /sbin/lsvpd
86 %attr(755,root,root) /sbin/lscfg
87 %attr(755,root,root) /sbin/lsmcode
88 %attr(755,root,root) /sbin/lsvio
89 %attr(755,root,root) /sbin/update-lsvpd-db
90 %dir /lib/lsvpd
91 /lib/lsvpd/common.d
92 /lib/lsvpd/common-post.d
93 /lib/lsvpd/debug.bash
94 /lib/lsvpd/ide_mf.map
95 /lib/lsvpd/lscfg.d
96 /lib/lsvpd/lsmcode.d
97 /lib/lsvpd/lsvio.d
98 /lib/lsvpd/lsvpd-functions.bash
99 /lib/lsvpd/lsvpd.d
100 /lib/lsvpd/pci.ids
101 /lib/lsvpd/query.d
102 /lib/lsvpd/scan.d
103 /lib/lsvpd/scsivpd.conf
104 %attr(755,root,root) /lib/lsvpd/adapter_pci_legacy
105 %attr(755,root,root) /lib/lsvpd/ibm_vpd_render
106 %attr(755,root,root) /lib/lsvpd/node_handler
107 %attr(755,root,root) /lib/lsvpd/tdump
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.078642 seconds and 3 git commands to generate.