File rsibreak.spec of Package rsibreak

#
# spec file for package rsibreak
#
# Copyright (c) 2020 SUSE LINUX 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/
#


%define base_ver 0.12
Name:           rsibreak
Version:        0.12.13
Release:        0
Summary:        Repetetive Strain Injury recovery and prevention assistance utility
License:        GPL-2.0-or-later
Group:          Productivity/Other
URL:            https://userbase.kde.org/RSIBreak
Source0:        https://download.kde.org/stable/rsibreak/%{base_ver}/rsibreak-%{version}.tar.xz
BuildRequires:  extra-cmake-modules
BuildRequires:  fdupes
BuildRequires:  update-desktop-files
BuildRequires:  cmake(KF5Config)
BuildRequires:  cmake(KF5ConfigWidgets)
BuildRequires:  cmake(KF5Crash)
BuildRequires:  cmake(KF5DBusAddons)
BuildRequires:  cmake(KF5DocTools)
BuildRequires:  cmake(KF5I18n)
BuildRequires:  cmake(KF5IconThemes)
BuildRequires:  cmake(KF5IdleTime)
BuildRequires:  cmake(KF5Notifications)
BuildRequires:  cmake(KF5NotifyConfig)
BuildRequires:  cmake(KF5TextWidgets)
BuildRequires:  cmake(KF5WindowSystem)
BuildRequires:  cmake(KF5XmlGui)
BuildRequires:  cmake(Qt5DBus) >= 5.10.0
BuildRequires:  cmake(Qt5Test) >= 5.10.0
Requires:       hicolor-icon-theme
Recommends:     %{name}-lang = %{version}
Obsoletes:      %{name}-doc < %{version}
# REMOVE AFTER Leap 42.1 is out of scope
Provides:       kde4-rsibreak = %{version}
Obsoletes:      kde4-rsibreak < %{version}

%description
Repetitive Strain Injury is an illness which can occur as a result of
working with a mouse and keyboard. This utility can be used to remind
you to take a break now and then.

%lang_package

%prep
%setup -q

%build
%cmake_kf5 -d build
%make_jobs

%install
%kf5_makeinstall -C build
%suse_update_desktop_file -G "RSI Prevention" org.kde.rsibreak Qt KDE TimeUtility
%find_lang %{name} --all-name
%kf5_find_htmldocs
%fdupes -s %{buildroot}%{_kf5_sharedir}

%files lang -f %{name}.lang

%files
%license COPYING COPYING.DOC
%doc AUTHORS ChangeLog NEWS
%{_kf5_configdir}/autostart/rsibreak_autostart.desktop
%{_kf5_dbusinterfacesdir}/org.rsibreak.rsiwidget.xml
%{_kf5_applicationsdir}/org.kde.rsibreak.desktop
%{_kf5_appstreamdir}/org.kde.rsibreak.appdata.xml
%{_kf5_notifydir}/rsibreak.notifyrc
%{_kf5_bindir}/rsibreak
%{_kf5_iconsdir}/hicolor/*/*/*
%doc %{_kf5_htmldir}/en/

%changelog
openSUSE Build Service is sponsored by