rsibreak/rsibreak.spec
Luca Beltrame 38bb1affba Accepting request 575827 from home:wolfi323:branches:KDE:Extra
- Update to 0.12.8:
  * Translation improvements
  * Free the user if hibernation happened while the countdown was
    shown (kde#384783)
  * Slideshow: add the ability to select how to keep aspect ratio
    for image
  * Add pause skip threshold

OBS-URL: https://build.opensuse.org/request/show/575827
OBS-URL: https://build.opensuse.org/package/show/KDE:Extra/rsibreak?expand=0&rev=8
2018-02-12 22:49:54 +00:00

96 lines
3.0 KiB
RPMSpec

#
# spec file for package rsibreak
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
%define base_ver 0.12
Name: rsibreak
Version: 0.12.8
Release: 0
Summary: Assists in the Recovery and Prevention of Repetitive Strain Injury
License: GPL-2.0+
Group: Productivity/Other
Url: https://userbase.kde.org/RSIBreak
Source0: http://download.kde.org/stable/rsibreak/%{base_ver}/rsibreak-%{version}.tar.xz
BuildRequires: extra-cmake-modules
BuildRequires: fdupes
BuildRequires: kconfig-devel
BuildRequires: kconfigwidgets-devel
BuildRequires: kcrash-devel
BuildRequires: kdbusaddons-devel
BuildRequires: kdoctools-devel
BuildRequires: ki18n-devel
BuildRequires: kiconthemes-devel
BuildRequires: kidletime-devel
BuildRequires: knotifications-devel
BuildRequires: knotifyconfig-devel
BuildRequires: ktextwidgets-devel
BuildRequires: kwindowsystem-devel
BuildRequires: kxmlgui-devel
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(Qt5Core) >= 5.3.0
BuildRequires: pkgconfig(Qt5DBus) >= 5.3.0
BuildRequires: pkgconfig(Qt5Gui) >= 5.3.0
BuildRequires: pkgconfig(Qt5Test) >= 5.3.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}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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" rsibreak Qt KDE TimeUtility
%find_lang %{name} --all-name
%fdupes -s %{buildroot}%{_datadir}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files lang -f %{name}.lang
%defattr(-,root,root)
%doc %{_kf5_htmldir}
%exclude %{_kf5_htmldir}/en/
%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING COPYING.DOC NEWS
%{_sysconfdir}/xdg/autostart/rsibreak_autostart.desktop
%{_datadir}/dbus-1/interfaces/org.rsibreak.rsiwidget.xml
%{_kf5_applicationsdir}/rsibreak.desktop
%{_kf5_notifydir}/rsibreak.notifyrc
%{_kf5_bindir}/rsibreak
%{_kf5_iconsdir}/hicolor/*/*/*
%doc %{_kf5_htmldir}/en/
%changelog