File rsibreak.spec of Package rsibreak

# spec file for package rsibreak
# Copyright (c) 2011 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

# norootforbuild

Name:           rsibreak
BuildRequires:  kdebase4-workspace-devel
License:        GPLv2+
Group:          Productivity/Other
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Summary:        Assists in the Recovery and Prevention of Repetitive Strain Injury
Version:        0.11
Release:        1
%define tar_version 0.11
Source:         rsibreak-%tar_version.tar.bz2
Provides:       kde4-rsibreak = 0.9.0
Obsoletes:      kde4-rsibreak <= 0.9.0

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.

    Tom Albers <>
    Bram Schoenmakers <>

%setup -n rsibreak-%tar_version -q

  %cmake_kde4 -d build

  cd build
  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

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig


%files -f %name.lang
%doc %lang(en) /usr/share/doc/kde/HTML/en/rsibreak
%if %suse_version < 1120  
# work-around bnc#457911
%dir /usr/share/doc/kde/HTML/*
%if %suse_version < 1120
%dir /usr/share/locale/hne
%dir /usr/share/locale/hne/LC_MESSAGES

openSUSE Build Service is sponsored by