|
|
99c779 |
Summary: HardWare LiSter
|
|
|
c28c22 |
Name: lshw
|
|
|
99c779 |
Version: B.02.18
|
|
|
99c779 |
Release: 7%{?dist}
|
|
|
c28c22 |
License: GPLv2
|
|
|
c28c22 |
Group: Applications/System
|
|
|
c28c22 |
URL: http://ezix.org/project/wiki/HardwareLiSter
|
|
|
99c779 |
Source0: http://www.ezix.org/software/files/%{name}-%{version}.tar.gz
|
|
|
c28c22 |
Source1: lshw.desktop
|
|
|
c28c22 |
Source2: org.ezix.lshw.gui.policy
|
|
|
c28c22 |
Source3: lshw-gui
|
|
|
99c779 |
Patch0: 0001-release-clean-up.patch
|
|
|
99c779 |
Patch1: 0002-fix-tar-archive-to-avoid-spilling-.spec-file-outside.patch
|
|
|
99c779 |
Patch2: 0003-update-.gitignore.patch
|
|
|
99c779 |
Patch3: 0004-add-bug-reporting-URL.patch
|
|
|
99c779 |
Patch4: 0005-update-doc.patch
|
|
|
99c779 |
Patch5: 0006-fix-714-system-width-detection.patch
|
|
|
99c779 |
Patch6: 0007-update-data-files.patch
|
|
|
99c779 |
Patch7: 0008-Makefile-allow-to-pass-additional-LIBS.patch
|
|
|
99c779 |
Patch8: 0009-add-install-instructions.patch
|
|
|
99c779 |
Patch9: 0010-fix-716-crash-in-scan_dmi_sysfs-when-run-as-non-root.patch
|
|
|
99c779 |
Patch10: 0011-report-modalias-information-for-PCI-and-network-devi.patch
|
|
|
99c779 |
Patch11: 0012-code-clean-up-only-set-businfo-or-modalias-when-it-s.patch
|
|
|
99c779 |
Patch12: 0013-make-modalias-an-optional-attribute-only-reported-in.patch
|
|
|
99c779 |
Patch13: 0014-add-detection-of-VirtualBox-disks.patch
|
|
|
99c779 |
Patch14: 0015-osutils-Using-delete-instead-of-delete.patch
|
|
|
99c779 |
Patch15: 0016-pci-Adjusting-visual-alignment-of-const-values.patch
|
|
|
99c779 |
Patch16: 0017-merge-Github-pull-request-22.patch
|
|
|
99c779 |
Patch17: 0018-merge-github-pull-request-23-parse-CPU-information.patch
|
|
|
99c779 |
Patch18: 0019-fix-727-GUI-build-issue-with-SQLite.patch
|
|
|
99c779 |
Patch19: 0020-devtree-Display-CPU-nodes-before-memory.patch
|
|
|
99c779 |
Patch20: 0021-devtree-Add-machine-description.patch
|
|
|
99c779 |
Patch21: 0022-devtree-Fix-motherboard-model-reporting.patch
|
|
|
99c779 |
Patch22: 0023-devtree-Fix-physical-ID-info-for-CPU-nodes.patch
|
|
|
99c779 |
Patch23: 0024-devtree-Add-VPD-info-for-FSP-based-Power-System.patch
|
|
|
99c779 |
Patch24: 0025-devtree-Add-VPD-info-for-BMC-based-IBM-Power-System.patch
|
|
|
99c779 |
Patch25: 0026-cpuinfo-Rectify-cpuinfo-for-IBM-Power-Systems.patch
|
|
|
99c779 |
Patch26: 0027-devtree-Add-parsed-firmware-version-info.patch
|
|
|
99c779 |
Patch27: 0028-devtree-Add-add_device_tree_info.patch
|
|
|
99c779 |
Patch28: 0029-pci-Add-device-tree-info.patch
|
|
|
99c779 |
Patch29: 0030-Fix-typo-classes-when-checking-if-temp-sysfs-got-mou.patch
|
|
|
99c779 |
Patch30: 0031-Adding-json-option-in-help-output.patch
|
|
|
99c779 |
Patch31: 0032-devtree-Use-consistent-output-format.patch
|
|
|
99c779 |
Patch32: 0033-devtree-Code-cleanup.patch
|
|
|
99c779 |
Patch33: 0034-devtree-Refactor-SPD-handling-code.patch
|
|
|
99c779 |
Patch34: 0035-devtree-Don-t-overrun-dimminfo-buffer.patch
|
|
|
99c779 |
Patch35: 0036-devtree-Add-description-vendor-and-clock-info-to-mem.patch
|
|
|
99c779 |
Patch36: 0037-devtree-Add-part-and-serial-number-info-to-memory-ba.patch
|
|
|
99c779 |
Patch37: 0038-devtree-Report-memory-info-for-BMC-based-Power-Syste.patch
|
|
|
99c779 |
Patch38: 0039-devtree-Correctly-read-size-for-DDR4-SPD.patch
|
|
|
99c779 |
Patch39: 0040-devtree-Add-support-for-DDR4-SPD.patch
|
|
|
99c779 |
Patch40: 0041-osutils-don-t-segfault-on-empty-files.patch
|
|
|
99c779 |
Patch41: 0042-Add-forgetten-size-checks-when-using-loadfile.patch
|
|
|
99c779 |
Patch42: 0043-fix-741-Detect-disk-vendor-SimpleTech.patch
|
|
|
99c779 |
Patch43: 0001-output-pci-subsystem-information-611.patch
|
|
|
99c779 |
Patch44: 0002-also-output-subsystem-info-for-PCI-host-bridges-611.patch
|
|
|
99c779 |
Patch45: 0003-only-output-subsystem-info-if-the-ids-are-non-zero-6.patch
|
|
|
99c779 |
Patch46: 0004-improve-model-and-chassis-retrieval-for-IBM-systems-.patch
|
|
|
99c779 |
Patch47: 0005-detect-arch-at-runtime-for-proc-cpuinfo-parsing.patch
|
|
|
99c779 |
Patch48: 0007-add-missing-PCI-storage-subclasses-688.patch
|
|
|
99c779 |
Patch49: 0008-expose-hints-in-XML-output-688.patch
|
|
|
99c779 |
Patch50: 0011-scan-PnP-devices-in-sysfs-691.patch
|
|
|
99c779 |
Patch51: 0012-load-PnP-vendor-names-from-hwdata-database-691.patch
|
|
|
99c779 |
Patch52: 0013-load-PnP-product-names-from-Universit-t-Regensburg-p.patch
|
|
|
99c779 |
Patch53: 0014-add-a-few-missing-PnP-IDs.patch
|
|
|
99c779 |
Patch54: 0015-scan-vio-devices-in-sysfs-692.patch
|
|
|
99c779 |
Patch55: 0016-use-sysfs-to-find-businfo-for-SCSI-adapters-692.patch
|
|
|
99c779 |
Patch56: 0017-scan-S-390-devices-in-sysfs-693.patch
|
|
|
99c779 |
Patch57: 0018-guess-memory-size-from-memory-hotplug-info-694.patch
|
|
|
99c779 |
Patch58: 0019-devicetree-identify-DIMMs-from-IBM-memory-controller.patch
|
|
|
99c779 |
Patch59: 0022-dmi-x86-64-is-a-misnomer-for-64-bit-CPU-capability-6.patch
|
|
|
99c779 |
Patch60: 0023-dmi-avoid-creating-multiple-memory-nodes-700.patch
|
|
|
99c779 |
Patch61: 0025-scsi-initialize-parent-inside-the-loop-692.patch
|
|
|
99c779 |
Patch62: 0026-sysfs-businfo-for-USB-devices-692.patch
|
|
|
99c779 |
Patch63: 0001-lshw-Parse-OPAL-firmware-properties-from-the-device-.patch
|
|
|
99c779 |
Patch64: 0001-Add-a-new-element-vendor_id.patch
|
|
|
99c779 |
Patch65: 0001-Revert-better-handling-of-whole-disk-volumes.patch
|
|
|
99c779 |
Patch66: 0001-Proper-detect-vendor_id-device_id-for-virtual-functi.patch
|
|
|
99c779 |
Patch67: 0001-Show-right-version-number.patch
|
|
|
bf6610 |
|
|
|
c28c22 |
BuildRequires: sqlite-devel
|
|
|
c28c22 |
Requires: hwdata
|
|
|
c28c22 |
|
|
|
c28c22 |
%description
|
|
|
99c779 |
lshw (Hardware Lister) is a small tool to provide detailed informaton on
|
|
|
99c779 |
the hardware configuration of the machine. It can report exact memory
|
|
|
99c779 |
configuration, firmware version, mainboard configuration, CPU version
|
|
|
99c779 |
and speed, cache configuration, bus speed, etc. on DMI-capable x86s
|
|
|
99c779 |
systems and on some PowerPC machines (PowerMac G4 is known to work).
|
|
|
c28c22 |
|
|
|
c28c22 |
Information can be output in plain text, XML or HTML.
|
|
|
c28c22 |
|
|
|
99c779 |
For detailed information on lshw features and usage, please see the
|
|
|
99c779 |
included documentation or go to the lshw Web page,
|
|
|
99c779 |
http://lshw.ezix.org/
|
|
|
99c779 |
|
|
|
c28c22 |
%package gui
|
|
|
99c779 |
Summary: HardWare LiSter (GUI version)
|
|
|
c28c22 |
Group: Applications/System
|
|
|
c28c22 |
Requires: polkit
|
|
|
99c779 |
Requires: %{name} >= %{version}
|
|
|
99c779 |
Requires: gtk2 >= 2.4
|
|
|
c28c22 |
BuildRequires: gtk2-devel >= 2.4
|
|
|
c28c22 |
BuildRequires: desktop-file-utils
|
|
|
c28c22 |
|
|
|
99c779 |
%description gui
|
|
|
99c779 |
lshw (Hardware Lister) is a small tool to provide detailed informaton on
|
|
|
99c779 |
the hardware configuration of the machine. It can report exact memory
|
|
|
99c779 |
configuration, firmware version, mainboard configuration, CPU version
|
|
|
99c779 |
and speed, cache configuration, bus speed, etc. on DMI-capable x86s
|
|
|
99c779 |
systems and on some PowerPC machines (PowerMac G4 is known to work).
|
|
|
99c779 |
|
|
|
99c779 |
This package provides a graphical user interface to display hardware
|
|
|
99c779 |
information.
|
|
|
99c779 |
|
|
|
99c779 |
For detailed information on lshw features and usage, please see the
|
|
|
99c779 |
included documentation or go to the lshw Web page,
|
|
|
99c779 |
http://lshw.ezix.org/
|
|
|
c28c22 |
|
|
|
c28c22 |
%prep
|
|
|
c28c22 |
%setup -q
|
|
|
99c779 |
%patch0 -p1
|
|
|
c28c22 |
%patch1 -p1
|
|
|
ff36e7 |
%patch2 -p1
|
|
|
ff36e7 |
%patch3 -p1
|
|
|
ff36e7 |
%patch4 -p1
|
|
|
ff36e7 |
%patch5 -p1
|
|
|
bf6610 |
%patch6 -p1
|
|
|
bf6610 |
%patch7 -p1
|
|
|
bf6610 |
%patch8 -p1
|
|
|
bf6610 |
%patch9 -p1
|
|
|
bf6610 |
%patch10 -p1
|
|
|
bf6610 |
%patch11 -p1
|
|
|
bf6610 |
%patch12 -p1
|
|
|
bf6610 |
%patch13 -p1
|
|
|
bf6610 |
%patch14 -p1
|
|
|
bf6610 |
%patch15 -p1
|
|
|
bf6610 |
%patch16 -p1
|
|
|
bf6610 |
%patch17 -p1
|
|
|
bf6610 |
%patch18 -p1
|
|
|
bf6610 |
%patch19 -p1
|
|
|
bf6610 |
%patch20 -p1
|
|
|
bf6610 |
%patch21 -p1
|
|
|
99c779 |
%patch22 -p1
|
|
|
99c779 |
%patch23 -p1
|
|
|
99c779 |
%patch24 -p1
|
|
|
99c779 |
%patch25 -p1
|
|
|
99c779 |
%patch26 -p1
|
|
|
99c779 |
%patch27 -p1
|
|
|
99c779 |
%patch28 -p1
|
|
|
99c779 |
%patch29 -p1
|
|
|
99c779 |
%patch30 -p1
|
|
|
99c779 |
%patch31 -p1
|
|
|
99c779 |
%patch32 -p1
|
|
|
99c779 |
%patch33 -p1
|
|
|
99c779 |
%patch34 -p1
|
|
|
99c779 |
%patch35 -p1
|
|
|
99c779 |
%patch36 -p1
|
|
|
99c779 |
%patch37 -p1
|
|
|
99c779 |
%patch38 -p1
|
|
|
99c779 |
%patch39 -p1
|
|
|
99c779 |
%patch40 -p1
|
|
|
99c779 |
%patch41 -p1
|
|
|
99c779 |
%patch42 -p1
|
|
|
99c779 |
%patch43 -p1
|
|
|
99c779 |
%patch44 -p1
|
|
|
99c779 |
%patch45 -p1
|
|
|
99c779 |
%patch46 -p1
|
|
|
99c779 |
%patch47 -p1
|
|
|
99c779 |
%patch48 -p1
|
|
|
99c779 |
%patch49 -p1
|
|
|
99c779 |
%patch50 -p1
|
|
|
99c779 |
%patch51 -p1
|
|
|
99c779 |
%patch52 -p1
|
|
|
99c779 |
%patch53 -p1
|
|
|
99c779 |
%patch54 -p1
|
|
|
99c779 |
%patch55 -p1
|
|
|
99c779 |
%patch56 -p1
|
|
|
99c779 |
%patch57 -p1
|
|
|
99c779 |
%patch58 -p1
|
|
|
99c779 |
%patch59 -p1
|
|
|
99c779 |
%patch60 -p1
|
|
|
99c779 |
%patch61 -p1
|
|
|
99c779 |
%patch62 -p1
|
|
|
99c779 |
%patch63 -p1
|
|
|
99c779 |
%patch64 -p1
|
|
|
99c779 |
%patch65 -p1
|
|
|
99c779 |
%patch66 -p1
|
|
|
99c779 |
%patch67 -p1
|
|
|
c28c22 |
|
|
|
c28c22 |
%build
|
|
|
99c779 |
make %{?_smp_mflags} SBINDIR="%{_sbindir}" RPM_OPT_FLAGS="%{optflags}" SQLITE=1 gui
|
|
|
c28c22 |
|
|
|
c28c22 |
# Replace copyrighted icons
|
|
|
c28c22 |
pushd src
|
|
|
99c779 |
make nologo
|
|
|
c28c22 |
|
|
|
c28c22 |
%install
|
|
|
99c779 |
make install \
|
|
|
c28c22 |
DESTDIR="%{buildroot}" \
|
|
|
c28c22 |
PREFIX="%{_prefix}" \
|
|
|
c28c22 |
SBINDIR="%{_sbindir}" \
|
|
|
c28c22 |
MANDIR="%{_mandir}" \
|
|
|
c28c22 |
STRIP="/bin/true" \
|
|
|
99c779 |
INSTALL="install -p" \
|
|
|
99c779 |
SQLITE=1
|
|
|
c28c22 |
|
|
|
99c779 |
make install-gui \
|
|
|
c28c22 |
DESTDIR="%{buildroot}" \
|
|
|
c28c22 |
PREFIX="%{_prefix}" \
|
|
|
c28c22 |
SBINDIR="%{_sbindir}" \
|
|
|
c28c22 |
MANDIR="%{_mandir}" \
|
|
|
c28c22 |
STRIP="/bin/true" \
|
|
|
99c779 |
INSTALL="install -p" \
|
|
|
99c779 |
SQLITE=1
|
|
|
c28c22 |
|
|
|
99c779 |
ln -s -f gtk-lshw %{buildroot}%{_sbindir}/lshw-gui
|
|
|
c28c22 |
|
|
|
c28c22 |
# don't package these copies, use the ones from hwdata instead
|
|
|
99c779 |
rm -f %{buildroot}%{_datadir}/%{name}/pci.ids
|
|
|
99c779 |
rm -f %{buildroot}%{_datadir}/%{name}/usb.ids
|
|
|
c28c22 |
# don't package these copies, they're not actually used by the app,
|
|
|
c28c22 |
# and even if they were, should use the hwdata versions
|
|
|
99c779 |
rm -f %{buildroot}%{_datadir}/%{name}/oui.txt
|
|
|
99c779 |
rm -f %{buildroot}%{_datadir}/%{name}/manuf.txt
|
|
|
c28c22 |
|
|
|
c28c22 |
# desktop icon
|
|
|
99c779 |
install -D -m 0644 -p ./src/gui/artwork/logo.svg \
|
|
|
c28c22 |
%{buildroot}%{_datadir}/pixmaps/%{name}-logo.svg
|
|
|
c28c22 |
desktop-file-install %{?vendortag:--vendor fedora} \
|
|
|
c28c22 |
--dir %{buildroot}%{_datadir}/applications %{SOURCE1}
|
|
|
c28c22 |
|
|
|
c28c22 |
# PolicyKit
|
|
|
99c779 |
install -D -m 0644 %{SOURCE2} \
|
|
|
c28c22 |
%{buildroot}%{_datadir}/polkit-1/actions/org.ezix.lshw.gui.policy
|
|
|
99c779 |
install -D -m 0755 %{SOURCE3} %{buildroot}%{_bindir}/lshw-gui
|
|
|
c28c22 |
|
|
|
c28c22 |
# translations seems borken, remove for now
|
|
|
c28c22 |
#find_lang %{name}
|
|
|
c28c22 |
rm -rf %{buildroot}%{_datadir}/locale/fr/
|
|
|
c28c22 |
|
|
|
c28c22 |
#files -f %{name}.lang
|
|
|
c28c22 |
%files
|
|
|
99c779 |
%license COPYING
|
|
|
99c779 |
%doc README.md docs/*
|
|
|
99c779 |
%{_mandir}/man1/lshw.1*
|
|
|
c28c22 |
%{_sbindir}/%{name}
|
|
|
c28c22 |
|
|
|
c28c22 |
%files gui
|
|
|
c28c22 |
%{_bindir}/%{name}-gui
|
|
|
c28c22 |
%{_sbindir}/gtk-%{name}
|
|
|
c28c22 |
%{_sbindir}/%{name}-gui
|
|
|
c28c22 |
%{_datadir}/%{name}
|
|
|
c28c22 |
%{_datadir}/pixmaps/%{name}-logo.svg
|
|
|
c28c22 |
%{_datadir}/applications/*%{name}.desktop
|
|
|
c28c22 |
%{_datadir}/polkit-1/actions/org.ezix.lshw.gui.policy
|
|
|
c28c22 |
|
|
|
c28c22 |
%changelog
|
|
|
99c779 |
* Tue May 16 2017 Petr Oros <poros@redhat.com> - B.02.18-7
|
|
|
99c779 |
- Revert Fix JSON output format
|
|
|
99c779 |
- Show right version number
|
|
|
99c779 |
- Resolves: #1447761
|
|
|
99c779 |
|
|
|
99c779 |
* Fri May 5 2017 Petr Oros <poros@redhat.com> - B.02.18-6
|
|
|
99c779 |
- Fix JSON output format
|
|
|
99c779 |
- Resolves: #1205372
|
|
|
99c779 |
|
|
|
99c779 |
* Wed May 3 2017 Petr Oros <poros@redhat.com> - B.02.18-5
|
|
|
99c779 |
- Re-enable sqlite support (for -dump)
|
|
|
99c779 |
- Resolves: #1446761
|
|
|
99c779 |
|
|
|
99c779 |
* Fri Mar 17 2017 Petr Oros <poros@redhat.com> - B.02.18-4
|
|
|
99c779 |
- Fix tmp_device_id/tmp_vendor_id size
|
|
|
99c779 |
- Resolves: #1339378
|
|
|
99c779 |
|
|
|
99c779 |
* Fri Mar 17 2017 Petr Oros <poros@redhat.com> - B.02.18-3
|
|
|
99c779 |
- Proper detect vendor_id/device_id for virtual functions
|
|
|
99c779 |
- Resolves: #1339378
|
|
|
99c779 |
|
|
|
99c779 |
* Tue Mar 7 2017 Petr Oros <poros@redhat.com> - B.02.18-2
|
|
|
99c779 |
- Add missing doc files
|
|
|
99c779 |
- Resolves: #1368704
|
|
|
99c779 |
|
|
|
99c779 |
* Fri Mar 3 2017 Petr Oros <poros@redhat.com> - B.02.18-1
|
|
|
99c779 |
- Rebase to lshw-B.02.18
|
|
|
99c779 |
- Sync with upstream git
|
|
|
99c779 |
- Apply patches from beaker-fork
|
|
|
99c779 |
- Resolves: #1368704
|
|
|
99c779 |
|
|
|
bf6610 |
* Mon Aug 8 2016 Petr Oros <poros@redhat.com> - B.02.17-12
|
|
|
bf6610 |
- Revert: "better" handling of whole-disk volumes
|
|
|
bf6610 |
- Resolves: #1358748
|
|
|
bf6610 |
|
|
|
bf6610 |
* Mon Aug 1 2016 Petr Oros <poros@redhat.com> - B.02.17-11
|
|
|
bf6610 |
- Resolves: #1360662
|
|
|
bf6610 |
|
|
|
bf6610 |
* Tue Jul 26 2016 Petr Oros <poros@redhat.com> - B.02.17-10
|
|
|
bf6610 |
- Add support for reporting virtio devices
|
|
|
bf6610 |
- Resolves: #1360662
|
|
|
bf6610 |
|
|
|
bf6610 |
* Mon Jul 25 2016 Petr Oros <poros@redhat.com> - B.02.17-9
|
|
|
bf6610 |
- Add support for proper report cpuinfo on s390x arch
|
|
|
bf6610 |
- Resolves: #1208276
|
|
|
bf6610 |
|
|
|
bf6610 |
* Tue Jun 7 2016 Petr Oros <poros@redhat.com> - B.02.17-8
|
|
|
bf6610 |
- Add pseries-guest information and PowerNV-firmware information
|
|
|
bf6610 |
- Resolves: #1334603
|
|
|
bf6610 |
|
|
|
bf6610 |
* Fri Apr 29 2016 Petr Oros <poros@redhat.com> - B.02.17-7
|
|
|
bf6610 |
- Report the vendor_id field for x86 cpu's
|
|
|
bf6610 |
- Resolves: #1215245
|
|
|
bf6610 |
|
|
|
bf6610 |
* Mon Jan 25 2016 Petr Oros <poros@redhat.com> - B.02.17-6
|
|
|
bf6610 |
- Use sysfs for DMI info when available
|
|
|
bf6610 |
- Resolves: #1261570
|
|
|
bf6610 |
|
|
|
ff36e7 |
* Mon Sep 14 2015 Petr Oros <poros@redhat.com> - B.02.17-5
|
|
|
ff36e7 |
- Resolves: #1221933
|
|
|
ff36e7 |
- Remove Trailing newline in 0004-IBM-PowerNV.patch
|
|
|
ff36e7 |
|
|
|
ff36e7 |
* Tue Jun 30 2015 Petr Oros <poros@redhat.com> - B.02.17-4
|
|
|
ff36e7 |
- Resolves: #1221933
|
|
|
ff36e7 |
- Fix malformed patch for PowerNV/bare-metal
|
|
|
ff36e7 |
|
|
|
ff36e7 |
* Tue Jun 30 2015 Petr Oros <poros@redhat.com> - B.02.17-3
|
|
|
ff36e7 |
- Resolves: #1221933
|
|
|
ff36e7 |
- Add power specific patches to RHEL7.2 for PowerNV/bare-metal
|
|
|
ff36e7 |
|
|
|
c28c22 |
* Mon Dec 15 2014 Petr Oros <poros@redhat.com> - B.02.17-2
|
|
|
c28c22 |
- Resolves: #1174195
|
|
|
c28c22 |
- Don't look for SMBIOS structures on PowerPC and s390x systems
|
|
|
c28c22 |
|
|
|
c28c22 |
* Mon Nov 3 2014 Petr Oros <poros@redhat.com> - B.02.17-1
|
|
|
c28c22 |
- Resolves: #1101590
|
|
|
c28c22 |
- Initial package.
|