SHA256
1
0
forked from pool/rsibreak

Accepting request 83646 from KDE:Distro:Factory

- 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
This commit is contained in:
Lars Vogdt 2011-09-20 07:36:21 +00:00 committed by Git OBS Bridge
parent a7a4c84686
commit e3c8269008
2 changed files with 47 additions and 32 deletions

View File

@ -1,3 +1,16 @@
-------------------------------------------------------------------
Mon Sep 19 18:25:57 UTC 2011 - idonmez@suse.com
- Recommend the -lang package
-------------------------------------------------------------------
Tue Sep 13 12:41:10 UTC 2011 - toddrme2178@gmail.com
- 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
-------------------------------------------------------------------
Mon Aug 29 09:59:19 UTC 2011 - mlin@suse.com

View File

@ -15,7 +15,6 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: rsibreak
@ -25,12 +24,13 @@ 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
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
@ -39,8 +39,17 @@ 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-%{tar_version} -q
%setup -n rsibreak-%{version} -q
%build
%cmake_kde4 -d build
@ -51,47 +60,40 @@ you to take a break now and then.
%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
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%clean
rm -rf %{buildroot}
%files -f %{name}.lang
%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
%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
%{_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