Blame SPECS/lshw.spec

66f3ee
Summary:       Hardware lister
66f3ee
Name:          lshw
33b0a4
Version:       B.02.19.2
33b0a4
Release:       2%{?dist}
66f3ee
License:       GPLv2
66f3ee
Group:         Applications/System
66f3ee
URL:           http://ezix.org/project/wiki/HardwareLiSter
66f3ee
Source0:       http://www.ezix.org/software/files/lshw-%{version}.tar.gz
66f3ee
Patch1:        lshw-B.02.18-scandir.patch
33b0a4
Patch2:        lshw-B.02.18-revert-json.patch
33b0a4
Patch3:        lshw-B.02.19.2-cmake.patch
33b0a4
Patch4:        lshw-B.02.19.2-Add-the-FindPkgConfig-to-CMakeLists.patch
33b0a4
Patch5:        0001-report-CPU-family-model-stepping.patch
33b0a4
Patch6:        0002-move-PnP-devices-to-the-ISA-LPC-bridge.patch
33b0a4
Patch7:        0003-correctly-format-SMBIOS-UUID.patch
33b0a4
Patch8:        0004-cosmetic-clean-up.patch
33b0a4
Patch9:        0005-begin-work-on-input-devices.patch
33b0a4
Patch10:       0006-cosmetic-fixes.patch
33b0a4
Patch11:       0007-detect-sound-devices.patch
33b0a4
Patch12:       0008-detect-framebuffers.patch
33b0a4
Patch13:       0009-try-to-connect-input-devices-to-the-right-parent.patch
33b0a4
Patch14:       0010-devtree-Add-chip-id-from-the-dimm-module.patch
33b0a4
Patch15:       0011-devtree-Add-chip-id-from-CPU-node.patch
33b0a4
Patch16:       0012-volumes-fix-segfault-in-apfs-volume-code.patch
33b0a4
Patch17:       0013-merge-Github-PR-53.patch
33b0a4
Patch18:       0014-devtree-Add-capabilites-to-the-OPAL-Firmware.patch
33b0a4
Patch19:       0015-fix-issue-with-logical-names-being-truncated-dev-sda.patch
33b0a4
Patch20:       0016-code-clean-up-for-read-3.patch
33b0a4
Patch21:       0017-report-product-model-on-Power-systems.patch
66f3ee
66f3ee
BuildRequires: cmake
66f3ee
BuildRequires: desktop-file-utils
66f3ee
BuildRequires: gcc
66f3ee
BuildRequires: gcc-c++
66f3ee
BuildRequires: gettext
66f3ee
BuildRequires: gtk2-devel >= 2.4
66f3ee
BuildRequires: libappstream-glib
66f3ee
BuildRequires: ninja-build
66f3ee
BuildRequires: python3-devel
66f3ee
BuildRequires: sqlite
66f3ee
BuildRequires: sqlite-devel
66f3ee
Requires:      hwdata
66f3ee
%description
66f3ee
lshw is a small tool to provide detailed informaton on the hardware
66f3ee
configuration of the machine. It can report exact memory
66f3ee
configuration, firmware version, mainboard configuration, CPU version
66f3ee
and speed, cache configuration, bus speed, etc. on DMI-capable x86
66f3ee
systems and on some PowerPC machines (PowerMac G4 is known to work).
66f3ee
66f3ee
Information can be output in plain text, XML or HTML.
66f3ee
66f3ee
%package       gui
66f3ee
Summary:       Graphical hardware lister
66f3ee
Group:         Applications/System
66f3ee
Requires:      polkit
66f3ee
Requires:      %{name} = %{version}-%{release}
66f3ee
%description   gui
66f3ee
Graphical frontend for the hardware lister (lshw) tool. If desired,
66f3ee
hardware information can be saved to file in plain, XML or HTML
66f3ee
format.
66f3ee
66f3ee
%prep
66f3ee
%setup -q
66f3ee
%patch01 -p1
33b0a4
%patch02 -R -p1
33b0a4
%patch03 -p1
66f3ee
%patch04 -p1
66f3ee
%patch05 -p1
66f3ee
%patch06 -p1
66f3ee
%patch07 -p1
66f3ee
%patch08 -p1
66f3ee
%patch09 -p1
66f3ee
%patch10 -p1
66f3ee
%patch11 -p1
66f3ee
%patch12 -p1
66f3ee
%patch13 -p1
66f3ee
%patch14 -p1
66f3ee
%patch15 -p1
66f3ee
%patch16 -p1
66f3ee
%patch17 -p1
33b0a4
%patch18 -p1
33b0a4
%patch19 -p1
33b0a4
%patch20 -p1
33b0a4
%patch21 -p1
66f3ee
66f3ee
%build
66f3ee
mkdir build && pushd build
66f3ee
%cmake .. -DNOLOGO=ON -DHWDATA=OFF -DPOLICYKIT=ON -DBUILD_SHARED_LIBS=OFF -DSQLITE=ON -GNinja
66f3ee
%ninja_build
66f3ee
66f3ee
%install
66f3ee
pushd build
66f3ee
%ninja_install
66f3ee
ln -s gtk-lshw %{buildroot}%{_sbindir}/lshw-gui
66f3ee
66f3ee
# translations seems borken, remove for now
66f3ee
#find_lang %{name}
66f3ee
rm -rf %{buildroot}%{_datadir}/locale/fr/
66f3ee
66f3ee
%check
66f3ee
appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/appdata/*.appdata.xml
66f3ee
66f3ee
# check json output is valid
66f3ee
pushd build
66f3ee
src/lshw -json \
66f3ee
    -disable usb -disable pcmcia -disable isapnp \
66f3ee
    -disable ide -disable scsi -disable dmi -disable memory \
66f3ee
    -disable cpuinfo 2>/dev/null | %{__python3} -m json.tool
66f3ee
66f3ee
#files -f %{name}.lang
66f3ee
%files
66f3ee
%license COPYING
66f3ee
%doc README.md
66f3ee
%{_mandir}/man1/lshw.1*
66f3ee
%{_sbindir}/lshw
66f3ee
66f3ee
%files gui
66f3ee
%license COPYING
66f3ee
%{_bindir}/lshw-gui
66f3ee
%{_sbindir}/gtk-lshw
66f3ee
%{_sbindir}/lshw-gui
66f3ee
%dir %{_datadir}/lshw
66f3ee
%{_datadir}/lshw/artwork
66f3ee
%dir %{_datadir}/lshw/ui
66f3ee
%{_datadir}/lshw/ui/gtk-lshw.ui
66f3ee
%{_datadir}/pixmaps/gtk-lshw.svg
66f3ee
%{_datadir}/applications/gtk-lshw.desktop
66f3ee
%{_datadir}/appdata/gtk-lshw.appdata.xml
66f3ee
%{_datadir}/polkit-1/actions/org.ezix.lshw.gui.policy
66f3ee
66f3ee
%changelog
33b0a4
* Wed May 27 2020 Lianbo Jiang <lijiang@redhat.com> - B.02.19.2-2
33b0a4
- Update to upstream master 3775782808e8
33b0a4
33b0a4
* Tue May 26 2020 Lianbo Jiang <lijiang@redhat.com> - B.02.19.2-1
33b0a4
- B.02.19.2
33b0a4
66f3ee
* Mon Feb 10 2020 Lianbo Jiang <lijiang@redhat.com> - B.02.18-23
66f3ee
- Do not show modified time with -notime option
66f3ee
- Resolves: rhbz#1733126
66f3ee
66f3ee
* Thu Nov 21 2019 Lianbo Jiang <lijiang@redhat.com> - B.02.18-22
66f3ee
- Display proper logical name of network device
66f3ee
- Resolves: rhbz#1724087
66f3ee
- Add DIMM running speed and Print dimm rank information
66f3ee
- Resolves: rhbz#1725199
66f3ee
66f3ee
* Mon May 13 2019 Lianbo Jiang <lijiang@redhat.com> - B.02.18-21
66f3ee
- Update to upstream master 6cc0581bc805.
66f3ee
- Resolves: rhbz#1664092
66f3ee
66f3ee
* Thu Apr 25 2019 Lianbo Jiang <lijiang@redhat.com> - B.02.18-20
66f3ee
- Change python to python3 in selftest/Makefile for the CI gating test.
66f3ee
- Resolves: rhbz#1680623
66f3ee
66f3ee
* Thu Apr 25 2019 Lianbo Jiang <lijiang@redhat.com> - B.02.18-19
66f3ee
- Enable SQLite and fix the CI gating test.
66f3ee
- Resolves: rhbz#1680623
66f3ee
66f3ee
* Tue Apr 23 2019 Lianbo Jiang <lijiang@redhat.com> - B.02.18-18
66f3ee
- Fix:59a8e99ab22d ("Porting the code from /CoreOS/lshw/sanity/check-output for the CI gating")
66f3ee
- Resolves: rhbz#1680623
66f3ee
66f3ee
* Fri Apr 19 2019 Lianbo Jiang <lijiang@redhat.com> - B.02.18-17
66f3ee
- Add the CI gating test
66f3ee
- Resolves: rhbz#1680623
66f3ee
66f3ee
* Mon Apr 02 2018 Terje Rosten <terje.rosten@ntnu.no> - B.02.18-16
66f3ee
- Update to commit 20cda77
66f3ee
- Convert to cmake build system
66f3ee
66f3ee
* Thu Feb 08 2018 Terje Rosten <terje.rosten@ntnu.no> - B.02.18-15
66f3ee
- Fix JSON issue (rhbz#1543320)
66f3ee
66f3ee
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - B.02.18-14
66f3ee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
66f3ee
66f3ee
* Fri Jan 26 2018 Terje Rosten <terje.rosten@ntnu.no> - B.02.18-13
66f3ee
- Fix date
66f3ee
- Need gettext
66f3ee
66f3ee
* Fri Jan 26 2018 Terje Rosten <terje.rosten@ntnu.no> - B.02.18-12
66f3ee
- Update to commit d05baa7
66f3ee
66f3ee
* Mon Aug 28 2017 Terje Rosten <terje.rosten@ntnu.no> - B.02.18-11
66f3ee
- Prefer lshw-gui in lshw-gui context
66f3ee
66f3ee
* Sun Aug 13 2017 Terje Rosten <terje.rosten@ntnu.no> - B.02.18-10
66f3ee
- Add AppData bz#1476498
66f3ee
66f3ee
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - B.02.18-9
66f3ee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
66f3ee
66f3ee
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - B.02.18-8
66f3ee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
66f3ee
66f3ee
* Mon May 15 2017 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - B.02.18-7
66f3ee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild
66f3ee
66f3ee
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - B.02.18-6
66f3ee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
66f3ee
66f3ee
* Wed Aug 24 2016 Terje Rosten <terje.rosten@ntnu.no> - B.02.18-5
66f3ee
- Modify lshw gui wrapper to fix bz#1368404
66f3ee
66f3ee
* Thu Aug 11 2016 Terje Rosten <terje.rosten@ntnu.no> - B.02.18-4
66f3ee
- Add patches to fix sysconf/long_bit issue and crash (bz#1342792)
66f3ee
66f3ee
* Wed May 18 2016 Terje Rosten <terje.rosten@ntnu.no> - B.02.18-3
66f3ee
- Add patch to fix crash (bz#1332486)
66f3ee
66f3ee
* Mon Apr 25 2016 Terje Rosten <terje.rosten@ntnu.no> - B.02.18-2
66f3ee
- Date fix
66f3ee
66f3ee
* Mon Apr 25 2016 Terje Rosten <terje.rosten@ntnu.no> - B.02.18-1
66f3ee
- B.02.18
66f3ee
66f3ee
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - B.02.17-7
66f3ee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
66f3ee
66f3ee
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - B.02.17-6
66f3ee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
66f3ee
66f3ee
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - B.02.17-5
66f3ee
- Rebuilt for GCC 5 C++11 ABI change
66f3ee
66f3ee
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - B.02.17-4
66f3ee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
66f3ee
66f3ee
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - B.02.17-3
66f3ee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
66f3ee
66f3ee
* Mon Sep 30 2013 Terje Rosten <terje.rosten@ntnu.no> - B.02.17-2
66f3ee
- Add patch to fix segfault in scan fat code
66f3ee
66f3ee
* Thu Sep 26 2013 Terje Rosten <terje.rosten@ntnu.no> - B.02.17-1
66f3ee
- B.02.17
66f3ee
66f3ee
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - B.02.16-9
66f3ee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
66f3ee
66f3ee
* Sun Jun 09 2013 Terje Rosten <terje.rosten@ntnu.no> - B.02.16-8
66f3ee
- Rename macro
66f3ee
66f3ee
* Sun Jun 09 2013 Terje Rosten <terje.rosten@ntnu.no> - B.02.16-7
66f3ee
- Fix desktop file (bz #953684)
66f3ee
- Remove broken translations (bz #905896)
66f3ee
- Add vendor macro
66f3ee
 
66f3ee
* Fri Apr 26 2013 Jon Ciesla <limburgher@gmail.com> - B.02.16-6
66f3ee
- Drop desktop vendor tag.
66f3ee
66f3ee
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - B.02.16-5
66f3ee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
66f3ee
66f3ee
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - B.02.16-4
66f3ee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
66f3ee
66f3ee
* Tue May 08 2012 Terje Rosten <terje.rosten@ntnu.no> - B.02.16-3
66f3ee
- Switch from consolehelper to PolicyKit (bz #502730)
66f3ee
66f3ee
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - B.02.16-2
66f3ee
- Rebuilt for c++ ABI breakage
66f3ee
66f3ee
* Sun Jan 29 2012 Terje Rosten <terje.rosten@ntnu.no> - B.02.16-1
66f3ee
- B.02.16
66f3ee
66f3ee
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - B.02.15-4
66f3ee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
66f3ee
66f3ee
* Mon Oct 17 2011 Terje Rosten <terje.rosten@ntnu.no> - B.02.15-3
66f3ee
- Own all dirs
66f3ee
66f3ee
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - B.02.15-2
66f3ee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
66f3ee
66f3ee
* Sun Nov 21 2010 Terje Rosten <terje.rosten@ntnu.no> - B.02.15-1
66f3ee
- B.02.15
66f3ee
- Remove patches now upstream
66f3ee
- Build with sqlite support
66f3ee
66f3ee
* Sun Sep 05 2010 Terje Rosten <terje.rosten@ntnu.no> - B.02.14-5
66f3ee
- Add patch to fix build with gcc-4.5
66f3ee
66f3ee
* Sun Sep 05 2010 Terje Rosten <terje.rosten@ntnu.no> - B.02.14-4
66f3ee
- Add patch to fix ext4 issue
66f3ee
66f3ee
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - B.02.14-3
66f3ee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
66f3ee
66f3ee
* Wed May 06 2009 Adam Jackson <ajax@redhat.com> - B.02.14-2
66f3ee
- Requires: hwdata
66f3ee
- Drop redundant copies of pci.ids and friends, since we'll pick up the
66f3ee
  copies in hwdata at runtime
66f3ee
66f3ee
* Sun Mar  1 2009 Terje Rosten <terjeros@phys.ntnu.no> - B.02.14-1
66f3ee
- B.02.14
66f3ee
- Drop gcc43 patch now upstream
66f3ee
66f3ee
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - B.02.13-4
66f3ee
- rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
66f3ee
66f3ee
* Wed Aug 13 2008 Terje Rosten <terjeros@phys.ntnu.no> - B.02.13-3
66f3ee
- rebuild
66f3ee
66f3ee
* Wed Aug 13 2008 Terje Rosten <terjeros@phys.ntnu.no> - B.02.13-2
66f3ee
- proper patch macro
66f3ee
66f3ee
* Wed Aug 13 2008 Terje Rosten <terjeros@phys.ntnu.no> - B.02.13-1
66f3ee
- B.02.13
66f3ee
- remove patches now upstream
66f3ee
- add new gcc43 patch
66f3ee
66f3ee
* Tue Apr 15 2008 Terje Rosten <terjeros@phys.ntnu.no> - B.02.12.01-5
66f3ee
- rebuild
66f3ee
66f3ee
* Tue Apr 15 2008 Terje Rosten <terjeros@phys.ntnu.no> - B.02.12.01-4
66f3ee
- add patch to fix bz #442501
66f3ee
66f3ee
* Mon Feb 11 2008 Terje Rosten <terjeros@phys.ntnu.no> - B.02.12.01-3
66f3ee
- add patch to build with gcc-4.3
66f3ee
66f3ee
* Sat Feb 09 2008 Terje Rosten <terjeros@phys.ntnu.no> - B.02.12.01-2
66f3ee
- rebuild
66f3ee
66f3ee
* Mon Nov  5 2007 Terje Rosten <terjeros@phys.ntnu.no> - B.02.12.01-1
66f3ee
- B.02.12.01
66f3ee
- Replace trademark icons
66f3ee
66f3ee
* Tue Aug 14 2007 Terje Rosten <terjeros@phys.ntnu.no> - B.02.11.01-3
66f3ee
- Move desktop and pam config to files
66f3ee
- Simplify build
66f3ee
66f3ee
* Tue Aug 07 2007 Terje Rosten <terjeros@phys.ntnu.no> - B.02.11.01-2
66f3ee
- Remove trademarks
66f3ee
66f3ee
* Mon Aug 06 2007 Terje Rosten <terjeros@phys.ntnu.no> - B.02.11.01-1
66f3ee
- B.02.11.01
66f3ee
66f3ee
* Sun Aug 05 2007 Terje Rosten <terjeros@phys.ntnu.no> - B.02.11-3
66f3ee
- Move artwork to gui subpackage
66f3ee
- Implement consolehelper support
66f3ee
66f3ee
* Sat Aug 04 2007 Terje Rosten <terjeros@phys.ntnu.no> - B.02.11-2
66f3ee
- License is GPLv2 (only)
66f3ee
- Fix ui %%description
66f3ee
66f3ee
* Wed Aug 01 2007 Terje Rosten <terjeros@phys.ntnu.no> - B.02.11-1
66f3ee
- Follow upstream version scheme
66f3ee
66f3ee
* Wed Jul 25 2007 Terje Rosten <terjeros@phys.ntnu.no> - 2.11-1
66f3ee
- 2.11
66f3ee
66f3ee
* Wed Jun 27 2007 Terje Rosten <terjeros@phys.ntnu.no> - 2.10-2
66f3ee
- minor fixes
66f3ee
- add patch to avoid stripping
66f3ee
- add desktop file
66f3ee
- strip changelog
66f3ee
- move from sbin to bin
66f3ee
- new url
66f3ee
66f3ee
* Wed Feb 14 2007 Dag Wieers <dag@wieers.com> - 2.10-1 - 4876+/dag
66f3ee
- Updated to release B.02.10.
66f3ee
66f3ee
* Tue Dec 21 2004 Dag Wieers <dag@wieers.com> - 2.0-1
66f3ee
- Initial package. (using DAR)
66f3ee