]> git.pld-linux.org Git - packages/lsvpd.git/blame - lsvpd.spec
- updated to 1.6.11
[packages/lsvpd.git] / lsvpd.spec
CommitLineData
7a8d4c54
JB
1#
2# Conditional build:
3%bcond_with rtas # RTAS support (PowerPC)
4#
5%ifarch ppc ppc64
6%define with_rtas 1
7%endif
a6b33d7b 8Summary: VPD/hardware inventory utilities for Linux
40312222 9Summary(pl.UTF-8): Narzędzia do inwentaryzacji VPD/sprzętu dla Linuksa
a6b33d7b 10Name: lsvpd
b1cb8d42 11Version: 1.6.11
7a8d4c54
JB
12Release: 1
13License: GPL v2+
a6b33d7b 14Group: Applications/System
7a8d4c54 15Source0: http://downloads.sourceforge.net/linux-diag/%{name}-%{version}.tar.gz
b1cb8d42 16# Source0-md5: 6d63c45af3efbac6fbc5dd01648d0f7f
7a8d4c54
JB
17Source1: vpdupdater.init
18Source2: vpdupdater.sysconfig
3ff35f2f 19Patch0: %{name}-make.patch
b1cb8d42 20Patch1: %{name}-nortas.patch
27f7840e 21URL: http://linux-diag.sourceforge.net/Lsvpd.html
3ff35f2f
JB
22BuildRequires: autoconf
23BuildRequires: automake
7a8d4c54 24%{?with_rtas:BuildRequires: librtas-devel}
3ff35f2f 25BuildRequires: libstdc++-devel
7a8d4c54 26BuildRequires: libtool >= 2:2.0
11297fa9 27BuildRequires: rpmbuild(macros) >= 1.268
3ff35f2f
JB
28BuildRequires: sg3_utils-devel
29BuildRequires: zlib-devel
a6b33d7b 30Requires(post,preun): /sbin/chkconfig
3ff35f2f 31Requires(post): /sbin/ldconfig
7d6fa36b
JB
32Requires: /etc/pci.ids
33Requires: /etc/usb.ids
00f47270 34Requires: rc-scripts
a6b33d7b
JB
35BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36
37%description
38The lsvpd package contains both the lsvpd, lscfg and lsmcode commands.
39These commands, along with a boot-time scanning script called
40update-device-tree, constitute a simple hardware inventory system. The
41lsvpd command provides Vital Product Data (VPD) about hardware
42components to higher-level serviceability tools. The lscfg command
43provides a more human-readable format of the VPD, as well as some
44system-specific information. lsmcode lists microcode and firmware
45levels.
46
a018b7aa
JR
47%description -l pl.UTF-8
48Pakiet lsvpd zawiera polecenia lsvpd, lscfg i lsmcode. Tworzą one,
a6b33d7b 49wraz z uruchamianym przy starcie systemu skryptem update-device-tree,
a018b7aa
JR
50prosty system inwentaryzacji sprzętu. Polecenie lsvpd dostarcza VPD
51(Vital Product Data) o podzespołach sprzętowych dla narzędzi wyższego
52poziomu. Polecenie lscfg dostarcza bardziej czytelną dla człowieka
53postać VPD oraz trochę informacji specyficznych dla systemu. lsmcode
a6b33d7b
JB
54wypisuje poziomy mikrokodu i firmware'u.
55
56%prep
57%setup -q
30c21f0a 58%patch0 -p1
b1cb8d42 59%patch1 -p1
a6b33d7b
JB
60
61%build
3ff35f2f
JB
62%{__libtoolize}
63%{__aclocal}
64%{__autoconf}
65%{__autoheader}
66%{__automake}
7a8d4c54
JB
67%configure \
68 %{!?with_rtas:ac_cv_lib_rtas_rtas_get_vpd=no}
69%{__make}
a6b33d7b
JB
70
71%install
72rm -rf $RPM_BUILD_ROOT
73
74%{__make} install \
75 DESTDIR=$RPM_BUILD_ROOT
76
7a8d4c54
JB
77install -D -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/vpdupdater
78install -D -p %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/vpdupdater
a6b33d7b 79
8706ca9d
JB
80%clean
81rm -rf $RPM_BUILD_ROOT
82
a6b33d7b 83%post
3ff35f2f
JB
84/sbin/chkconfig --add vpdupdater
85
86%postun -p /sbin/ldconfig
a6b33d7b
JB
87
88%preun
89if [ "$1" = "0" ] ; then
3ff35f2f 90 /sbin/chkconfig --del vpdupdater
a6b33d7b
JB
91fi
92
3ff35f2f
JB
93%triggerpostun -- lsvpd < 1.0.0
94/sbin/chkconfig --del lsvpd
95
a6b33d7b
JB
96%files
97%defattr(644,root,root,755)
7a8d4c54
JB
98%doc AUTHORS NEWS README TODO docs/*.html
99%attr(755,root,root) %{_sbindir}/lscfg
100%attr(755,root,root) %{_sbindir}/lsmcode
101%attr(755,root,root) %{_sbindir}/lsvio
102%attr(755,root,root) %{_sbindir}/lsvpd
103%attr(755,root,root) %{_sbindir}/vpdupdate
104%dir %{_sysconfdir}/lsvpd
105%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lsvpd/cpu_mod_conv.conf
106%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lsvpd/scsi_templates.conf
3ff35f2f 107%attr(754,root,root) /etc/rc.d/init.d/vpdupdater
7a8d4c54 108%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/vpdupdater
3ff35f2f
JB
109%{_mandir}/man8/lscfg.8*
110%{_mandir}/man8/lsmcode.8*
111%{_mandir}/man8/lsvio.8*
112%{_mandir}/man8/lsvpd.8*
113%{_mandir}/man8/vpdupdate.8*
This page took 0.094075 seconds and 4 git commands to generate.