File rsibreak.spec of Package rsibreak

#
# spec file for package rsibreak (Version 0.9.0)
#
# Copyright (c) 2008 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:        GPL v2 or later
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.9.0
Release:        1
%define tar_version 0.9.0
Source:         rsibreak-%tar_version.tar.bz2
Patch0:         disable-plasma-dep.diff
Patch1:         fix-build.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
%patch0
%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

%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

%changelog
* Fri Nov 28 2008 stbinner@suse.de
- update to 0.9.0 final: only version bump and translation updates
* Sun Nov 09 2008 stbinner@suse.de
- fix build on ppc
* Wed Nov 05 2008 dmueller@suse.de
- add missing runtime dependencies
* Tue Oct 28 2008 wstephenson@suse.de
- update to 0.9.0-beta5
  * Install autostart file in correct location
  * Fix plasma applet
  * Respect 'presentation mode' by monitoring the freedesktop.org
  screensaver setting
  * Try to detect waking up from hibernation so timers can be reset
  * Fix welcome screen
  * Fix bug where timer did not count down in a slideshow
  * Fix build on non-x86 platforms
* Mon Oct 20 2008 stbinner@suse.de
- fix build on archs without mmx
* Thu Oct 09 2008 wstephenson@suse.de
- update to 0.9.0-beta4
  * Fix bugs in config dialog layouts
* Thu Jun 26 2008 dmueller@suse.de
- update to 0.9.0-beta3
  * porting to KDE4
* Sun Oct 15 2006 stbinner@suse.de
- Update to version 0.8
  * Replaced DCOP dialog with a more flexible and standardized
  interface to attach events to breaks
  * Show where RSIBreak is located in the tray when started a
  second time.
  * RSIBreak now has a manual.
  * Option to only reset timers when idle for the duration of a
  long break.
  * Skip button in relax popup
  * Xinerama fixes
  Images smaller than 1/3 of the screen will not be used for
  the slideshow
  * Some tiny optimizations and bugfixes
* Tue Jun 20 2006 stbinner@suse.de
- Update to version 0.7.1
  * New icons from Lee Olson.
  * Usability review from Tina Trillitzsch.
  * Two new DCOP calls: doTinyBreak and doBigBreak.
  * New statistics: percentage of activity during the last minute,
  last hour and last 6 hours.
  * Inform the user when the next break will be a big break.
  * Ability to make DCOP calls to the start and end of breaks.
  * Possibility to use KDCOP to set that up.
  * Possibility to break at fixed times.
* Tue May 30 2006 adrian@suse.de
- fix build for < 10.1
* Tue Apr 11 2006 stbinner@suse.de
- Update to version 0.6
* Wed Apr 05 2006 stbinner@suse.de
- Initial package (version 0.6 rc1)
openSUSE Build Service is sponsored by