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@
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
BuildRequires:  cmake
BuildRequires:  cmake(PolkitQt6-1)
BuildRequires:  cmake(Qt6LinguistTools)
BuildRequires:  kf6-extra-cmake-modules
BuildRequires:  gcc-c++
BuildRequires:  hicolor-icon-theme
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(Qt6DBus)
BuildRequires:  pkgconfig(Qt6Network)
BuildRequires:  pkgconfig(Qt6Widgets)
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_qt6 \
    -DUSE_QT6=ON \
    -DQT_DEFAULT_MAJOR_VERSION=6
%qt6_build

%install
%qt6_install
%suse_update_desktop_file -r %{name} System Filesystem

%find_lang %{name} --with-qt

%check
%ctest

%files
%doc README.md
%{_bindir}/%{name}
%{_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

%files lang -f %{name}.lang
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/%{name}
%dir %{_datadir}/%{name}/%{name}/translations

%changelog
openSUSE Build Service is sponsored by