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