%define glib2_version 2.2.0 %define pango_version 1.2.0 %define gtk2_version 2.2.0 %define libgnomeui_version 2.5.0 %define libgnomeprint_version 2.5.0 %define libgnomeprintui_version 2.5.0 %define desktop_file_utils_version 0.3 %define eel2_version 2.4.0 %define gail_version 1.2.0 %define gtksourceview_version 0.9 %define eel2_version 2.5.0 %define po_package gedit-2.6 Summary: gEdit is a small but powerful text editor for GNOME. Name: gedit Version: 2.6.1 Release: 2 Epoch: 1 License: GPL Group: Applications/Editors Source0: http://farbror.acc.umu.se/pub/GNOME/sources/gedit/2.6/gedit-%{version}.tar.bz2 URL: http://gedit.sourceforge.net/ BuildRoot: %{_tmppath}/gedit-%{version}-root PreReq: scrollkeeper >= 0.1.4 PreReq: GConf2 # Make the recent file locking a bit less annoying Patch2: gedit-2.5.90-lockf.patch # Allow Escape key to close Find and Replace dialogs Patch3: gedit-2.4.0-escapecancel.patch # Make the file selector remember last window size and directory Patch4: gedit-2.5.90-filesel.patch BuildRequires: glib2-devel >= %{glib2_version} BuildRequires: pango-devel >= %{pango_version} BuildRequires: gtk2-devel >= %{gtk2_version} BuildRequires: libgnomeui-devel >= %{libgnomeui_version} BuildRequires: libgnomeprintui22-devel >= %{libgnomeprintui_version} BuildRequires: libgnomeprint22-devel >= %{libgnomeprint_version} BuildRequires: desktop-file-utils >= %{desktop_file_utils_version} BuildRequires: aspell-devel BuildRequires: eel2-devel >= %{eel2_version} BuildRequires: gail-devel >= %{gail_version} BuildRequires: gtksourceview-devel >= %{gtksourceview_version} BuildRequires: automake >= 1.8 BuildRequires: intltool scrollkeeper gettext Requires: eel2 >= %{eel2_version} Requires: libgnomeui >= %{libgnomeui_version} Requires: libgnomeprintui22 >= %{libgnomeprintui_version} Requires: gtksourceview >= %{gtksourceview_version} %description gEdit is a small but powerful text editor designed specifically for the GNOME GUI desktop. gEdit includes a plug-in API (which supports extensibility while keeping the core binary small), support for editing multiple documents using notebook tabs, and standard text editor functions. You'll need to have GNOME and GTK+ installed to use gEdit. %package devel Summary: The files needed for developing plug-ins for the gEdit editor. Group: Development/Libraries # pkgconfig Requires: eel2-devel gtksourceview-devel %description devel gEdit is a small but powerful text editor for the GNOME GUI desktop. This package allows you to develop plug-ins that work within gEdit. Install gedit-devel if you want to write plug-ins for gEdit. %prep %setup -n gedit-%{version} -q %patch2 -p1 -b .lockf %patch3 -p1 -b .escapecancel %patch4 -p1 -b .filesel %build %configure make %install rm -rf $RPM_BUILD_ROOT export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 %makeinstall unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL ## http://bugzilla.gnome.org/show_bug.cgi?id=89654 perl -pi -e 's/Utility;TextEditor/Utility;TextEditor;/' $RPM_BUILD_ROOT%{_datadir}/applications/* desktop-file-install --vendor gnome --delete-original \ --dir $RPM_BUILD_ROOT%{_datadir}/applications \ --add-only-show-in GNOME \ --add-category X-Red-Hat-Base \ $RPM_BUILD_ROOT%{_datadir}/applications/* ## clean up all the static libs for plugins (workaround for no -module) /bin/rm -f `find $RPM_BUILD_ROOT%{_libdir}/gedit-2/plugins -name "*.a"` /bin/rm -f `find $RPM_BUILD_ROOT%{_libdir}/gedit-2/plugins -name "*.la"` /bin/rm -rf $RPM_BUILD_ROOT/var/scrollkeeper %find_lang %{po_package} %clean rm -rf $RPM_BUILD_ROOT %post scrollkeeper-update export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` SCHEMAS="gedit.schemas" for S in $SCHEMAS; do gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/$S > /dev/null done %postun scrollkeeper-update %files -f %{po_package}.lang %defattr(-, root, root) %doc README COPYING ChangeLog TODO AUTHORS THANKS %{_datadir}/gedit-2 %{_datadir}/pixmaps %{_datadir}/gnome %{_datadir}/idl %{_datadir}/omf %{_datadir}/mime-info %{_datadir}/applications %{_mandir}/man1/* %{_libdir}/bonobo %{_libdir}/gedit-2 %{_bindir}/* %{_sysconfdir}/gconf/schemas/* %{_datadir}/gnome-2.0/ui/gedit-viewer-ui.xml %{_datadir}/application-registry/gedit.applications %files devel %defattr(-, root, root) %{_includedir}/gedit-2.6 %{_libdir}/pkgconfig/gedit-2.6.pc %changelog * Tue Jun 15 2004 Elliot Lee - rebuilt * Sat May 15 2004 Dan Williams 1:2.6.1-1 - Upgrade to 2.6.1 * Fri Apr 16 2004 Dan Williams 1:2.6.0-4 - Gnome.org #137825 Gedit crash on Find/Replace dialog close when hitting escape * Tue Apr 13 2004 Warren Togami 1:2.6.0-3 - #111156 BR intltool scrollkeeper gettext - #111157 -devel R eel2-devel gtksourceview-devel - rm bogus BR esound * Thu Apr 08 2004 Dan Williams 1:2.6.0-2 - Fix dumb bug in ~/.recently-used patch where lockf() could never succeed * Wed Mar 31 2004 Dan Williams 1:2.6.0-1 - Update to gedit-2.6.0 sources * Thu Mar 18 2004 Dan Williams 1:2.5.92-1 - Update to gedit-2.5.92 sources * Tue Mar 02 2004 Elliot Lee - rebuilt * Thu Feb 25 2004 Dan Williams 1:2.5.90-1 - fix dumbness in the egg-recent file locking patch - Remove the autotools-1.8 patch because it is no longer needed - Require gtksourceview-devel >= 0.9 due to update to 2.5.90 - Update to gedit-2.5.90 * Fri Feb 13 2004 Elliot Lee - rebuilt * Wed Feb 11 2004 Dan Williams 1:2.5.3-3 - Correctly convert last path from open/save into a directory for storing in gconf, not a file * Fri Feb 06 2004 Dan Williams 1:2.5.3-2 - Bring file selector size/last path patch up to 2.5.3 - Fix up the recent-files locking algorithm to have finer resolution timeouts * Wed Jan 28 2004 Alexander Larsson 1:2.5.3-1 - update to 2.5.3 * Mon Jan 19 2004 Dan Williams 1:2.4.0-5 - Work around recent files locking contention when using NFS home directories (gnome.org #131930) - Make Find and Replace dialogs use a cancel button, so that pressing escape makes them close (gnome.org #131927) * Thu Jan 8 2004 Dan Williams 1:2.4.0-4 - Remeber file selector size and last directory on open/save (gnome.org #123787) - Small hack to work around switch from autotools 1.7 - 1.8 * Tue Oct 21 2003 Matt Wilson 1:2.4.0-3 - eel_read_entire_file takes a pointer to an int, not to a gsize (#103933) * Tue Oct 7 2003 Owen Taylor 1:2.4.0-2 - Fix bug with multibyte chars in shell-output plugin (#104027, Jens Petersen) - Add missing BuildRequires on eel2, aspell-devel (#87746, Alan Cox) - Add versioned Requires on eel2, libgnomeui (#103363, Jens Petersen) * Fri Oct 3 2003 Alexander Larsson 1:2.4.0-1 - 2.4.0 * Mon Sep 22 2003 Bill Nottingham 1:2.3.5-2 - fix defattr (#103333) * Tue Aug 26 2003 Jonathan Blandford - require the new gtksourceview * Fri Aug 15 2003 Jonathan Blandford 1:2.3.3-1 - update for GNOME 2.4 * Tue Jul 29 2003 Havoc Pennington 1:2.2.2-2 - rebuild * Mon Jul 7 2003 Havoc Pennington 1:2.2.2-1 - 2.2.2 - fix name of gettext domain - remove recent-monitor patch now upstream * Wed Jun 04 2003 Elliot Lee - rebuilt * Thu May 1 2003 Havoc Pennington 1:2.2.0-3 - patch configure.in for new aspell * Mon Apr 28 2003 Tim Powers 1:2.2.0-2 - rebuild to fix broken libpspell deps * Tue Feb 4 2003 Alexander Larsson 1:2.2.0-1 - Update to 2.2.0 - Add patch to disable recent files monitoring - Bump libgnomeprint requirements * Wed Jan 22 2003 Tim Powers - rebuilt * Fri Dec 13 2002 Tim Powers 1:2.1.4-1 - update to 2.1.4 * Mon Dec 9 2002 Havoc Pennington - 2.1.3 - fix unpackaged files * Thu Aug 15 2002 Owen Taylor - Add missing bonobo server files (#71261, Taco Witte) - Remove empty NEWS, FAQ files from %%doc (#66079) * Thu Aug 1 2002 Havoc Pennington - fix desktop file really * Thu Aug 1 2002 Havoc Pennington - fix desktop file * Mon Jul 29 2002 Havoc Pennington - 2.0.2 - build with new gail * Tue Jul 23 2002 Havoc Pennington - 2.0.1 * Tue Jun 25 2002 Owen Taylor - 2.0.0, fix missing locale files * Sun Jun 16 2002 Havoc Pennington - 1.199.0 - use desktop-file-install - remove static libs from plugins dir * Sat Jun 08 2002 Havoc Pennington - rebuild in different environment * Wed Jun 5 2002 Havoc Pennington - 1.121.1 * Sun May 26 2002 Tim Powers - automated rebuild * Tue May 21 2002 Havoc Pennington - rebuild in different environment * Tue May 21 2002 Havoc Pennington - 1.120.0 * Fri May 3 2002 Havoc Pennington - 1.118.0 * Fri Apr 19 2002 Havoc Pennington - move to gnome 2 version * Thu Apr 18 2002 Havoc Pennington - fix ko.po * Thu Apr 18 2002 Havoc Pennington - get correct po files from elvis * Thu Apr 18 2002 Havoc Pennington - gedit-pofiles.tar.gz, not gedit-po.tar.gz * Mon Apr 15 2002 Havoc Pennington - merge translations * Fri Mar 29 2002 Havoc Pennington - gettextize default font * Thu Mar 28 2002 Havoc Pennington - more multibyte fixes #61948 * Wed Mar 27 2002 Havoc Pennington - 0.9.7 for multibyte support * Tue Mar 26 2002 Akira TAGOH 0.9.4-11 - gedit-0.9.4-printprefs.patch: I forgot to add to POTFILES.in... - gedit-po.tar.gz: added. it's on CVS now. * Sun Mar 24 2002 Akira TAGOH 0.9.4-10 - gedit-0.9.4-printprefs.patch: fix typo and sanity check. * Mon Mar 04 2002 Akira TAGOH 0.9.4-9 - Applied a font selector patch for the printing - fix BuildRequires for automake-1.4 * Mon Jan 28 2002 Havoc Pennington - rebuild in rawhide - fix up cflags for moved gnome headers * Thu Jul 19 2001 Havoc Pennington - add some more build requires * Tue Jul 17 2001 Havoc Pennington - require libglade-devel to build * Fri Jun 15 2001 Nalin Dahyabhai - rebuild in new environment * Fri Feb 23 2001 Akira TAGOH - Fixed preview for !ja locale. * Wed Feb 07 2001 Akira TAGOH - Fixed handling fontset. (Bug#24998) - Added print out for multibyte patch. * Fri Dec 29 2000 Matt Wilson - 0.9.4 * Fri Aug 11 2000 Jonathan Blandford - Up Epoch and release * Wed Aug 09 2000 Jonathan Blandford - include glade files so that it will actually work. * Tue Aug 01 2000 Jonathan Blandford - upgrade package to newer version at request of author. * Thu Jul 13 2000 Prospector - automatic rebuild * Mon Jun 19 2000 Preston Brown - FHS paths * Sun Jun 11 2000 Jonathan Blandford - update to 0.7.9. Somewhat untested. * Fri Feb 11 2000 Jonathan Blandford - removed "reverse search function as it doesn't work. * Thu Feb 03 2000 Preston Brown - rebuild to gzip man pages * Mon Jan 17 2000 Elliot Lee - If I don't put in a log entry here, people will be very upset about not being able to find out that I am to blame for the 0.6.1 upgrade * Mon Aug 16 1999 Michael Fulbright - version 0.5.4 * Sat Feb 06 1999 Michael Johnson - Cleaned up a bit for Red Hat use * Thu Oct 22 1998 Alex Roberts - First try at an RPM