Blame SPECS/lshw.spec

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