Name: scratchpad Version: 0.3.0 Release: 1%{?dist} Summary: A spatial editor for GNOME Group: Applications/Editors License: GPL URL: http://dborg.wordpress.com/scratchpad/ Source0: http://www.chorse.org/stuff/%{name}/%{name}-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: vala glib2-devel gtk2-devel gtksourceview-devel GConf2-devel gnome-vfs2 desktop-file-utils %description Scratchpad is a spatial text editor for the GNOME desktop. It is based on gtksourceview, which provides most essential features for source code editing. On top of this Scratchpad offers a lightweight, intuitive and forward-thinking user interface as well as additional editing features to make your life easier. %prep %setup -q %configure %build make %{?_smp_mflags} %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 %install rm -rf %{buildroot} make DESTDIR=%{buildroot} install desktop-file-install --vendor fedora \ --dir %{buildroot}/%{_datadir}/applications \ --add-category X-Fedora \ --delete-original \ %{buildroot}/%{_datadir}/applications/%{name}.desktop %post export GCONF_CONFIG_SOURCE=$(gconftool-2 --get-default-source) gconftool-2 --makefile-install-rule \ %{_sysconfdir}/gconf/schemas/%{name}.schemas > /dev/null ||: scrollkeeper-update -q -o %{_datadir}/omf/%{name} ||: update-desktop-database &> /dev/null ||: %clean rm -rf %{buildroot} %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 %postun update-desktop-database &> /dev/null ||: scrollkeeper-update -q ||: %files %defattr(-,root,root,-) %{_bindir}/scratchpad %{_datadir}/applications/fedora-scratchpad.desktop %{_datadir}/pixmaps/scratchpad.svg %{_datadir}/scratchpad/scratchpad-ui.xml %{_sysconfdir}/gconf/schemas/scratchpad.schemas %changelog * Tue Nov 7 2006 David Nielsen - 0.3.0-1 - Initial package