File ktimetracker.spec of Package ktimetracker

# spec file for package ktimetracker
# 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

%bcond_without lang
Name:           ktimetracker
Version:        5.0.1
Release:        0
Summary:        Personal Time Tracker
License:        GPL-2.0-or-later
Group:          Productivity/Other
BuildRequires:  extra-cmake-modules
BuildRequires:  update-desktop-files
BuildRequires:  cmake(KF5CalendarCore)
BuildRequires:  cmake(KF5Config)
BuildRequires:  cmake(KF5ConfigWidgets)
BuildRequires:  cmake(KF5DBusAddons)
BuildRequires:  cmake(KF5DocTools)
BuildRequires:  cmake(KF5I18n)
BuildRequires:  cmake(KF5IdleTime)
BuildRequires:  cmake(KF5JobWidgets)
BuildRequires:  cmake(KF5KIO)
BuildRequires:  cmake(KF5Notifications)
BuildRequires:  cmake(KF5TextWidgets)
BuildRequires:  cmake(KF5WindowSystem)
BuildRequires:  cmake(KF5XmlGui)
BuildRequires:  cmake(Qt5DBus) >= 5.10.0
BuildRequires:  cmake(Qt5Gui) >= 5.10.0
BuildRequires:  cmake(Qt5Widgets) >= 5.10.0
BuildRequires:  cmake(Qt5Xml) >= 5.10.0

KTimeTracker tracks time spent on various tasks.


%setup -q

%cmake_kf5 -d build

%kf5_makeinstall -C build
%suse_update_desktop_file -r org.kde.ktimetracker Qt KDE Utility X-KDE-Utilities-PIM TimeUtility

%if %{with lang}
%find_lang %{name}

%doc %lang(en) %{_kf5_htmldir}/en/ktimetracker/

%if %{with lang}
%files lang -f %{name}.lang

openSUSE Build Service is sponsored by