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

Name:           rsibreak
Version:        0.11
Release:        7
License:        GPL-2.0+
Summary:        Assists in the Recovery and Prevention of Repetitive Strain Injury
Group:          Productivity/Other
Source:         rsibreak-%{version}.tar.bz2
BuildRequires:  fdupes
BuildRequires:  kdebase4-workspace-devel
Provides:       kde4-rsibreak = %{version}
Obsoletes:      kde4-rsibreak < %{version}
Suggests:       %{name}-doc = %{version}
Recommends:     %{name}-lang = %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

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.

%package doc
Summary:        Documentation for %{name}
Group:          Productivity/Other
Requires:       %{name} = %{version}

%description doc
This package provides documentation for %{name}

%setup -n rsibreak-%{version} -q

  %cmake_kde4 -d build

  cd build
  cd ..
  %find_lang %{name} --all-name
  %suse_update_desktop_file -G "RSI Prevention" rsibreak TimeUtility
  %suse_update_desktop_file %{buildroot}%{_kde4_servicesdir}/plasma-applet-rsibreak.desktop
  %suse_update_desktop_file %{buildroot}%{_kde4_servicesdir}/plasma-engine-rsibreak.desktop
  %suse_update_desktop_file %{buildroot}%{_datadir}/autostart/rsibreak.desktop
  %fdupes -s %{buildroot}%{_datadir}

%post   -p /sbin/ldconfig

%postun -p /sbin/ldconfig

rm -rf %{buildroot}

%files doc
%doc %{_kde4_htmldir}

%files lang -f %{name}.lang
%exclude %{_kde4_htmldir}


openSUSE Build Service is sponsored by