Blob Blame History Raw

Name:           rsibreak
Version:        0.9.0
Release:        3%{?dist}
Summary:        A small utility which bothers you at certain intervals
Group:          Amusements/Graphics
License:        GPLv2+
URL:            http://www.rsibreak.org
Source0:        http://rsibreak.org/files/rsibreak-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

# note, build fails with kde >= 4.2, since plasma moved into kdelibs and
# CMakeLists.txt macros/usage need updating
BuildRequires:  kdelibs4-devel desktop-file-utils gettext
BuildRequires:  plasma-devel

%description
RSIBreak is a small utility which bothers you at certain intervals. The
interval and duration of two different timers can be configured. You can
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}
%{cmake_kde4} ..
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

%post
xdg-icon-resource forceupdate --theme hicolor 2> /dev/null || :

%postun
xdg-icon-resource forceupdate --theme hicolor 2> /dev/null || :

%clean
rm -rf $RPM_BUILD_ROOT

%files -f %{name}.lang
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING NEWS TODO
# These could/should be updated to %%_kde4_* equivalents, 
# see /etc/rpm/macros.kde4 -- Rex
%{_bindir}/rsibreak
%{_datadir}/autostart/rsibreak.desktop
%{_datadir}/applications/kde4/rsibreak.desktop
%{_datadir}/dbus-1/interfaces/org.rsibreak.rsiwidget.xml
%{_datadir}/icons/hicolor/*/apps/rsibreak*.png
%{_datadir}/icons/hicolor/*/actions/rsibreak*.png
%{_datadir}/icons/hicolor/32x32/actions/duringbreaks.png                                                                                                                          
%{_datadir}/icons/hicolor/32x32/actions/timings.png 
%{_datadir}/kde4/apps/rsibreak/rsibreak.notifyrc
%{_datadir}/kde4/apps/desktoptheme/default/widgets/rsibreak.svg 
%{_datadir}/kde4/services/plasma-engine-rsibreak.desktop           
%{_datadir}/kde4/services/plasma-applet-rsibreak.desktop           
%{_libdir}/kde4/plasma_engine_rsibreak.so                         
%{_libdir}/kde4/plasma_applet_rsibreak.so                         

%changelog
* Wed Jan 14 2009 Rex Dieter <rdieter@fedoraproject.org> 0.9.0-3
- fix %%find_lang usage
- BR: kdelibs4-devel plasma-devel

* Fri Nov 28 2008 Roland Wolters <wolters.liste@gmx.net> 0.9.0-2
- update to version 0.9 featuring a KDE 4 version

* Fri Feb 22 2008 Roland Wolters <wolters.liste@gmx.net> 0.8.0-5
- rebuild after dbug bug has been fixed in devel branch

* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.8.0-4
- Autorebuild for GCC 4.3

* Sat Dec 01 2007 Roland Wolters <wolters.liste@gmx.net> - 0.8.0-3
- changed build require from kdelibs-devel to kdelibs3-devel
- removed qt-devel dependency, kdelibs3-devel dep should be enough

* Thu Aug 16 2007 Roland Wolters <wolters.liste@gmx.net> - 0.8.0-2
- licence tag corrected

* Fri Oct 13 2006 Roland Wolters <wolters.liste@gmx.net> 0.8.0-1
- update to version 0.8

* Tue Jun 20 2006 Roland Wolters <wolters.liste@gmx.net> 0.7.1-3
- mass rebuild of devel branch

* Tue Jun 20 2006 Roland Wolters <wolters.liste@gmx.net> 0.7.1-1
- update to version 0.7.1
- e-mail-address of packager corrected

* Tue Apr 10 2006 Roland Wolters <rolandwolters@web.de> 0.6.0-1
- initial build