-
Notifications
You must be signed in to change notification settings - Fork 0
/
lsvpd.spec.in
178 lines (145 loc) · 5.96 KB
/
lsvpd.spec.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
%define name lsvpd
%define version @VERSION@
# Change the release number here
%define relver 1
Name: %{name}
Version: %{version}
Release: %{relver}%{?dist}
Summary: VPD/hardware inventory utilities for Linux
Group: Applications/System
License: GPLv2+
Vendor: IBM Corp.
ExclusiveArch: ppc64 ppc ppc64le
URL: http://linux-diag.sf.net/Lsvpd.html
Source: http://downloads.sourceforge.net/linux-diag/files/%{name}-new/%{version}/%{name}-%{version}.tar.gz
Requires: iprutils >= 2.3.12
Requires(pre): iprutils >= 2.3.12
Requires(postun): iprutils >= 2.3.12
BuildRequires: libvpd-devel >= 2.2.5
BuildRequires: librtas-devel
BuildRequires: zlib-devel
BuildRequires: sg3_utils-devel
BuildRequires: automake
BuildRequires: libtool
%description
The lsvpd package contains all of the lsvpd, lscfg and lsmcode commands.
These commands, along with a scanning program called vpdupdate, constitute
a 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. lsvio lists virtual devices, usually only found on POWER PC based
systems.
%prep
%setup -q
%build
./bootstrap.sh
%configure
%{__make} %{?_smp_mflags}
%clean
%{__rm} -rf $RPM_BUILD_ROOT
%install
%{__rm} -rf $RPM_BUILD_ROOT
%{__make} install DESTDIR=$RPM_BUILD_ROOT
%post
%{_sbindir}/vpdupdate &
# Ignore the vpdupdate failures and enforce a success
exit 0
%files
%defattr(-,root,root,-)
%doc COPYING README
%{_sbindir}/lsvpd
%{_sbindir}/lscfg
%{_sbindir}/lsmcode
%{_sbindir}/lsvio
%{_sbindir}/vpdupdate
%{_mandir}/man8/vpdupdate.8.gz
%{_mandir}/man8/lsvpd.8.gz
%{_mandir}/man8/lscfg.8.gz
%{_mandir}/man8/lsvio.8.gz
%{_mandir}/man8/lsmcode.8.gz
%config %{_sysconfdir}/lsvpd/scsi_templates.conf
%config %{_sysconfdir}/lsvpd/cpu_mod_conv.conf
%dir %{_sysconfdir}/lsvpd
%changelog
* Wed Mar 22 2017 - Vasant Hegde <[email protected]> - 1.7.8
- Remove temporary block file creation under /tmp
- Various bug fixes
* Tue Apr 12 2016 - Vasant Hegde <[email protected]> - 1.7.7
- Support for NVMe devices
- Few minor bug fixes
* Fri Nov 06 2015 - Vasant Hegde <[email protected]> - 1.7.6
- lsmcode is enhanced to support OpenPower systems
- Fixed security issues like buffer overflow, memory allocation validation
- Improved error handling
* Wed Aug 13 2014 - Vasant Hegde <[email protected]> - 1.7.5
- Added LE support
- Fixed couple of issues in build tools
- Removed outdated debian build code
* Mon Mar 17 2014 - Vasant Hegde <[email protected]> - 1.7.4
- Added support to parse VPD on PowerNV platform
- Filter out known paths from device-tree scan
- Minor fix in lsmcode output
- Added platform check to VPD tools
- Filter directories from device scan
- Fix possible out of range issue in substr operation
- Display FirmwareVersion and FirmwareLevel
* Thu Nov 14 2013 - Suzuki Poulose <[email protected]> - 1.7.3
- IBMinvscout: Removed from lsvpd package. Moving to a new package.
- vpdupdate: Filter ibm,bsr entries from VPD db.
* Thu Aug 22 2013 - Vasant Hegde <[email protected]> - 1.7.2
- vpdupdate: Find the PCI/USB ids files at runtime
- lscfg: allow -z, -d with -p
- lsvpd.spec.in: run vpdupdate in background post rpm install
* Wed Feb 20 2013 - Vasant Hegde <[email protected]> - 1.7.1-3
- Remove unused variables in invscout, lscfg.
- lscfg -vp: Skip empty record
- lscfg: Display Microcode Image level (MI)
* Fri Feb 15 2013 - Vasant Hegde <[email protected]> - 1.7.1-2
- "lscfg -vpl sysplaner0" ouptut alignment fix
- Display "Machine Model" information in lscfg output
* Mon Jan 28 2013 - Harsh P Bora <[email protected]> - 1.7.1
- Support for device listing using location code with lsvpd -l
- Added man page for invscout
- Man pages updated to remove license info.
- Man pages updated to use correct vpd DB filename, document -l feature.
* Mon Sep 10 2012 - Suzuki Poulose <[email protected]> - 1.7.0
- Added invscout tool.
- Better support for SCSI Enclosures
* Fri Mar 21 2008 - Eric Munson <[email protected]> - 1.6.3-1
- Adding proper conf file handling
- Removing executable bit on config and documentation files
- Removing second listing for config files
* Fri Mar 14 2008 - Eric Munson <[email protected]> - 1.6.2-3
- Becuase librtas is not yet in Fedora, the extra ppc dependency should
be ignored
* Thu Mar 13 2008 - Eric Munson <[email protected]> - 1.6.2-2
- Adding arch check for ppc[64] dependency.
* Tue Mar 4 2008 - Eric Munson <[email protected]> - 1.6.2-1
- Updating for lsvpd-1.6.2
* Mon Mar 3 2008 - Eric Munson <[email protected]> - 1.6.1-1
- Updating for lsvpd-1.6.1
* Sat Feb 2 2008 - Eric Munson <[email protected]> - 1.6.0-1
- Updating lsvpd to use the new libvpd-2.0.0
- Removing %%{_mandir}/man8/* from %%files and replacing it with each
individual file installed in the man8 directory
* Fri Dec 7 2007 - Brad Peters <[email protected]> - 1.5.0
- Major changes in device detection code, basing detection on /sys/devices
rather than /sys/bus as before
- Enhanced aggressiveness of AIX naming, ensuring that every detected device
has at least one AIX name, and thus appears in lscfg output
- Changed method for discovering /sys/class entries
- Added some new VPD fields, one example of which is the device driver
associated with the device
- Some minor changes to output formating
- Some changes to vpd collection
- Removing unnecessary Requires field
* Fri Nov 16 2007 - Eric Munson <[email protected]> - 1.4.0-1
- Removing udev rules from install as they are causing problems. Hotplug
will be disabled until we find a smarter way of handling it.
- Updating License
- Adjusting the way vpdupdater is inserted into run control
- Removing #! from the beginning of the file.
- Fixes requested by Fedora Community
* Tue Oct 30 2007 - Eric Munson <[email protected]> - 1.3.5-1
- Remove calls to ldconfig