File hardinfo.spec of Package hardinfo
#
# spec file for package hardinfo
#
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: hardinfo
Summary: Displays system information
Version: 0.6.git20230524
Release: 0
URL: https://github.com/lpereira/hardinfo
Source: https://github.com/lpereira/hardinfo/archive/refs/heads/master.zip#/%{name}-master.zip
Patch0: fix_numa_nodes_count.patch
Patch1: fix_module_loading_order.patch
License: GPL-2.0-only
Group: System/Benchmark
BuildRequires: cmake
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: unzip
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(cairo) >= 1.0
BuildRequires: pkgconfig(glib-2.0) >= 2.10
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(json-glib-1.0)
BuildRequires: pkgconfig(libsoup-2.4) >= 2.42
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(zlib)
Recommends: %{name}-lang
Recommends: apcupsd
Recommends: hddtemp
Recommends: sensors
ExclusiveArch: %{ix86} x86_64
%description
HardInfo is a system profiler and benchmark for Linux systems.
It is able to obtain information from both hardware and basic software,
and organize it in a simple to use GUI.
Features include:
+ Report generation (in either HTML or plain text)
+ Benchmark result synchronization
+ Ability to explore the information on remote computers
%lang_package
%prep
%autosetup -p1 -n %{name}-master
cat > %{name}.desktop << EOF
[Desktop Entry]
Name=HardInfo
GenericName=System Profiler and Benchmark
GenericName[de]=System Profiler und Benchmark
GenericName[es]=Informacion y Rendimiento del Sistema
GenericName[fr]=Informations et Benchmarks du Système
GenericName[pt_BR]=Informações e Testes do Sistema
GenericName[ru]=Информация о системе и тестирование
GenericName[tr]=Sistem Bilgisi ve Karşılaştırma
Comment=Displays system information
Comment[de]=Anzeigen von Systeminformationen
Comment[ru]=Показывает информацию о системе
Exec=%{name} %U
Icon=%{name}
Type=Application
Terminal=false
StartupNotify=true
Categories=System;Utility;DesktopUtility;Monitor;
Keywords=linux;kernel;system;hardware;cpu;processor;capabilities;frequency;memory;ram;board;resources;sensors;devices;usb;pci;display;network;benchmark;test;
EOF
%build
%cmake -DHARDINFO_GTK3=ON
%cmake_build
%install
%cmake_install
%suse_update_desktop_file -i %{name}
%find_lang %{name}
%fdupes %{buildroot}
%files
%doc AUTHORS.md CONTRIBUTING.md README.md
%license LICENSE
%{_bindir}/%{name}
%{_libdir}/%{name}/
%{_datadir}/%{name}/
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.*
%{_datadir}/man/man1/%{name}.1%{?ext_man}
%files lang -f %{name}.lang
%changelog