[rsibreak] 0.11-7

Rex Dieter rdieter at fedoraproject.org
Thu Jan 24 11:52:14 UTC 2013


commit edcb052d6875dbcaec10b147aaa0d02870eb0090
Author: Rex Dieter <rdieter at math.unl.edu>
Date:   Thu Jan 24 05:52:09 2013 -0600

    0.11-7
    
    - fix/update url (#896176)
    - fix/update icon scriptlets
    - .spec cosmetics

 rsibreak.spec |   50 +++++++++++++++++++++++++++-----------------------
 1 files changed, 27 insertions(+), 23 deletions(-)
---
diff --git a/rsibreak.spec b/rsibreak.spec
index 41767a5..883be43 100644
--- a/rsibreak.spec
+++ b/rsibreak.spec
@@ -1,15 +1,14 @@
 Name:           rsibreak
-Version:        0.11
-Release:        6%{?dist}
 Summary:        A small utility which bothers you at certain intervals
-Group:          Amusements/Graphics
+Version:        0.11
+Release:        7%{?dist}
+
 License:        GPLv2+
-URL:            http://www.rsibreak.org
+URL:            https://projects.kde.org/projects/unmaintained/rsibreak
 Source0:        http://rsibreak.org/files/rsibreak-%{version}.tar.bz2
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:  kdelibs4-devel desktop-file-utils gettext
-BuildRequires:  plasma-devel >= 4.4
 
 %description
 RSIBreak is a small utility which bothers you at certain intervals. The
@@ -18,9 +17,11 @@ use the breaks to stretch out or do the dishes. The aim of this utility
 is to let you know when it is time to have a break from your computer.
 This can help people to prevent Repetive Strain Injury.
 
+
 %prep
 %setup -q
 
+
 %build
 mkdir -p %{_target_platform}
 pushd %{_target_platform}
@@ -29,48 +30,51 @@ popd
 
 make %{?_smp_mflags} -C %{_target_platform}
 
+
 %install
-%{__rm} -rf %{buildroot}
 make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
 
 %find_lang %{name} --with-kde
 %find_lang plasma_applet_%{name}
 cat plasma_applet_%{name}.lang >> %{name}.lang
 
-# validate desktop file
-desktop-file-install --vendor ""                          \
-        --dir %{buildroot}%{_datadir}/applications/kde4   \
-        %{buildroot}%{_datadir}/applications/kde4/%{name}.desktop
+
+%check
+desktop-file-validate %{buildroot}%{_datadir}/applications/kde4/rsibreak.desktop
+
 
 %post
-xdg-icon-resource forceupdate --theme hicolor 2> /dev/null || :
+touch --no-create %{_kde4_iconsdir}/hicolor &> /dev/null || :
 
-%postun
-xdg-icon-resource forceupdate --theme hicolor 2> /dev/null || :
+%posttrans
+gtk-update-icon-cache %{_kde4_iconsdir}/hicolor &> /dev/null || :
 
-%clean
-rm -rf $RPM_BUILD_ROOT
+%postun
+if [ $1 -eq 0 ] ; then
+touch --no-create %{_kde4_iconsdir}/hicolor &> /dev/null || :
+gtk-update-icon-cache %{_kde4_iconsdir}/hicolor &> /dev/null || :
+fi
 
 %files -f %{name}.lang
-%defattr(-,root,root,-)
 %doc AUTHORS ChangeLog COPYING NEWS TODO
 %{_kde4_bindir}/rsibreak
 %{_kde4_datadir}/autostart/rsibreak.desktop
 %{_kde4_datadir}/applications/kde4/rsibreak.desktop
 %{_kde4_datadir}/dbus-1/interfaces/org.rsibreak.rsiwidget.xml
-%{_kde4_datadir}/icons/hicolor/*/apps/rsibreak*.png
-%{_kde4_datadir}/icons/hicolor/*/actions/rsibreak*.png
-%{_kde4_datadir}/icons/hicolor/32x32/actions/duringbreaks.png 
-%{_kde4_datadir}/icons/hicolor/32x32/actions/timings.png 
-%{_kde4_datadir}/kde4/apps/rsibreak/rsibreak.notifyrc
-%{_kde4_datadir}/kde4/apps/desktoptheme/default/widgets/rsibreak.svg 
+%{_kde4_iconsdir}/hicolor/*/*/*
+%{_kde4_appsdir}/rsibreak/
+%{_kde4_appsdir}/desktoptheme/default/widgets/rsibreak.*
 %{_kde4_datadir}/kde4/services/plasma-engine-rsibreak.desktop           
 %{_kde4_datadir}/kde4/services/plasma-applet-rsibreak.desktop           
-%{_kde4_datadir}/doc/HTML/*/rsibreak
 %{_kde4_libdir}/kde4/plasma_engine_rsibreak.so                         
 %{_kde4_libdir}/kde4/plasma_applet_rsibreak.so                         
 
 %changelog
+* Thu Jan 24 2013 Rex Dieter <rdieter at fedoraproject.org> - 0.11-7
+- fix/update url (#896176)
+- fix/update icon scriptlets
+- .spec cosmetics
+
 * Sat Jul 21 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.11-6
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
 


More information about the scm-commits mailing list