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