b714f23
Name:           gnote
b714f23
Version:        0.1.1 
cce7fcd
Release:        4%{?dist}
b714f23
Summary:        Note-taking application
b714f23
Group:          User Interface/Desktops
b714f23
License:        GPLv3+
b714f23
URL:            http://live.gnome.org/Gnote
b714f23
Source0:        http://ftp.gnome.org/pub/GNOME/sources/gnote/0.1/gnote-0.1.1.tar.bz2
b714f23
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
b714f23
b714f23
BuildRequires:  gtkmm24-devel libxml++-devel GConf2-devel intltool boost-devel e2fsprogs-devel
cce7fcd
BuildRequires:  desktop-file-utils
b714f23
Requires(pre)  :GConf2
b714f23
Requires(post) :GConf2
b714f23
Requires(preun):GConf2
b714f23
b714f23
%description
b714f23
Gnote is a desktop note-taking application which is simple and easy to use.
b714f23
It lets you organize your notes intelligently by allowing you to easily link
b714f23
ideas together with Wiki style interconnects. It is a port of Tomboy to C++ 
cce7fcd
and consumes less resources.
b714f23
b714f23
%prep
b714f23
%setup -q
b714f23
b714f23
%build
b714f23
%configure --disable-schemas-install
b714f23
V=1 make %{?_smp_mflags}
b714f23
b714f23
%install
b714f23
rm -rf $RPM_BUILD_ROOT
b714f23
make install DESTDIR=$RPM_BUILD_ROOT
b714f23
b714f23
desktop-file-install  \
b714f23
--dir=%{buildroot}%{_datadir}/applications \
b714f23
%{buildroot}/%{_datadir}/applications/gnote.desktop
b714f23
b714f23
%clean
b714f23
rm -rf $RPM_BUILD_ROOT
b714f23
b714f23
%pre
b714f23
if [ "$1" -gt 1 ]; then
b714f23
    export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
b714f23
    gconftool-2 --makefile-uninstall-rule \
b714f23
      %{_sysconfdir}/gconf/schemas/gedit.schemas > /dev/null || :
b714f23
fi
b714f23
b714f23
%post
b714f23
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
b714f23
gconftool-2 --makefile-install-rule \
b714f23
    %{_sysconfdir}/gconf/schemas/gnote.schemas > /dev/null
b714f23
touch --no-create %{_datadir}/icons/hicolor
b714f23
if [ -x /usr/bin/gtk-update-icon-cache ]; then
b714f23
  gtk-update-icon-cache -q %{_datadir}/icons/hicolor
b714f23
fi
b714f23
b714f23
%preun
b714f23
if [ "$1" -eq 0 ]; then
b714f23
  export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
b714f23
  gconftool-2 --makefile-uninstall-rule \
b714f23
      %{_sysconfdir}/gconf/schemas/gnote.schemas >/dev/null;
b714f23
fi
b714f23
b714f23
%postun
b714f23
touch --no-create %{_datadir}/icons/hicolor
b714f23
if [ -x /usr/bin/gtk-update-icon-cache ]; then
b714f23
  gtk-update-icon-cache -q %{_datadir}/icons/hicolor
b714f23
fi
b714f23
b714f23
%files 
b714f23
%defattr(-,root,root,-)
b714f23
%doc COPYING README TODO NEWS AUTHORS
b714f23
%{_bindir}/gnote
b714f23
%{_mandir}/man1/gnote.1.gz
b714f23
%{_datadir}/applications/gnote.desktop
b714f23
%{_datadir}/gnote/
b714f23
%{_datadir}/icons/hicolor/*/apps/gnote.png
b714f23
%{_datadir}/icons/hicolor/scalable/apps/gnote.svg
b714f23
%{_sysconfdir}/gconf/schemas/gnote.schemas
b714f23
b714f23
%changelog
b714f23
cce7fcd
* Fri Apr 10 2009 Rahul Sundaram <sundaram@fedoraproject.org> - 0.1.1-4
cce7fcd
- Drop a unnecessary require, BR and fix summary
cce7fcd
b714f23
* Wed Apr 08 2009 Rahul Sundaram <sundaram@fedoraproject.org> - 0.1.1-3
b714f23
- Fix review issues
b714f23
b714f23
* Wed Apr 08 2009 Rahul Sundaram <sundaram@fedoraproject.org> - 0.1.1-2
b714f23
- include pre script for gconf schema
b714f23
b714f23
* Wed Apr 08 2009 Rahul Sundaram <sundaram@fedoraproject.org> - 0.1.1-1
b714f23
- Initial spec file
b714f23