-
Notifications
You must be signed in to change notification settings - Fork 0
/
beaker-system-scan.spec
117 lines (95 loc) · 4.12 KB
/
beaker-system-scan.spec
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
%if 0%{?rhel} && 0%{?rhel} <= 5
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
%endif
# x86_64 is the only arch with compiled code (hvm_detect), all other arches are
# pure Python and hence debuginfo is empty.
%ifnarch x86_64
%global debug_package %{nil}
%endif
Name: beaker-system-scan
Version: 2.2
Release: 1%{?dist}
Summary: Collect and upload hardware information to Beaker
Group: Applications/System
License: GPLv2+
URL: http://beaker-project.org/
Source0: http://beaker-project.org/releases/%{name}-%{version}.tar.gz
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildRequires: python2-devel
BuildRequires: python-setuptools
Requires: lshw
%if 0%{?rhel} < 6 && !(0%{?fedora} > 0)
Requires: python-simplejson
%ifarch x86_64
Requires: kmod-kvm
%endif
%endif
%ifarch x86_64
Requires: /usr/bin/iasl
%endif
Requires: device-mapper-multipath
Requires: python-linux-procfs
Requires: python-setuptools
Requires: python-lxml
%description
beaker-system-scan is a small script to collect details about the hardware of
the system it is run on, and upload those details to a Beaker server.
%prep
%setup -q
%build
make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
%install
rm -rf %{buildroot}
make install DESTDIR=%{buildroot}
%files
%doc COPYING
%{python_sitelib}/systemscan
%{python_sitelib}/bkr.systemscan*.egg-info
%{_libexecdir}/%{name}
%{_bindir}/%{name}
%changelog
* Wed Jun 15 2016 Dan Callaghan <[email protected]> 2.2-1
- KVM module is called kvm_hv on POWER ([email protected])
* Thu Aug 27 2015 Dan Callaghan <[email protected]> 2.1-1
- fix DISKSPACE cumulative rounding error ([email protected])
- identify PnP devices by looking for <capability id="pnp">
- omit 0000:0000 from USBID key-values ([email protected])
- work around wrong PCI class for virtio memory balloon ([email protected])
* Thu Aug 13 2015 Dan Callaghan <[email protected]> 2.0-4
- ensure disk sector sizes are always populated ([email protected])
* Wed Aug 12 2015 Dan Callaghan <[email protected]> 2.0-3
- CPUFAMILY and CPUMODELNUMBER are numeric ([email protected])
* Tue Aug 11 2015 Dan Callaghan <[email protected]> 2.0-2
- convert DISK_CONTROLLER value to a real unicode object ([email protected])
* Fri Aug 07 2015 Dan Callaghan <[email protected]> 2.0-1
- use 'lshw' instead of 'smolt'
- new regression test suite
* Wed Jan 28 2015 Amit Saha <[email protected]> 1.6-1
- Make the code Python 2.4 compatible ([email protected])
- iasl => /usr/bin/iasl ([email protected])
- Add runtime dependencies on parted and python-setuptools ([email protected])
* Thu Oct 16 2014 Amit Saha <[email protected]> 1.5-1
- Redirect stdout of "service multipathd restart" to /dev/null
- Ignore failures from getdriver.sh when finding the bootdisk
* Fri Aug 29 2014 Amit Saha <[email protected]> 1.4-1
- Try a more recent version of libparted for Fedora 20+ and RHEL 7+
- Always return 0 from hvm_detect ([email protected])
- Couple of random changes: ([email protected])
- Add Fedora checking for kmod-kvm ([email protected])
- Add a new switch to output JSON data when run in debug mode
* Thu May 08 2014 Amit Saha <[email protected]> 1.3-1
- s390x 'identification' should be converted to an integer ([email protected])
- s390x and ppc: Fill in CPU model field ([email protected])
- Make iasl a conditional dependency for x86_64 ([email protected])
* Tue Jul 30 2013 Dan Callaghan <[email protected]> 1.2-3
- kmod-kvm is for x86_64 only ([email protected])
* Fri Jul 26 2013 Dan Callaghan <[email protected]> 1.2-2
- %%{python_sitelib} is not defined on RHEL5 ([email protected])
* Fri Jul 26 2013 Dan Callaghan <[email protected]> 1.2-1
- initial version, based on /distribution/inventory task from Beaker