## START: Set by rpmautospec ## (rpmautospec version 0.8.4) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 7; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %if 0%{?rhel} == 8 %undefine __cmake_in_source_build %endif Name: hardinfo2 Version: 2.2.16 Release: %autorelease Summary: System Information and Benchmark for Linux Systems # most of the source code is GPL-2.0-or-later license, except: # hardinfo2/gg_key_file_parse_string_as_value.c: LGPL-2.1-or-later # includes/blowfish.h: LGPL-2.1-or-later # deps/uber-graph/g-ring.c: LGPL-2.1-or-later # deps/uber-graph/g-ring.h: LGPL-2.1-or-later # modules/benchmark/blowfish.c: LGPL-2.1-or-later # hardinfo2/gg_strescape.c: LGPL-2.0-or-later # hardinfo2/util.c: GPL-2.0-or-later AND LGPL-2.0-or-later # deps/uber-graph/uber-frame-source.c: LGPL-2.0-or-later # deps/uber-graph/uber-frame-source.h: LGPL-2.0-or-later # deps/uber-graph/uber-timeout-interval.c: LGPL-2.0-or-later # deps/uber-graph/uber-timeout-interval.h: LGPL-2.0-or-later # deps/uber-graph/uber-graph.c: GPL-3.0-or-later # deps/uber-graph/uber-graph.h: GPL-3.0-or-later # deps/uber-graph/uber-heat-map.c: GPL-3.0-or-later # deps/uber-graph/uber-heat-map.h: GPL-3.0-or-later # deps/uber-graph/uber-label.c: GPL-3.0-or-later # deps/uber-graph/uber-label.h: GPL-3.0-or-later # deps/uber-graph/uber-line-graph.c: GPL-3.0-or-later # deps/uber-graph/uber-line-graph.h: GPL-3.0-or-later # deps/uber-graph/uber-range.c: GPL-3.0-or-later # deps/uber-graph/uber-range.h: GPL-3.0-or-later # deps/uber-graph/uber-scale.c: GPL-3.0-or-later # deps/uber-graph/uber-scale.h: GPL-3.0-or-later # deps/uber-graph/uber-scatter.c: GPL-3.0-or-later # deps/uber-graph/uber-scatter.h: GPL-3.0-or-later # deps/uber-graph/uber-window.c: GPL-3.0-or-later # deps/uber-graph/uber-window.h: GPL-3.0-or-later # deps/uber-graph/uber.h: GPL-3.0-or-later # includes/loadgraph.h: LGPL-2.1-only # shell/loadgraph.c: LGPL-2.1-only License: GPL-2.0-or-later AND LGPL-2.1-or-later AND LGPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-2.1-only URL: https://github.com/hardinfo2/hardinfo2 Source0: %{url}/archive/release-%{version}/hardinfo2-release-%{version}.tar.gz # PACKAGE ELN and RHEL 11 Patch0: %{url}/pull/294.patch BuildRequires: gcc-c++ BuildRequires: cmake %if 0%{?fedora} || 0%{?rhel} >= 10 BuildRequires: cmake(Qt6Core) BuildRequires: cmake(Qt6Gui) BuildRequires: cmake(Qt6Widgets) BuildRequires: cmake(Qt6OpenGLWidgets) %else BuildRequires: cmake(Qt5Core) BuildRequires: cmake(Qt5Gui) BuildRequires: cmake(Qt5Widgets) BuildRequires: cmake(Qt5OpenGL) %endif BuildRequires: /usr/bin/glslangValidator BuildRequires: /usr/bin/glslc BuildRequires: libdecor-devel BuildRequires: pkgconfig(gtk+-3.0) BuildRequires: pkgconfig(cairo) BuildRequires: pkgconfig(cairo-png) BuildRequires: pkgconfig(gthread-2.0) BuildRequires: pkgconfig(gmodule-export-2.0) %if 0%{?fedora} || 0%{?rhel} >= 10 BuildRequires: pkgconfig(libsoup-3.0) %else BuildRequires: pkgconfig(libsoup-2.4) %endif BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(json-glib-1.0) BuildRequires: pkgconfig(x11) BuildRequires: zlib-devel BuildRequires: systemd-rpm-macros BuildRequires: desktop-file-utils BuildRequires: libappstream-glib %if 0%{?rhel} >= 8 || 0%{?fedora} Recommends: lm_sensors Recommends: sysbench Recommends: lsscsi Recommends: glx-utils Recommends: dmidecode Recommends: udisks2 Recommends: xdg-utils Recommends: iperf3 Recommends: vulkan-tools %endif %description Hardinfo2 is based on hardinfo, which have not been released >10 years. Hardinfo2 is the reboot that was needed. Hardinfo2 offers System Information and Benchmark for Linux Systems. It is able to obtain information from both hardware and basic software. It can benchmark your system and compare to other machines online. Features include: - Report generation (in either HTML or plain text) - Online Benchmarking - compare your machine against other machines %prep %autosetup -p1 -n hardinfo2-release-%{version} # respect %%_prefix used in %%cmake call sed -i -e '/^SET.CMAKE_INSTALL_PREFIX/d' CMakeLists.txt %build %cmake -DCMAKE_BUILD_TYPE=Release \ %if 0%{?fedora} || 0%{?rhel} >= 10 -DHARDINFO2_QT6=1 \ %endif %{nil} %cmake_build %install %cmake_install %find_lang %{name} %check desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/*.metainfo.xml %files -f %{name}.lang %license LICENSE LICENSE.1 LICENSE.2 %doc README.md %{_bindir}/hardinfo2 %{_bindir}/hwinfo2_fetch_sysdata %{_unitdir}/hardinfo2.service %dir %{_libdir}/hardinfo2 %dir %{_libdir}/hardinfo2/modules %{_libdir}/hardinfo2/modules/benchmark.so %{_libdir}/hardinfo2/modules/computer.so %{_libdir}/hardinfo2/modules/devices.so %{_libdir}/hardinfo2/modules/network.so %{_libdir}/hardinfo2/modules/qgears2 %{_libdir}/hardinfo2/modules/vkgears %{_metainfodir}/org.hardinfo2.hardinfo2.metainfo.xml %{_datadir}/applications/hardinfo2.desktop %dir %{_datadir}/hardinfo2 %{_datadir}/hardinfo2/*.ids %{_datadir}/hardinfo2/benchmark.data %{_datadir}/hardinfo2/*.json %{_datadir}/hardinfo2/pixmaps/ %{_datadir}/icons/hicolor/scalable/apps/hardinfo2.svg %{_mandir}/man1/hardinfo2.1* %changelog ## START: Generated by rpmautospec * Tue Jul 28 2026 Yaakov Selkowitz - 2.2.16-7 - Use Qt6 on Fedora and EPEL 10+ * Tue Jul 28 2026 Yaakov Selkowitz - 2.2.16-6 - Fix settings for EPEL 11 * Tue Jul 28 2026 Yaakov Selkowitz - 2.2.16-5 - Respect %%_prefix * Tue Jul 28 2026 Yaakov Selkowitz - 2.2.16-4 - Fix build with CMake 4.0 * Thu Jul 16 2026 Fedora Release Engineering - 2.2.16-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild * Fri Jan 16 2026 Fedora Release Engineering - 2.2.16-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild * Thu Jan 15 2026 topazus - 2.2.16-1 - 2.2.16 * Thu Jul 24 2025 Fedora Release Engineering - 2.2.13-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Mon May 26 2025 topazus - 2.2.13-2 - fix Missing packages - vulkan-tools; rhbz#2367091 * Fri May 09 2025 topazus - 2.2.13-1 - 2.2.13 * Sat Mar 29 2025 Packit - 2.2.10-1 - Update to 2.2.10 upstream release - Resolves: rhbz#2343418 * Tue Feb 04 2025 topazus - 2.2.7-1 - 2.2.7 * Fri Jan 17 2025 Fedora Release Engineering - 2.2.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Tue Nov 05 2024 Packit - 2.2.4-1 - Update to 2.2.4 upstream release - Resolves: rhbz#2310165 * Thu Oct 24 2024 topazus - 2.2.1-1 - 2.2.1 * Wed Oct 02 2024 topazus - 2.1.17-1 - 2.1.17 * Thu Sep 05 2024 topazus - 2.1.14-2 - Fix build on epel 10 * Thu Sep 05 2024 topazus - 2.1.14-1 - 2.1.14 * Thu Jul 18 2024 Fedora Release Engineering - 2.1.11-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Thu May 30 2024 Packit - 2.1.11-1 - Update to 2.1.11 upstream release - Resolves: rhbz#2283886 * Mon May 27 2024 Packit - 2.1.8-1 - Update to 2.1.8 upstream release - Resolves: rhbz#2283359 * Sat May 25 2024 Packit - 2.1.5-1 - Update to 2.1.5 upstream release - Resolves: rhbz#2281605 * Mon May 20 2024 topazus - 2.1.2-1 - 2.1.2 * Sun Mar 24 2024 topazus - 2.0.18-1 - 2.0.18 * Tue Mar 12 2024 Felix Wang - 2.0.15-4 - fix build on epel 7; correct license * Tue Mar 12 2024 Felix Wang - 2.0.15-3 - fix build on epel 7; do not use ninja-nuild on epel * Tue Mar 12 2024 Felix Wang - 2.0.15-2 - Fix build issues on epel 7 and 8 * Sun Mar 10 2024 topazus - 2.0.15-1 - initial import ## END: Generated by rpmautospec