%{?_with_suse:%define suse 1} %{!?_with_suse:%define suse 0} Name: @PACKAGE@ Version: @VERSION@ Release: 1 Epoch: 0 Summary: Tomboy is a desktop note-taking application for Linux and Unix. Group: Office License: GPL URL: http://www.beatniksoftware.com/tomboy/ Source0: %{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: gtk2-devel >= 2.2.3 BuildRequires: atk-devel >= 1.2.4 BuildRequires: gtkspell-devel BuildRequires: gtk-sharp %if %{suse} %{?_with_dbus:BuildRequires: dbus-mono} %else %{?_with_dbus:BuildRequires: dbus-sharp} %endif Requires: gtk2-devel >= 2.2.3 Requires: atk-devel >= 1.2.4 Requires: gtkspell Requires: gtk-sharp Requires: libpanel-applet-2.so.0 %if %{suse} %{?_with_dbus:Requires: dbus-mono} %else %{?_with_dbus:Requires: dbus-sharp} %endif %define suse_prefix /opt/gnome %define suse_sysconfdir /etc%{suse_prefix} %define suse_bindir %{suse_prefix}/bin %define suse_libdir %{suse_prefix}/lib %define suse_datadir %{suse_prefix}/share %define suse_mandir %{suse_datadir}/man %if %{suse} %define prefix %{suse_prefix} %define sysconfdir %{suse_sysconfdir} %define bindir %{suse_bindir} %define libdir %{suse_libdir} %define datadir %{suse_datadir} %define mandir %{suse_mandir} %else %define prefix %{_prefix} %define sysconfdir %{_sysconfdir} %define bindir %{_bindir} %define libdir %{_libdir} %define datadir %{_datadir} %define mandir %{_mandir} %endif %description Tomboy is a desktop note-taking application for Linux and Unix. Simple and easy to use, but with potential to help you organize the ideas and information you deal with every day. The key to Tomboy's usefulness lies in the ability to relate notes and ideas together. Using a WikiWiki-like linking system, organizing ideas is as simple as typing a name. Branching an idea off is easy as pressing the Link button. And links between your ideas won't break, even when renaming and reorganizing them. Available rpmbuild rebuild options : --with : dbus suse %prep %setup -q %build ./configure %{!?_with_dbus: --enable-dbus=no} \ --prefix=%{prefix} --sysconfdir=%{sysconfdir} --bindir=%{bindir} \ --libdir=%{libdir} --datadir=%{datadir} --mandir=%{mandir} %{__make} %{?_smp_mflags} %install %{__rm} -rf ${RPM_BUILD_ROOT} export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 %makeinstall unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL %find_lang %{name} %post export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` gconftool-2 --makefile-install-rule \ %{_sysconfdir}/gconf/schemas/tomboy.schemas > /dev/null %preun export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` gconftool-2 --makefile-uninstall-rule \ %{_sysconfdir}/gconf/schemas/tomboy.schemas >/dev/null; %clean %{__rm} -rf ${RPM_BUILD_ROOT} %files -f %{name}.lang %defattr(-,root,root,-) %doc AUTHORS ChangeLog COPYING NEWS README %dir %{libdir}/%{name} %dir %{libdir}/%{name}/Plugins %{bindir}/%{name} %{libdir}/%{name}/* %{libdir}/%{name}/Plugins/* %{libdir}/bonobo/servers/GNOME_TomboyApplet.server %{libdir}/pkgconfig/*.pc %{?_with_dbus:%{_libdir}/dbus-1.0/services/com.beatniksoftware.Tomboy.service} %{mandir}/man1/%{name}.1.gz ###%{datadir}/applications/tomboy.desktop %{datadir}/gnome-2.0/ui/GNOME_TomboyApplet.xml %{datadir}/pixmaps/tintin.png %{sysconfdir}/gconf/schemas/tomboy.schemas %changelog * Mon May 30 2005 James Ogley - Add support for --with suse to build on SuSE Linux - Creates possibility of (for example) --with mandrake --with foo --with bar etc * Fri Oct 08 2004 Alex Graveley - 0.2 - Update to add .schemas, .desktop, .service, %find_lang, and %doc files. * Sun Sep 18 2004 Ricardo Veguilla - 0.1 - Initial package.