]> git.pld-linux.org Git - packages/lsvpd.git/blame - lsvpd.spec
- tabs in preamble
[packages/lsvpd.git] / lsvpd.spec
CommitLineData
a6b33d7b 1Summary: VPD/hardware inventory utilities for Linux
40312222 2Summary(pl.UTF-8): Narzędzia do inwentaryzacji VPD/sprzętu dla Linuksa
a6b33d7b 3Name: lsvpd
97eed209 4Version: 0.16.0
bc8f7eb8 5Release: 1
a6b33d7b
JB
6License: GPL
7Group: Applications/System
8Source0: http://dl.sourceforge.net/linux-diag/%{name}-%{version}.tar.gz
97eed209 9# Source0-md5: d3abbecb7056816fe3f6ce6729b433cc
30c21f0a 10Patch0: %{name}-gcc4.patch
27f7840e 11URL: http://linux-diag.sourceforge.net/Lsvpd.html
084a6e96 12BuildRequires: perl-base
11297fa9 13BuildRequires: rpmbuild(macros) >= 1.268
750c3256 14BuildRequires: sed >= 4.0
8706ca9d 15BuildRequires: sg3_utils-devel >= 1.01
a6b33d7b
JB
16Requires(post,preun): /sbin/chkconfig
17Requires: /bin/bash
18Requires: /bin/sed
19Requires: /bin/sh
00f47270 20Requires: rc-scripts
8706ca9d 21Requires: sg3_utils >= 1.01
a6b33d7b
JB
22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24%description
25The lsvpd package contains both the lsvpd, lscfg and lsmcode commands.
26These commands, along with a boot-time scanning script called
27update-device-tree, constitute a simple hardware inventory system. The
28lsvpd command provides Vital Product Data (VPD) about hardware
29components to higher-level serviceability tools. The lscfg command
30provides a more human-readable format of the VPD, as well as some
31system-specific information. lsmcode lists microcode and firmware
32levels.
33
a018b7aa
JR
34%description -l pl.UTF-8
35Pakiet lsvpd zawiera polecenia lsvpd, lscfg i lsmcode. Tworzą one,
a6b33d7b 36wraz z uruchamianym przy starcie systemu skryptem update-device-tree,
a018b7aa
JR
37prosty system inwentaryzacji sprzętu. Polecenie lsvpd dostarcza VPD
38(Vital Product Data) o podzespołach sprzętowych dla narzędzi wyższego
39poziomu. Polecenie lscfg dostarcza bardziej czytelną dla człowieka
40postać VPD oraz trochę informacji specyficznych dla systemu. lsmcode
a6b33d7b
JB
41wypisuje poziomy mikrokodu i firmware'u.
42
43%prep
44%setup -q
30c21f0a 45%patch0 -p1
8706ca9d 46sed -i -e "s,#!/bin/sh,#!/bin/bash," scripts/lsvpd.in
a6b33d7b
JB
47
48%build
49%{__make} \
50 CC="%{__cc}" \
30c21f0a 51 CFLAGS="%{rpmcflags} -Wall -Werror -I../lib" \
97eed209 52 LDLIBS="-lsgutils"
a6b33d7b
JB
53
54%install
55rm -rf $RPM_BUILD_ROOT
56
57%{__make} install \
58 DESTDIR=$RPM_BUILD_ROOT
59
60install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
61install debian/init.d $RPM_BUILD_ROOT/etc/rc.d/init.d/lsvpd
62# don't install this right now. It can crash systems.
97eed209 63#rm -f $RPM_BUILD_ROOT/lib/lsvpd/pci_vpd_rom_grab
a6b33d7b
JB
64
65install -d $RPM_BUILD_ROOT/etc/cron.daily
97eed209 66install debian/cron.daily $RPM_BUILD_ROOT/etc/cron.daily/lsvpd
a6b33d7b
JB
67
68ln -sf /usr/bin/find $RPM_BUILD_ROOT/lib/lsvpd/find
69
8706ca9d
JB
70%clean
71rm -rf $RPM_BUILD_ROOT
72
a6b33d7b
JB
73%post
74/sbin/chkconfig --add lsvpd
11297fa9 75%service lsvpd restart
a6b33d7b
JB
76
77%preun
78if [ "$1" = "0" ] ; then
11297fa9 79 %service lsvpd stop
a6b33d7b
JB
80 /sbin/chkconfig --del lsvpd
81fi
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
8706ca9d 89%attr(755,root,root) /sbin/lsvio
ead54238
JB
90%attr(755,root,root) /sbin/update-lsvpd-db
91%dir /lib/lsvpd
b202f3c1 92/lib/lsvpd/common.d
9dfbb630 93/lib/lsvpd/common-post.d
b202f3c1 94/lib/lsvpd/debug.bash
8706ca9d 95/lib/lsvpd/ide_mf.map
b202f3c1 96/lib/lsvpd/lscfg.d
97/lib/lsvpd/lsmcode.d
8706ca9d 98/lib/lsvpd/lsvio.d
b202f3c1 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
b202f3c1 104/lib/lsvpd/scsivpd.conf
97eed209 105%attr(755,root,root) /lib/lsvpd/adapter_pci_legacy
b202f3c1 106%attr(755,root,root) /lib/lsvpd/ibm_vpd_render
97eed209 107%attr(755,root,root) /lib/lsvpd/node_handler
ead54238 108%attr(755,root,root) /lib/lsvpd/tdump
a6b33d7b
JB
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.220011 seconds and 4 git commands to generate.