rsibreak/rsibreak.spec
Sascha Peilicke a99f5c7952 Accepting request 80164 from KDE:Distro:Factory
few fixes for RPMLINT warnings and clean up the specfile formatting (forwarded request 80159 from mlin7442)

OBS-URL: https://build.opensuse.org/request/show/80164
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/rsibreak?expand=0&rev=20
2011-08-31 08:59:18 +00:00

98 lines
3.1 KiB
RPMSpec

#
# 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 http://bugs.opensuse.org/
#
# norootforbuild
Name: rsibreak
Version: 0.11
Release: 1
License: GPLv2+
Summary: Assists in the Recovery and Prevention of Repetitive Strain Injury
Url: http://www.kde-apps.org/content/show.php?content=29725
Group: Productivity/Other
%define tar_version 0.11
Source: rsibreak-%{tar_version}.tar.bz2
BuildRequires: kdebase4-workspace-devel
BuildRequires: fdupes
Provides: kde4-rsibreak = %{version}
Obsoletes: kde4-rsibreak < %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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.
%prep
%setup -n rsibreak-%{tar_version} -q
%build
%cmake_kde4 -d build
%make_jobs
%install
cd build
%make_install
cd ..
%find_lang %{name} --all-name
%if 0%{?suse_version} < 1120
# work-around bnc#457908
for i in es et fr nl pt sv uk; do mkdir %{buildroot}%{_datadir}/doc/kde/HTML/$i/common;done
%endif
%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
%clean
rm -rf %{buildroot}
%files -f %{name}.lang
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING
%doc %lang(en) %{_datadir}/doc/kde/HTML/en/rsibreak
%_kde_share_dir/apps/rsibreak
%{_bindir}/rsibreak
%{_datadir}/applications/kde4/rsibreak.desktop
%{_datadir}/dbus-1/interfaces/org.rsibreak.rsiwidget.xml
%{_datadir}/icons/hicolor/*/actions/*
%{_datadir}/icons/hicolor/*x*/actions/rsibreak*.png
%{_datadir}/icons/hicolor/*x*/apps/rsibreak.png
%{_datadir}/autostart/rsibreak.desktop
%{_libdir}/kde4/plasma_applet_rsibreak.so
%{_libdir}/kde4/plasma_engine_rsibreak.so
%{_datadir}/kde4/apps/desktoptheme/default/widgets/rsibreak.svg
%{_datadir}/kde4/services/plasma-applet-rsibreak.desktop
%{_datadir}/kde4/services/plasma-engine-rsibreak.desktop
%if 0%{?suse_version} < 1120
# work-around bnc#457911
%dir %{_datadir}/doc/kde/HTML/*
%endif
%if 0%{?suse_version} < 1120
%dir %{_datadir}/locale/hne
%dir %{_datadir}/locale/hne/LC_MESSAGES
%endif
%changelog