]> git.pld-linux.org Git - packages/lsvpd.git/commitdiff
- new, probably needs some work
authorJakub Bogusz <qboosh@pld-linux.org>
Sat, 15 May 2004 00:49:39 +0000 (00:49 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- spec partially based on one provided in tarball

Changed files:
    lsvpd.spec -> 1.1

lsvpd.spec [new file with mode: 0644]

diff --git a/lsvpd.spec b/lsvpd.spec
new file mode 100644 (file)
index 0000000..5200923
--- /dev/null
@@ -0,0 +1,82 @@
+Summary:       VPD/hardware inventory utilities for Linux
+Summary(pl):   Narzêdzia do inwentaryzacji VPD/sprzêtu dla Linuksa
+Name:          lsvpd
+Version:       0.11.5
+Release:       1
+License:       GPL
+Group:         Applications/System
+Source0:       http://dl.sourceforge.net/linux-diag/%{name}-%{version}.tar.gz
+# Source0-md5: ba1bb42d627c815d89bf57e43a5b3de1
+PreReq:                rc-scripts
+Requires(post,preun):  /sbin/chkconfig
+Requires:      /bin/bash
+Requires:      /bin/sed
+Requires:      /bin/sh
+#Requires:     sg3_utils >= 1.01
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The lsvpd package contains both the lsvpd, lscfg and lsmcode commands.
+These commands, along with a boot-time scanning script called
+update-device-tree, constitute a simple hardware inventory system. The
+lsvpd command provides Vital Product Data (VPD) about hardware
+components to higher-level serviceability tools. The lscfg command
+provides a more human-readable format of the VPD, as well as some
+system-specific information. lsmcode lists microcode and firmware
+levels.
+
+%description -l pl
+Pakiet lsvpd zawiera polecenia lsvpd, lscfg i lsmcode. Tworz± one,
+wraz z uruchamianym przy starcie systemu skryptem update-device-tree,
+prosty system inwentaryzacji sprzêtu. Polecenie lsvpd dostarcza VPD
+(Vital Product Data) o podzespo³ach sprzêtowych dla narzêdzi wy¿szego
+poziomu. Polecenie lscfg dostarcza bardziej czyteln± dla cz³owieka
+postaæ VPD oraz trochê informacji specyficznych dla systemu. lsmcode
+wypisuje poziomy mikrokodu i firmware'u.
+
+%prep
+%setup -q
+
+%build
+%{__make} \
+       CC="%{__cc}" \
+       CFLAGS="%{rpmcflags} -Wall -I../lib"
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
+install debian/init.d $RPM_BUILD_ROOT/etc/rc.d/init.d/lsvpd
+# don't install this right now.  It can crash systems.
+rm -f $RPM_BUILD_ROOT/lib/lsvpd/pci_vpd_rom_grab
+
+install -d $RPM_BUILD_ROOT/etc/cron.daily
+install lsvpd.cron.daily $RPM_BUILD_ROOT/etc/cron.daily/lsvpd
+
+ln -sf /usr/bin/find $RPM_BUILD_ROOT/lib/lsvpd/find
+
+%post
+/sbin/chkconfig --add lsvpd
+
+%preun
+if [ "$1" = "0" ] ; then
+       /sbin/chkconfig --del lsvpd
+fi
+
+%files
+%defattr(644,root,root,755)
+%doc NEWS README TODO docs/*.html
+%attr(755,root,root) /sbin/lsvpd
+%attr(755,root,root) /sbin/lscfg
+%attr(755,root,root) /sbin/lsmcode
+%attr(755,root,root) /sbin/update-device-tree
+/lib/lsvpd
+%attr(754,root,root) /etc/rc.d/init.d/lsvpd
+%attr(755,root,root) /etc/cron.daily/lsvpd
+%{_mandir}/man8/*
This page took 0.160529 seconds and 4 git commands to generate.