# # This is an intention for me to NOT split libqof from gnotime for now, # since libqof should be a shared library of gnotime and gnucash, and # worth its own package later. But things are still in flux and not # ready for prime time yet. It will be done later. -- Abel # %define version 2.2.1 %define release 4mdk Summary: Desktop utility for tracking amount of time spent on projects Name: gnotime Version: %{version} Release: %{release} License: GPL Group: Graphical desktop/GNOME URL: http://gttr.sourceforge.net/ Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot Source: ftp://osdn.dl.sourceforge.net/pub/sourceforge/g/gt/gttr/%{name}-%{version}.tar.bz2 Patch0: %{name}-2.1.9-parallel-build.patch.bz2 BuildRequires: libgnomeui2-devel >= 2.0.3 BuildRequires: libglade2.0-devel >= 2.0.0 BuildRequires: libgtkhtml-3.1-devel BuildRequires: guile-devel BuildRequires: bison BuildRequires: scrollkeeper BuildRequires: flex BuildRequires: automake1.7 BuildRequires: perl-XML-Parser BuildRequires: intltool Prereq: GConf2 >= 2.3.3 Prereq: scrollkeeper %description The GNOME Time Tracker is a desktop utility for tracking the amount of time spent on projects, and generating configurable reports and invoices based on that time. It also makes for a good to-to list tracker and idea organizer, allowing to-do list items to be sorted even while providing ample notes-taking area associated with each item. GnoTime used to be known as GTT and was a part of the gnome-utils package. It has now been split out of that package, and ported to GNOME 2. %prep %setup -q %patch0 -p1 -b .parallel # needed by patch0 AUTOMAKE=automake-1.7 ACLOCAL=aclocal-1.7 autoreconf --force %build %configure2_5x %make %install rm -rf %{buildroot} GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 %makeinstall_std mkdir -p %{buildroot}%{_menudir} cat << _EOF_ > %{buildroot}%{_menudir}/%{name} ?package(%{name}): \ command="%{_bindir}/%{name}" \ icon="%{_datadir}/pixmaps/gnome-cromagnon.png" \ longtitle="To-Do List Organizer, Diary and Billing System" \ needs="x11" \ section="Office/Time Management" \ title="GnoTime Tracking Tool" \ startup_notify="yes" _EOF_ # remove devel stuff for now, until libqof has its own package rm -rf %{buildroot}%{_includedir} rm -f %{buildroot}%{_libdir}/*.{a,la,so} %define gettext_package %{name}-2.0 %{find_lang} %{gettext_package} --with-gnome --all-name %post /sbin/ldconfig %update_menus if [ -x %{_bindir}/scrollkeeper-update ]; then %{_bindir}/scrollkeeper-update -q; fi export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` for SCHEMA in gnotime; do gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/${SCHEMA}.schemas > /dev/null done %preun if [ "$1" -eq 0 ]; then export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` for SCHEMA in gnotime; do gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/${SCHEMA}.schemas > /dev/null done fi %postun /sbin/ldconfig %clean_menus if [ -x %{_bindir}/scrollkeeper-update ]; then %{_bindir}/scrollkeeper-update -q; fi %clean rm -rf %{buildroot} %files -f %{gettext_package}.lang %defattr(-,root,root) %doc AUTHORS ChangeLog COPYING NEWS README TODO %{_sysconfdir}/gconf/schemas/*.schemas %{_bindir}/* %{_datadir}/%{name} %{_datadir}/applications/*.desktop %{_datadir}/omf/* %{_libdir}/lib* %{_mandir}/man?/* %{_menudir}/%{name} %changelog * Thu Jan 06 2005 Frederic Crozat <fcrozat@mandrakesoft.com> 2.2.1-4mdk - Rebuild with latest howl - Fix menu * Sun Nov 21 2004 Abel Cheung <deaddog@mandrake.org> 2.2.1-3mdk - Fix BuildRequires * Wed Aug 18 2004 Abel Cheung <deaddog@deaddog.org> 2.2.1-2mdk - Rebuild * Sun May 30 2004 Abel Cheung <deaddog@deaddog.org> 2.2.1-1mdk - New version - Add missing doc * Fri Apr 23 2004 Abel Cheung <deaddog@deaddog.org> 2.1.9-1mdk - New version - Patch0: I want parallel build * Tue Aug 12 2003 Abel Cheung <maddog@linux.org.hk> 2.1.7-1mdk - First Mandrake spec