Blame SPECS/lsvpd.spec

95100c
%define name lsvpd
95100c
%define version 1.7.9
95100c
95100c
Name:		%{name}
95100c
Version:	%{version}
95100c
Release:	1%{?dist}
95100c
Summary:	VPD/hardware inventory utilities for Linux
95100c
Group:		Applications/System
95100c
License:	GPLv2+
95100c
URL:		http://linux-diag.sf.net/Lsvpd.html
95100c
95100c
Source0:	https://sourceforge.net/projects/linux-diag/files/lsvpd-new/v%{version}/%{name}-%{version}.tar.gz
95100c
95100c
BuildRequires:	sg3_utils-devel zlib-devel automake libtool
95100c
BuildRequires:	libvpd-devel
95100c
BuildRequires:	librtas-devel
95100c
Requires(post): /usr/sbin/vpdupdate
95100c
95100c
ExclusiveArch: ppc64 ppc64le
95100c
95100c
%description
95100c
The lsvpd package contains all of the lsvpd, lscfg and lsmcode
95100c
commands. These commands, along with a scanning program
95100c
called vpdupdate, constitute a hardware inventory
95100c
system. The lsvpd command provides Vital Product Data (VPD) about
95100c
hardware components to higher-level serviceability tools. The lscfg
95100c
command provides a more human-readable format of the VPD, as well as
95100c
some system-specific information.  lsmcode lists microcode and
95100c
firmware levels.  lsvio lists virtual devices, usually only found
95100c
on POWER PC based systems.
95100c
95100c
%prep
95100c
%autosetup -p1
95100c
95100c
%build
95100c
./bootstrap.sh
95100c
%configure
95100c
%{__make} %{?_smp_mflags}
95100c
95100c
%install
95100c
%{__make} install DESTDIR=$RPM_BUILD_ROOT
95100c
95100c
%post
95100c
# do not fail in KVM guest
95100c
/usr/sbin/vpdupdate || :
95100c
95100c
%files
95100c
%doc README NEWS
95100c
%license COPYING
95100c
%{_sbindir}/lsvpd
95100c
%{_sbindir}/lscfg
95100c
%{_sbindir}/lsmcode
95100c
%{_sbindir}/lsvio
95100c
%{_sbindir}/vpdupdate
95100c
%{_mandir}/man8/vpdupdate.8.gz
95100c
%{_mandir}/man8/lsvpd.8.gz
95100c
%{_mandir}/man8/lscfg.8.gz
95100c
%{_mandir}/man8/lsvio.8.gz
95100c
%{_mandir}/man8/lsmcode.8.gz
95100c
%config %{_sysconfdir}/lsvpd/scsi_templates.conf
95100c
%config %{_sysconfdir}/lsvpd/cpu_mod_conv.conf
95100c
%dir %{_sysconfdir}/lsvpd
95100c
95100c
%changelog
95100c
* Thu Jun 21 2018 Sinny Kumari <skumari@redhat.com> - 1.7.9-1
95100c
- Resolves: #1456541 - lsvpd package update to v1.7.9
95100c
- Remove patches, already available in 1.7.9
95100c
- BuildRequires on libvpd-devel package
95100c
95100c
* Fri May 18 2018 Sinny Kumari <skumari@redhat.com> - 1.7.8-6
95100c
- Resolves: #1549431 - lsmcode -A is not showing any output on Power 9
95100c
95100c
* Tue Dec 12 2017 Sinny Kumari <skumari@redhat.com> - 1.7.8-5
95100c
- Resolves: #1523230 - lsmcode fails to retrieve firmware information
95100c
95100c
* Tue Nov 21 2017 Than Ngo <than@redhat.com> - 1.7.8-4
95100c
- Resolves: #1498066, usysident shows different status for same location code
95100c
95100c
* Fri Oct 06 2017 Sinny Kumari <skumari@redhat.com> - 1.7.8-3
95100c
- Increase spec file Release value for new build
95100c
- Related: #1496685 - vpdupdate aborts due to EIO on read of sysfs vpd file
95100c
95100c
* Tue Sep 26 2017 Josh Boyer <jwboyer@redhat.com> - 1.7.8-2
95100c
- Resolves: #1494679 - vpdupdate creates a core dump
95100c
95100c
* Thu Mar 23 2017 Sinny Kumari <skumari@redhat.com> - 1.7.8-1
95100c
- Resolves: #1380652 - package update to 1.7.8
95100c
95100c
* Mon Mar 20 2017 Sinny Kumari <skumari@redhat.com> - 1.7.7-3
95100c
- Related: #1380656 - Rebuild due to soname change in librtas
95100c
95100c
* Mon Jun 13 2016 Sinny Kumari <skumari@redhat.com> - 1.7.7-2
95100c
- Resolves: #1344202 - STC860:Tuleta:Ohiofp1:lsvpd error reported on RHEL7.2 LE
95100c
95100c
* Thu Apr 14 2016 Sinny Kumari <skumari@redhat.com> - 1.7.7-1
95100c
- Patches removed, fix available in 1.7.7 release
95100c
- Resolves: #1182030 - lsvpd package update
95100c
- Resolves: #1275415 - Houston LR in SRIOV mode, failed to configured eth* on RHEL-LE
95100c
95100c
* Mon Oct 12 2015 Jaromir Capik <jcapik@redhat.com> - 1.7.5-4
95100c
- Fixing syntax error when running vpdupdate (#1184517)
95100c
- Cleaning the spec file
95100c
- Fixing bogus dates in the changelog
95100c
- Resolves: #1184517
95100c
95100c
* Mon Dec 15 2014 Jakub Čajka <jcajka@redhat.com> - 1.7.5-3
95100c
- Resolves: #1174174 - lsvpd to report "Not supported on PowerKVM guest"
95100c
95100c
* Mon Nov 10 2014 Jakub Čajka <jcajka@redhat.com> - 1.7.5-2
95100c
- Related: #1161551 - librtas package update - rebuild
95100c
95100c
* Thu Sep 04 2014 Jakub Čajka <jcajka@redhat.com> - 1.7.5-1
95100c
- Related: #1088597 - [7.1 FEAT] lsvpd package update - ppc64
95100c
- Rebase to 1.7.5
95100c
95100c
* Thu Aug 21 2014 Jakub Čajka <jcajka@redhat.com> - 1.7.4-1
95100c
- Resolves: #1088597 - [7.1 FEAT] lsvpd package update - ppc64
95100c
- Resolves: #1124004 - lsvpd needs ppc64le added to ExclusiveArch
95100c
95100c
* Mon Apr 28 2014 Jakub Čajka <jcajka@redhat.com> - 1.7.1-4
95100c
- Resolves: #1088414 - RHEL7.0 - lsvpd: License: Grant permission to link with librtas library
95100c
95100c
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.7.1-3
95100c
- Mass rebuild 2013-12-27
95100c
95100c
* Thu Nov 28 2013 Filip Kocina <fkocina@redhat.com> 1.7.1-2
95100c
- Resolves: #1030237 - fix FW expiry display terminology
95100c
95100c
* Tue May 21 2013 Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
95100c
- Update to latest upstream 1.7.1
95100c
- Exclude invscout command from lsvpd package
95100c
95100c
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.12-3
95100c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
95100c
95100c
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.12-2
95100c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
95100c
95100c
* Fri May 04 2012 Karsten Hopp <karsten@redhat.com> 1.6.12-1
95100c
- update to 1.6.12
95100c
95100c
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.11-5
95100c
- Rebuilt for c++ ABI breakage
95100c
95100c
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.11-4
95100c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
95100c
95100c
* Wed Nov 23 2011 Jiri Skala <jskala@redhat.com> - 1.6.11-3
95100c
- added ExclusiveArch for ppc[64]
95100c
95100c
* Wed Nov 09 2011 Jiri Skala <jskala@redhat.com> - 1.6.11-2
95100c
- fixes #752244 - similar output for different options in lsmcode
95100c
95100c
* Wed Aug 10 2011 Jiri Skala <jskala@redhat.com> - 1.6.11-1
95100c
- rebase to latest upstream 1.6.11
95100c
95100c
* Tue Feb 15 2011 Jiri Skala <jskala@redhat.com> - 1.6.10-1
95100c
- rebase to latest upstream 1.6.10
95100c
95100c
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.8-3
95100c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
95100c
95100c
* Tue Apr 13 2010 Dan Horák <dan@danny.cz> - 1.6.8-2
95100c
- rebuilt for sg3_utils 1.29
95100c
95100c
* Tue Apr 06 2010 Roman Rakus <rrakus@redhat.com> - 1.6.8-1
95100c
- Version 1.6.8 (need ugly bootstrap)
95100c
95100c
* Wed Dec 02 2009 Eric Munson <ebmunson@us.ibm.com> - 1.6.7-1
95100c
- Update to latest lsvpd release
95100c
- Add librtas support to build on POWERPC
95100c
- Add patch to lookup *.ids file location at runtime
95100c
95100c
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.5-3
95100c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
95100c
95100c
* Tue Apr 28 2009 - Dan Horak <dan[at]danny.cz> - 1.6.5-2
95100c
- rebuild for sg3_utils 1.27
95100c
95100c
* Mon Mar 16 2009 Eric Munson <ebmunson@us.ibm.com> - 1.6.5-1
95100c
- Update source to use new glibc C header includes
95100c
95100c
* Mon Mar 16 2009 Eric Munson <ebmunson@us.ibm.com> - 1.6.4-6
95100c
- Bump for rebuild against latest build of libvpd
95100c
95100c
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.4-5
95100c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
95100c
95100c
* Thu Aug 14 2008 - Eric Munson <ebmunson@us.ibm.com> - 1.6.4-4
95100c
- Bump for rebuild with new libvpd.
95100c
95100c
* Mon Jun 30 2008 - Dan Horak <dan[at]danny.cz> - 1.6.4-3
95100c
- add patch for sg3_utils 1.26 and rebuild
95100c
95100c
* Fri Jun 06 2008 - Caolán McNamara <caolanm@redhat.com> - 1.6.4-2
95100c
- rebuild for dependancies
95100c
95100c
* Fri Apr 25 2008 - Brad Peters <bpeters@us.ibm.com> - 1.6.4-1
95100c
- Adding ability to limit SCSI direct inquiry size, fixing Windows SCSI
95100c
  device inquiry problem
95100c
95100c
* Fri Mar 21 2008 - Eric Munson <ebmunson@us.ibm.com> - 1.6.3-1
95100c
- Adding proper conf file handling
95100c
- Removing executable bit on config and documentation files
95100c
- Removing second listing for config files
95100c
95100c
* Fri Mar 14 2008 - Eric Munson <ebmunson@us.ibm.com> - 1.6.2-3
95100c
- Becuase librtas is not yet in Fedora, the extra ppc dependency should
95100c
  be ignored
95100c
95100c
* Thu Mar 13 2008 - Eric Munson <ebmunson@us.ibm.com> - 1.6.2-2
95100c
- Adding arch check for ppc[64] dependency.
95100c
95100c
* Tue Mar 4 2008 - Eric Munson <ebmunson@us.ibm.com> - 1.6.2-1
95100c
- Updating for lsvpd-1.6.2
95100c
95100c
* Mon Mar 3 2008 - Eric Munson <ebmunson@us.ibm.com> - 1.6.1-1
95100c
- Updating for lsvpd-1.6.1
95100c
95100c
* Sat Feb 2 2008 - Eric Munson <ebmunson@us.ibm.com> - 1.6.0-1
95100c
- Updating lsvpd to use the new libvpd-2.0.0
95100c
- Removing %%{_mandir}/man8/* from %%files and replacing it with each
95100c
  individual file installed in the man8 directory
95100c
95100c
* Fri Dec 7 2007 - Brad Peters <bpeters@us.ibm.com> - 1.5.0
95100c
- Major changes in device detection code, basing detection on /sys/devices
95100c
  rather than /sys/bus as before
95100c
- Enhanced aggressiveness of AIX naming, ensuring that every detected device
95100c
  has at least one AIX name, and thus appears in lscfg output
95100c
- Changed method for discovering /sys/class entries
95100c
- Added some new VPD fields, one example of which is the device driver
95100c
  associated with the device
95100c
- Some minor changes to output formating
95100c
- Some changes to vpd collection
95100c
- Removing unnecessary Requires field
95100c
95100c
* Fri Nov 16 2007 - Eric Munson <ebmunson@us.ibm.com> - 1.4.0-1
95100c
- Removing udev rules from install as they are causing problems.  Hotplug 
95100c
  will be disabled until we find a smarter way of handling it.
95100c
- Updating License
95100c
- Adjusting the way vpdupdater is inserted into run control
95100c
- Removing #! from the beginning of the file.
95100c
- Fixes requested by Fedora Community
95100c
95100c
* Tue Oct 30 2007 - Eric Munson <ebmunson@us.ibm.com> - 1.3.5-1
95100c
- Remove calls to ldconfig