e3c8269008
- Recommend the -lang package - Removed test for obsolete openSUSE version (fix for RPMLINT warning) - Split doc package (fix for RPMLINT warning) - Split lang package (fix for RPMLINT warning) - Cleaned up spec file formatting OBS-URL: https://build.opensuse.org/request/show/83646 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/rsibreak?expand=0&rev=22
100 lines
3.0 KiB
RPMSpec
100 lines
3.0 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/
|
|
#
|
|
|
|
|
|
|
|
Name: rsibreak
|
|
Version: 0.11
|
|
Release: 7
|
|
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
|
|
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
|
|
%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.
|
|
|
|
%package doc
|
|
Summary: Documentation for %{name}
|
|
Group: Productivity/Other
|
|
Requires: %{name} = %{version}
|
|
|
|
%description doc
|
|
This package provides documentation for %{name}
|
|
|
|
%lang_package
|
|
%prep
|
|
%setup -n rsibreak-%{version} -q
|
|
|
|
%build
|
|
%cmake_kde4 -d build
|
|
%make_jobs
|
|
|
|
%install
|
|
cd build
|
|
%make_install
|
|
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
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
%files doc
|
|
%defattr(-,root,root)
|
|
%doc %{_kde4_htmldir}
|
|
|
|
%files lang -f %{name}.lang
|
|
%defattr(-,root,root)
|
|
%exclude %{_kde4_htmldir}
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc AUTHORS ChangeLog COPYING
|
|
%{_datadir}/autostart/rsibreak.desktop
|
|
%{_datadir}/dbus-1/interfaces/org.rsibreak.rsiwidget.xml
|
|
%{_kde4_appsdir}/rsibreak
|
|
%{_kde4_appsdir}/desktoptheme/default/widgets/rsibreak.svg
|
|
%{_kde4_applicationsdir}/rsibreak.desktop
|
|
%{_kde4_bindir}/rsibreak
|
|
%{_kde4_iconsdir}/hicolor/*/*/*
|
|
%{_kde4_modulesdir}/plasma_applet_rsibreak.so
|
|
%{_kde4_modulesdir}/plasma_engine_rsibreak.so
|
|
%{_kde4_servicesdir}/plasma-applet-rsibreak.desktop
|
|
%{_kde4_servicesdir}/plasma-engine-rsibreak.desktop
|
|
|
|
%changelog
|