File kdiskmark.spec of Package kdiskmark
#
# spec file for package kdiskmark
#
# 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: kdiskmark
#Version: @SERVICE@
Version: 3.2.0
Release: 0
Summary: A simple open-source disk benchmark tool for Linux distros
License: GPL-3.0-only
Group: System/Benchmark
URL: https://github.com/JonMagon/KDiskMark
Source0: %{name}-%{version}.tar.xz
Source1: %{name}.rpmlintrc
BuildRequires: cmake
#BuildRequires: cmake(PolkitQt5-1)
#BuildRequires: cmake(Qt5LinguistTools)
BuildRequires: extra-cmake-modules
BuildRequires: gcc-c++
BuildRequires: hicolor-icon-theme
#BuildRequires: pkgconfig
#BuildRequires: pkgconfig(Qt5DBus)
#BuildRequires: pkgconfig(Qt5Network)
#BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: cmake(PolkitQt6-1)
BuildRequires: cmake(Qt6LinguistTools)
BuildRequires: cmake(Qt6Widgets)
BuildRequires: cmake(Qt6DBus)
BuildRequires: cmake(Qt6Network)
#BuildRequires: update-desktop-files
Requires: fio
Recommends: %{name}-lang
Provides: bundled(libSingleApplication)
%description
KDiskMark is an HDD and SSD benchmark tool with a very friendly graphical
user interface.
%lang_package
%prep
%autosetup
%build
%cmake
%cmake_build
%install
%cmake_install
#%%suse_update_desktop_file -r %%{name} System Filesystem
%find_lang %{name} --with-qt
%files
%doc README.md
%{_bindir}/%{name}
%if 0%{?fedora}
%{_datadir}/%{name}
%endif
%{_datadir}/applications/%{name}.desktop
%{_datadir}/dbus-1/system-services/dev.jonmagon.%{name}.helperinterface.service
%{_datadir}/dbus-1/system.d/dev.jonmagon.%{name}.helperinterface.conf
%{_datadir}/icons/hicolor/*/apps/%{name}.??g
%{_datadir}/polkit-1/actions/dev.jonmagon.%{name}.helper.policy
%{_libexecdir}/%{name}_helper
%license LICENSE
%if 0%{?suse_version}
%files lang -f %{name}.lang
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/%{name}
%dir %{_datadir}/%{name}/%{name}/translations
%endif
%changelog