Name: almanah Version: 0.6.1 Release: 1%{?dist} Summary: Application for keeping an encrypted diary Group: Applications/Productivity License: GPLv3+ URL: http://tecnocode.co.uk/projects/almanah/ Source0: http://tecnocode.co.uk/downloads/%{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: gettext BuildRequires: gpgme-devel BuildRequires: sqlite-devel BuildRequires: gtkspell-devel BuildRequires: GConf2-devel BuildRequires: intltool BuildRequires: desktop-file-utils BuildRequires: evolution-devel BuildRequires: seahorse-devel Requires(pre): GConf2 Requires(post): GConf2 Requires(preun):GConf2 %description Almanah Diary is a small application to ease the management of an encrypted personal diary. It's got good editing abilities, including text formatting and printing. Evolution tasks and appointments will be listed to ease the creation of diary entries related to them. At the same time, you can create diary entries using multiple events. %prep %setup -q chmod -x README AUTHORS NEWS ChangeLog src/{main,interface}.{c,h} sed -e 's/_//' \ -e 's/=Diary/=Almanah/' \ -i data/%{name}.desktop.in %build %configure --enable-encryption --enable-spell-checking make %install rm -rf %{buildroot} export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 make install DESTDIR=%{buildroot} %find_lang %{name} %clean rm -rf %{buildroot} %pre if [ "$1" -gt 1 ]; then export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` gconftool-2 --makefile-uninstall-rule \ %{_sysconfdir}/gconf/schemas/%{name}.schemas >/dev/null || : fi %post touch --no-create %{_datadir}/icons/hicolor export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` gconftool-2 --makefile-install-rule \ %{_sysconfdir}/gconf/schemas/%{name}.schemas > /dev/null || : %posttrans gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %postun if [ "$1" -eq 0 ] ; then touch --no-create %{_datadir}/icons/hicolor &>/dev/null gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : fi %preun if [ "$1" -eq 0 ]; then export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` gconftool-2 --makefile-uninstall-rule \ %{_sysconfdir}/gconf/schemas/%{name}.schemas > /dev/null || : fi %files -f %{name}.lang %defattr(-,root,root,-) %doc AUTHORS COPYING NEWS README ChangeLog %{_bindir}/%{name} %{_datadir}/%{name} %{_datadir}/icons/hicolor/*/apps/%{name}.png %{_datadir}/applications/%{name}.desktop %config(noreplace) %{_sysconfdir}/gconf/schemas/%{name}.schemas %changelog * Fri Nov 27 2009 Andreas Osowski - 0.5.0-1 - Update to the new release * Mon Jul 14 2008 Jean-François Martin - 0.4.0-2 - Fix rpmlint warnings - Include ChangeLog - Fix icon name in desktop file * Sat Jul 12 2008 Jean-François Martin - 0.4.0-1 - Change to the new name - Remove GConf scriplets * Mon Jun 23 2008 Jean-François Martin 0.3.1-1 - Update to the new release - Drop the patch (fixed upstream) * Fri Jun 20 2008 Jean-François Martin 0.3-1 - Update to the new release * Wed May 21 2008 Jean-François Martin 0.2-1 - First RPM release.