Blame SPECS/lshw.spec

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