23d3853269
Copy from KDE:KDE4:Factory:Desktop/rsibreak based on submit request 32627 from user llunak OBS-URL: https://build.opensuse.org/request/show/32627 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/rsibreak?expand=0&rev=13
102 lines
2.9 KiB
RPMSpec
102 lines
2.9 KiB
RPMSpec
#
|
|
# spec file for package rsibreak (Version 0.10)
|
|
#
|
|
# Copyright (c) 2010 SUSE LINUX Products 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/
|
|
#
|
|
|
|
# norootforbuild
|
|
|
|
|
|
Name: rsibreak
|
|
BuildRequires: kdebase4-workspace-devel
|
|
License: GPLv2+
|
|
Url: http://www.kde-apps.org/content/show.php?content=29725
|
|
Group: Productivity/Other
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
Summary: Assists in the Recovery and Prevention of Repetitive Strain Injury
|
|
Version: 0.10
|
|
Release: 2
|
|
%define tar_version 0.10
|
|
Source: rsibreak-%tar_version.tar.bz2
|
|
Patch1: gcc-45.diff
|
|
Provides: kde4-rsibreak = 0.9.0
|
|
Obsoletes: kde4-rsibreak <= 0.9.0
|
|
%kde4_runtime_requires
|
|
|
|
%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.
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Tom Albers <tomalbers@kde.nl>
|
|
Bram Schoenmakers <bramschoenmakers@kde.nl>
|
|
|
|
%prep
|
|
%setup -n rsibreak-%tar_version -q
|
|
%patch1
|
|
|
|
%build
|
|
%cmake_kde4 -d build
|
|
%make_jobs
|
|
|
|
%install
|
|
cd build
|
|
%makeinstall
|
|
cd ..
|
|
%suse_update_desktop_file -G "RSI Prevention" rsibreak TimeUtility
|
|
%find_lang %name --all-name
|
|
%if %suse_version < 1120
|
|
# work-around bnc#457908
|
|
for i in es et fr nl pt sv uk; do mkdir $RPM_BUILD_ROOT/usr/share/doc/kde/HTML/$i/common;done
|
|
%endif
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%files -f %name.lang
|
|
%defattr(-,root,root)
|
|
%doc AUTHORS ChangeLog COPYING
|
|
%doc %lang(en) /usr/share/doc/kde/HTML/en/rsibreak
|
|
%_kde_share_dir/apps/rsibreak
|
|
/usr/bin/rsibreak
|
|
/usr/share/applications/kde4/rsibreak.desktop
|
|
/usr/share/dbus-1/interfaces/org.rsibreak.rsiwidget.xml
|
|
/usr/share/icons/hicolor/*/actions/*
|
|
/usr/share/icons/hicolor/*x*/actions/rsibreak*.png
|
|
/usr/share/icons/hicolor/*x*/apps/rsibreak.png
|
|
/usr/share/autostart/rsibreak.desktop
|
|
/usr/%_lib/kde4/plasma_applet_rsibreak.so
|
|
/usr/%_lib/kde4/plasma_engine_rsibreak.so
|
|
/usr/share/kde4/apps/desktoptheme/default/widgets/rsibreak.svg
|
|
/usr/share/kde4/services/plasma-applet-rsibreak.desktop
|
|
/usr/share/kde4/services/plasma-engine-rsibreak.desktop
|
|
%if %suse_version < 1120
|
|
# work-around bnc#457911
|
|
%dir /usr/share/doc/kde/HTML/*
|
|
%endif
|
|
%if %suse_version < 1120
|
|
%dir /usr/share/locale/hne
|
|
%dir /usr/share/locale/hne/LC_MESSAGES
|
|
%endif
|
|
|
|
%changelog
|