7c9a891
%define name lsvpd
8f6093c
%define version 1.7.10
7c9a891
7c9a891
Name:		%{name}
7c9a891
Version:	%{version}
8f6093c
Release:	1%{?dist}
7c9a891
Summary:	VPD/hardware inventory utilities for Linux
7c9a891
7c9a891
License:	GPLv2+
8f6093c
URL:		https://github.com/power-ras/lsvpd
8f6093c
Source0:	https://github.com/power-ras/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
9c43ee0
Sinny Kumari 14221fa
BuildRequires:	gcc-c++
Vasant Hegde bd351d5
BuildRequires:	libvpd-devel >= 2.2.1
Jiri Skala 18277d0
BuildRequires:	sg3_utils-devel zlib-devel automake libtool
Vasant Hegde bd351d5
BuildRequires:	librtas-devel
Vasant Hegde 800dc88
Vasant Hegde 800dc88
Requires(post): %{_sbindir}/vpdupdate
7c9a891
Sinny Kumari 564b09e
ExclusiveArch:	%{power64}
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
Sinny Kumari 564b09e
%autosetup
7c9a891
7c9a891
%build
Roman Rakus 0c02b03
./bootstrap.sh
7c9a891
%configure
9c43ee0
make %{?_smp_mflags}
7c9a891
7c9a891
7c9a891
%install
9c43ee0
make install DESTDIR=$RPM_BUILD_ROOT
7c9a891
Vasant Hegde 800dc88
%post
Vasant Hegde 800dc88
%{_sbindir}/vpdupdate &
Vasant Hegde 800dc88
# Ignore the vpdupdate failures and enforce a success
Vasant Hegde 800dc88
exit 0
7c9a891
Vasant Hegde 800dc88
%files
9c43ee0
%{!?_licensedir:%global license %%doc}
9c43ee0
%license COPYING
9c43ee0
%doc README
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
15bbc90
%config %{_sysconfdir}/lsvpd/nvme_templates.conf
7c9a891
%dir %{_sysconfdir}/lsvpd
7c9a891
7c9a891
%changelog
8f6093c
* Mon Dec 02 2019 Than Ngo <than@redhat.com> - -1
8f6093c
- rebase to 1.7.10
8f6093c
- update Url
8f6093c
cd1afca
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.9-5
cd1afca
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
cd1afca
c7be255
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.9-4
c7be255
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
c7be255
Sinny Kumari 14221fa
* Fri Jul 20 2018 Sinny Kumari <sinnykumari@fedoraproject.org> - 1.7.9-3
Sinny Kumari 14221fa
- Add gcc-c++ as BuildRequires
Sinny Kumari 14221fa
e3890b2
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.9-2
e3890b2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
e3890b2
Sinny Kumari 564b09e
* Fri Jul 06 2018 Sinny Kumari<sinnykumari@fedoraproject.org> - 1.7.9-1
Sinny Kumari 564b09e
- Rebase to 1.7.9
Sinny Kumari 564b09e
dd25b71
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.8-5
dd25b71
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
dd25b71
Sinny Kumari 5c7d267
* Wed Dec 20 2017 Sinny Kumari <sinnykumari@fedoraproject.org> - 1.7.8-4
Sinny Kumari 5c7d267
- Add patches from upstream master branch to include fixes
Sinny Kumari 5c7d267
3b861a0
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.8-3
3b861a0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
3b861a0
9fba817
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.8-2
9fba817
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
9fba817
Sinny Kumari a386ac9
* Wed Apr 05 2017 Sinny Kumari <sinnykumari@fedoraproject.org> - 1.7.8-1
Sinny Kumari a386ac9
- Rebase to 1.7.8
Sinny Kumari a386ac9
5e8f804
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.7-2
5e8f804
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
5e8f804
Sinny Kumari 279d879
* Thu Apr 14 2016 Sinny Kumari <sinnykumari@fedoraproject.org> - 1.7.7-1
Sinny Kumari 279d879
- Update to 1.7.7
Sinny Kumari 279d879
9c43ee0
* Sat Apr  9 2016 Peter Robinson <pbrobinson@fedoraproject.org> 1.7.6-3
9c43ee0
- Spec cleanup, use %%license
9c43ee0
- Rebuild for litrtas soname bump
9c43ee0
f6b3516
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.6-2
f6b3516
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
f6b3516
Vasant Hegde 1d800b7
* Mon Nov 16 2015 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 1.7.6
Vasant Hegde 1d800b7
- Update to latest upstream 1.7.6
Vasant Hegde 1d800b7
ac39dea
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.5-3
ac39dea
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
ac39dea
cfa9e97
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 1.7.5-2
cfa9e97
- Rebuilt for GCC 5 C++11 ABI change
cfa9e97
Vasant Hegde 5fce9a1
* Mon Sep 22 2014 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 1.7.5
Vasant Hegde 5fce9a1
- Update to latest upstream 1.7.5
Vasant Hegde 5fce9a1
Brent Baude 5b1483f
* Fri Aug 01 2014 Brent Baude <bbaude@redhat.com> - 1.7.4-4
Brent Baude 5b1483f
- NVR bump for Fedora 21 build on merged koji
Brent Baude 5b1483f
44f371e
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.4-3
44f371e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
44f371e
Vasant Hegde 80ddd37
* Mon Apr 14 2014 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 1.7.4-2
Vasant Hegde 80ddd37
- Grant permission to link with librtas library
Vasant Hegde 80ddd37
Vasant Hegde f9ca644
* Mon Mar 17 2014 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 1.7.4
Vasant Hegde f9ca644
- Update to latest upstream 1.7.4
Vasant Hegde f9ca644
Vasant Hegde 800dc88
* Mon Mar 10 2014 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 1.7.3
Vasant Hegde 800dc88
- Update to latest upstream 1.7.3
Vasant Hegde 800dc88
Vasant Hegde fdbe406
* Thu Oct 10 2013 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 1.7.2-3
Vasant Hegde fdbe406
- Add ppc64le architecture
Vasant Hegde fdbe406
Vasant Hegde f4f37fe
* Sun Sep 15 2013 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 1.7.2-2
Vasant Hegde f4f37fe
- Fix build issue
Vasant Hegde f4f37fe
Vasant Hegde 6f673b5
* Thu Aug 22 2013 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 1.7.2
Vasant Hegde 6f673b5
- Update to latest upstream 1.7.2
Vasant Hegde 6f673b5
bd13cec
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.1-2
bd13cec
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
bd13cec
Vasant Hegde 6f673b5
* Tue May 21 2013 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 1.7.1
Vasant Hegde bd351d5
- Update to latest upstream 1.7.1
Vasant Hegde 65e18a5
- Exclude invscout command from lsvpd package
Vasant Hegde bd351d5
ea6af0d
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.12-3
ea6af0d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
ea6af0d
71648aa
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.12-2
71648aa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
71648aa
0ecdbd6
* Fri May 04 2012 Karsten Hopp <karsten@redhat.com> 1.6.12-1
5758edc
- update to 1.6.12
5758edc
c0b8372
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.11-5
c0b8372
- Rebuilt for c++ ABI breakage
c0b8372
327e9be
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.11-4
327e9be
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
327e9be
Jiri Skala 1ce101d
* Wed Nov 23 2011 Jiri Skala <jskala@redhat.com> - 1.6.11-3
Jiri Skala 1ce101d
- added ExclusiveArch for ppc[64]
Jiri Skala 1ce101d
Jiri Skala efe5f18
* Wed Nov 09 2011 Jiri Skala <jskala@redhat.com> - 1.6.11-2
Jiri Skala efe5f18
- fixes #752244 - similar output for different options in lsmcode
Jiri Skala efe5f18
Jiri Skala 27738ba
* Wed Aug 10 2011 Jiri Skala <jskala@redhat.com> - 1.6.11-1
Jiri Skala 27738ba
- rebase to latest upstream 1.6.11
Jiri Skala 27738ba
Jiri Skala 18277d0
* Tue Feb 15 2011 Jiri Skala <jskala@redhat.com> - 1.6.10-1
Jiri Skala 18277d0
- rebase to latest upstream 1.6.10
Jiri Skala 18277d0
c0352ed
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.8-3
c0352ed
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
c0352ed
587208f
* Tue Apr 13 2010 Dan Horák <dan@danny.cz> - 1.6.8-2
587208f
- rebuilt for sg3_utils 1.29
587208f
Roman Rakus 0c02b03
* Tue Apr 06 2010 Roman Rakus <rrakus@redhat.com> - 1.6.8-1
Roman Rakus 0c02b03
- Version 1.6.8 (need ugly bootstrap)
Roman Rakus 0c02b03
ac51452
* Wed Dec 02 2009 Eric Munson <ebmunson@us.ibm.com> - 1.6.7-1
ac51452
- Update to latest lsvpd release
ac51452
- Add librtas support to build on POWERPC
ac51452
- Add patch to lookup *.ids file location at runtime
ac51452
cea1a86
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.5-3
cea1a86
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
cea1a86
e254402
* Tue Apr 28 2009 - Dan Horak <dan[at]danny.cz> - 1.6.5-2
e254402
- rebuild for sg3_utils 1.27
e254402
72e9abd
* Mon Mar 16 2009 Eric Munson <ebmunson@us.ibm.com> - 1.6.5-1
72e9abd
- Update source to use new glibc C header includes
72e9abd
8a49973
* Mon Mar 16 2009 Eric Munson <ebmunson@us.ibm.com> - 1.6.4-6
8a49973
- Bump for rebuild against latest build of libvpd
8a49973
fba614f
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.4-5
fba614f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
fba614f
83636ae
* Thu Aug 14 2008 - Eric Munson <ebmunson@us.ibm.com> - 1.6.4-4
83636ae
- Bump for rebuild with new libvpd.
83636ae
951c74e
* Mon Jun 30 2008 - Dan Horak <dan[at]danny.cz> - 1.6.4-3
951c74e
- add patch for sg3_utils 1.26 and rebuild
951c74e
4b87620
* Fri Jun 06 2008 - Caolán McNamara <caolanm@redhat.com> - 1.6.4-2
4b87620
- rebuild for dependancies
4b87620
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
Vasant Hegde f4f37fe
* Mon 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
Vasant Hegde f4f37fe
* Tue Oct 30 2007 - Eric Munson <ebmunson@us.ibm.com> - 1.3.5-1
4e7d504
- Remove calls to ldconfig