%define version 1.9.0 %define release %mkrel 3 Summary: Assists in recovery and prevention of Repetitive Strain Injury (RSI) Name: workrave Version: %{version} Release: %{release} License: GPL Group: Accessibility URL: http://www.workrave.org/ Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot Source0: http://prdownloads.sourceforge.net/workrave/%{name}-%{version}.tar.bz2 Patch1: workrave-1.9.1-compile.patch Patch2: workrave-1.9.0-gcc44.patch BuildRequires: doxygen BuildRequires: gtkmm2.4-devel BuildRequires: libGConf2-devel BuildRequires: libgnet2-devel BuildRequires: dbus-glib-devel BuildRequires: libxmu-devel BuildRequires: gstreamer0.10-devel BuildRequires: intltool BuildRequires: libgnomeuimm2.6-devel BuildRequires: gnome-panel-devel BuildRequires: libtool %description Workrave is a program that assists in the recovery and prevention of Repetitive Strain Injury (RSI). The program frequently alerts you to take micro-pauses, rest breaks and restricts you to your daily limit. The program can be run distributed on one or more PCs. All connected PCs share the same timing information. When you switch computers, you will still be asked to pause on time. %package gnome-applet Summary: Workrave GNOME applet Group: Accessibility Requires: %{name} = %{version}-%{release} Obsoletes: %{name}-applet <= 1.6.2 %description gnome-applet Workrave is a program that assists in the recovery and prevention of Repetitive Strain Injury (RSI). The program frequently alerts you to take micro-pauses, rest breaks and restricts you to your daily limit. The program can be run distributed on one or more PCs. All connected PCs share the same timing information. When you switch computers, you will still be asked to pause on time. This package contains applet specific for GNOME desktop environment. It is not necessary for basic functionality, but %{name} can cooperate more with GNOME environment, such as embedding in GNOME panel. %prep %setup -q %patch1 -p1 %patch2 -p0 touch ChangeLog %build NOCONFIGURE=yes ./autogen.sh %configure2_5x \ --enable-app-text=no \ --enable-distribution=yes \ --enable-gconf=yes \ --enable-dbus=yes \ --disable-rpath \ --disable-xml \ --enable-gnome \ --disable-kde %make %install rm -rf %{buildroot} %{makeinstall_std} # # icons # install -m0644 -D frontend/common/share/images/workrave-icon-huge.png %{buildroot}%{_liconsdir}/%{name}.png install -m0644 -D frontend/common/share/images/workrave-icon-large.png %{buildroot}%{_iconsdir}/%{name}.png install -m0644 -D frontend/common/share/images/workrave-icon-small.png %{buildroot}%{_miconsdir}/%{name}.png # # menu entry # mkdir -p %{buildroot}%{_datadir}/applications cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF [Desktop Entry] Name=Workrave Comment=Assists in recovery and prevention of Repetitive Strain Injury (RSI) Exec=%{_bindir}/%{name} Icon=%{name} Terminal=false Type=Application Categories=GNOME;GTK;X-MandrivaLinux-MoreApplications-Accessibility; StartupNotify=true EOF %find_lang %{name} %clean rm -rf %{buildroot} %if %mdkversion < 200900 %post %update_menus %endif %if %mdkversion < 200900 %postun %clean_menus %endif %files -f %{name}.lang %defattr(-,root,root) %doc AUTHORS COPYING NEWS README %config(noreplace) %{_sysconfdir}/sound/events/* %{_bindir}/* %{_datadir}/%{name} %{_datadir}/applications/* %{_datadir}/pixmaps/* %{_datadir}/sounds/* %{_iconsdir}/%{name}.png %{_liconsdir}/%{name}.png %{_miconsdir}/%{name}.png %{_datadir}/dbus-1/services/org.workrave.Workrave.service %files gnome-applet %defattr(-,root,root) %doc COPYING %{_libdir}/bonobo/servers/*.server %{_libexecdir}/workrave-applet %{_datadir}/gnome-2.0/ui/*.xml %changelog * Sat May 01 2010 Funda Wang <fwang@mandriva.org> 1.9.0-3mdv2010.1 + Revision: 541462 - fix desktop file * Fri Apr 30 2010 Funda Wang <fwang@mandriva.org> 1.9.0-2mdv2010.1 + Revision: 541318 - build with gcc4.4 + Thierry Vignaud <tv@mandriva.org> - rebuild * Fri Apr 17 2009 Funda Wang <fwang@mandriva.org> 1.9.0-1mdv2009.1 + Revision: 367825 - fix BR + Emmanuel Andry <eandry@mandriva.org> - disable kde for now + Nicolas Lécureuil <nlecureuil@mandriva.com> - Use kde macros for configure Add patch to fix kde build + Jérôme Soyer <saispo@mandriva.org> - New release 1.9.0 + Thierry Vignaud <tv@mandriva.org> - rebuild - rebuild - drop old menu - kill re-definition of %%buildroot on Pixel's request + Pixel <pixel@mandriva.com> - rpm filetriggers deprecates update_menus/update_scrollkeeper/update_mime_database/update_icon_cache/update_desktop_database/post_install_gconf_schemas + Olivier Blin <oblin@mandriva.com> - restore BuildRoot * Sun Oct 28 2007 Jérôme Soyer <saispo@mandriva.org> 1.8.5-1mdv2008.1 + Revision: 102786 - New release 1.8.5 + Thierry Vignaud <tv@mandriva.org> - kill desktop-file-validate's 'warning: key "Encoding" in group "Desktop Entry" is deprecated' * Fri Sep 08 2006 Frederic Crozat <fcrozat@mandriva.com> 1.8.3-2mdv2007.0 - Rebuild with latest dbus - migrate menu * Mon May 15 2006 Jerome Soyer <saispo@mandriva.org> 1.8.3-1mdk - New release 1.8.3 * Mon Feb 13 2006 Jerome Soyer <saispo@mandriva.org> 1.8.2-1mdk - New release 1.8.2 * Mon Nov 28 2005 Laurent MONTEL <lmontel@mandriva.com> 1.8.0-3 - Fix compile under x86_64 * Mon Nov 28 2005 Laurent MONTEL <lmontel@mandriva.com> 1.8.0-2 - Don't remove file when we don't like them... Fix bug #19503 - Fix configure test, I don't know how it could work. * Fri Jul 22 2005 Abel Cheung <deaddog@mandriva.org> 1.8.0-1mdk - New version - Rename "applet" subpackage to "gnome-applet" since KDE support is also available now - Remove distributed info (gnet2) build option, always turn it on - Enable GNOME/KDE applet by default - Use bundled icon * Sat Feb 12 2005 Abel Cheung <deaddog@mandrake.org> 1.6.2-1mdk - New version * Thu Jun 17 2004 Per Ãyvind Karlsen <peroyvind@linux-mandrake.com> 1.6.1-1mdk - 1.6.1 - drop P0 * Sun Nov 16 2003 Abel Cheung <deaddog@deaddog.org> 1.4.1-2mdk - Rebuild * Fri Nov 07 2003 Abel Cheung <deaddog@deaddog.org> 1.4.1-1mdk - 1.4.1 - Patch0: Add missing include, to fix compilation against newest gtkmm