7c9a891
%define name lsvpd
4e7d504
%define version 1.6.4
7c9a891
7c9a891
Name:		%{name}
7c9a891
Version:	%{version}
7c9a891
Release:	1%{?dist}
7c9a891
Summary:	VPD/hardware inventory utilities for Linux
7c9a891
7c9a891
Group:		Applications/System
7c9a891
License:	GPLv2+
7c9a891
URL:		http://linux-diag.sf.net/Lsvpd.html
7c9a891
Source:		http://downloads.sourceforge.net/linux-diag/%{name}-%{version}.tar.gz
7c9a891
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
7c9a891
BuildRequires:	sg3_utils-devel libvpd-devel zlib-devel
7c9a891
Requires(post): /usr/sbin/vpdupdate
7c9a891
7c9a891
# By default, build without librtas because it does not yet exist in Fedora
7c9a891
%{!?_with_librtas: %{!?_without_librtas: %define _without_librtas --without-librtas }}
7c9a891
7c9a891
%ifarch ppc
7c9a891
%{?_with_librtas:BuildRequires: librtas-devel }
7c9a891
%endif
7c9a891
%ifarch ppc64
7c9a891
%{?_with_librtas:BuildRequires: librtas-devel }
7c9a891
%endif
7c9a891
7c9a891
%description
7c9a891
The lsvpd package contains all of the lsvpd, lscfg and lsmcode
7c9a891
commands. These commands, along with a scanning program
7c9a891
called vpdupdate, constitute a hardware inventory
7c9a891
system. The lsvpd command provides Vital Product Data (VPD) about
7c9a891
hardware components to higher-level serviceability tools. The lscfg
7c9a891
command provides a more human-readable format of the VPD, as well as
7c9a891
some system-specific information.  lsmcode lists microcode and
7c9a891
firmware levels.  lsvio lists virtual devices, usually only found
7c9a891
on POWER PC based systems.
7c9a891
7c9a891
%prep
7c9a891
%setup -q
7c9a891
7c9a891
%build
7c9a891
%configure
7c9a891
%{__make} %{?_smp_mflags}
7c9a891
7c9a891
%clean 
7c9a891
%{__rm} -rf $RPM_BUILD_ROOT
7c9a891
7c9a891
%install
7c9a891
%{__rm} -rf $RPM_BUILD_ROOT
7c9a891
%{__make} install DESTDIR=$RPM_BUILD_ROOT
7c9a891
7c9a891
%post -p /usr/sbin/vpdupdate
7c9a891
7c9a891
%files 
7c9a891
%defattr(-,root,root,-)
7c9a891
%doc COPYING INSTALL NEWS README TODO
7c9a891
%{_sbindir}/lsvpd
7c9a891
%{_sbindir}/lscfg
7c9a891
%{_sbindir}/lsmcode
7c9a891
%{_sbindir}/lsvio
7c9a891
%{_sbindir}/vpdupdate
7c9a891
%{_mandir}/man8/vpdupdate.8.gz
7c9a891
%{_mandir}/man8/lsvpd.8.gz
7c9a891
%{_mandir}/man8/lscfg.8.gz
7c9a891
%{_mandir}/man8/lsvio.8.gz
7c9a891
%{_mandir}/man8/lsmcode.8.gz
7c9a891
%config %{_sysconfdir}/lsvpd/scsi_templates.conf
7c9a891
%config %{_sysconfdir}/lsvpd/cpu_mod_conv.conf
7c9a891
%dir %{_sysconfdir}/lsvpd
7c9a891
7c9a891
%changelog
4e7d504
* Fri Apr 25 2008 - Brad Peters <bpeters@us.ibm.com> - 1.6.4-1
4e7d504
- Adding ability to limit SCSI direct inquiry size, fixing Windows SCSI
4e7d504
  device inquiry problem
4e7d504
7c9a891
* Fri Mar 21 2008 - Eric Munson <ebmunson@us.ibm.com> - 1.6.3-1
7c9a891
- Adding proper conf file handling
7c9a891
- Removing executable bit on config and documentation files
7c9a891
- Removing second listing for config files
7c9a891
7c9a891
* Fri Mar 14 2008 - Eric Munson <ebmunson@us.ibm.com> - 1.6.2-3
7c9a891
- Becuase librtas is not yet in Fedora, the extra ppc dependency should
7c9a891
  be ignored
7c9a891
7c9a891
* Thu Mar 13 2008 - Eric Munson <ebmunson@us.ibm.com> - 1.6.2-2
7c9a891
- Adding arch check for ppc[64] dependency.
7c9a891
7c9a891
* Tue Mar 4 2008 - Eric Munson <ebmunson@us.ibm.com> - 1.6.2-1
7c9a891
- Updating for lsvpd-1.6.2
7c9a891
7c9a891
* Tue Mar 3 2008 - Eric Munson <ebmunson@us.ibm.com> - 1.6.1-1
7c9a891
- Updating for lsvpd-1.6.1
7c9a891
7c9a891
* Sat Feb 2 2008 - Eric Munson <ebmunson@us.ibm.com> - 1.6.0-1
7c9a891
- Updating lsvpd to use the new libvpd-2.0.0
7c9a891
- Removing %%{_mandir}/man8/* from %%files and replacing it with each
7c9a891
  individual file installed in the man8 directory
7c9a891
7c9a891
* Fri Dec 7 2007 - Brad Peters <bpeters@us.ibm.com> - 1.5.0
7c9a891
- Major changes in device detection code, basing detection on /sys/devices
7c9a891
  rather than /sys/bus as before
7c9a891
- Enhanced aggressiveness of AIX naming, ensuring that every detected device
7c9a891
  has at least one AIX name, and thus appears in lscfg output
7c9a891
- Changed method for discovering /sys/class entries
7c9a891
- Added some new VPD fields, one example of which is the device driver
7c9a891
  associated with the device
7c9a891
- Some minor changes to output formating
7c9a891
- Some changes to vpd collection
7c9a891
- Removing unnecessary Requires field
7c9a891
7c9a891
* Fri Nov 16 2007 - Eric Munson <ebmunson@us.ibm.com> - 1.4.0-1
7c9a891
- Removing udev rules from install as they are causing problems.  Hotplug 
7c9a891
  will be disabled until we find a smarter way of handling it.
7c9a891
- Updating License
7c9a891
- Adjusting the way vpdupdater is inserted into run control
7c9a891
- Removing #! from the beginning of the file.
7c9a891
- Fixes requested by Fedora Community
7c9a891
7c9a891
* Wed Oct 30 2007 - Eric Munson <ebmunson@us.ibm.com> - 1.3.5-1
4e7d504
- Remove calls to ldconfig