File kronometer.spec of Package kronometer5

#
# spec file for package kronometer
#
# Copyright (c) 2020 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:           kronometer5
Version:        2.2.3
Release:        0
Summary:        A stopwatch application by KDE
License:        GPL-2.0-or-later
Group:          Productivity/Other
URL:            https://apps.kde.org/kronometer
Source:         https://download.kde.org/stable/kronometer/%{version}/src/kronometer-%{version}.tar.xz
BuildRequires:  extra-cmake-modules
BuildRequires:  cmake(KF5Config)
BuildRequires:  cmake(KF5Crash)
BuildRequires:  cmake(KF5DocTools)
BuildRequires:  cmake(KF5I18n)
BuildRequires:  cmake(KF5WidgetsAddons)
BuildRequires:  cmake(KF5XmlGui)
BuildRequires:  cmake(Qt5Core) >= 5.9.0
BuildRequires:  cmake(Qt5Gui)
BuildRequires:  cmake(Qt5Test)
BuildRequires:  cmake(Qt5Widgets)

%description
Kronometer is a stopwatch application.

Kronometer's main features are the following:

* Start/pause/resume the stopwatch widget
* Laps recording: you can capture the stopwatch time when you want and add a note to it
* Lap times sorting: you can easily find the shortest lap time or the longest one
* Reset the stopwatch widget and the lap times
* Time format settings: you can choose the stopwatch granularity
* Times saving and resuming: you can save the stopwatch status and resume it later
* Font customization: you can choose the fonts for each of the stopwatch digits
* Color customization: you can choose the color for the stopwatch digits and the stopwatch background
* Lap times export: you can export the lap times on a file using the JSON or CSV format

%prep
%setup -q -n kronometer-%{version}

%build
  %cmake_kf5 -d build -- -DCMAKE_INSTALL_LOCALEDIR=%{_kf5_localedir}
  %make_jobs

%install
  %kf5_makeinstall -C build
  %kf5_find_lang kronometer %{name}.lang
  %{kf5_find_htmldocs}

%files -f %{name}.lang
%license COPYING
%doc README
%doc %lang(en) %{_kf5_htmldir}/en/kronometer
%doc %lang(en) %{_kf5_mandir}/man1/kronometer.1
%doc %{_kf5_mandir}/*/man1/kronometer.1
# kf5-filesystem doesn't own this directory in 15.2
%dir %{_kf5_configkcfgdir}
%{_kf5_applicationsdir}/org.kde.kronometer.desktop
%{_kf5_appstreamdir}/org.kde.kronometer.appdata.xml
%{_kf5_bindir}/kronometer
%{_kf5_configkcfgdir}/kronometer.kcfg
%{_kf5_iconsdir}/hicolor/*/apps/kronometer.*

%changelog
openSUSE Build Service is sponsored by