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