Summary: GEdit is a small but powerful text editor for GNOME Name: gedit Version: 2.8.3 Release: 1mdk License: GPL Group: Editors Source0: ftp://ftp.gnome.org/pub/GNOME/sources/gedit/%{name}-%{version}.tar.bz2 # (fc) use current locale when creating new file (Mdk bug 6887) Patch1: gedit-2.8.1-encoding.patch.bz2 # (fc) 2.4.1-5mdk enable startup notify from gnome-vfs Patch2: gedit-2.4.1-startup.patch.bz2 # (fc) 2.8.1-1mdk allow escape key to close Find and Replace dialogs (Fedora) Patch3: gedit-2.4.0-escapecancel.patch.bz2 # (fc) 2.8.1-1mdk make file selector remember last window size and directory (Fedora) Patch4: gedit-2.8.1-filesel.patch.bz2 # (fc) 2.8.1-1mdk use pango font names, not gnome-print font names (Fedora) Patch5: gedit-2.7.90-pango-fonts.patch.bz2 # (fc) 2.8.1-1mdk enable spellchecker plugin by default (Fedora) Patch6: gedit-2.7.92-enable-plugins.patch.bz2 URL: http://gedit.pn.org/ BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot BuildRequires: libgnomeprintui-devel >= 2.5.0 BuildRequires: gtksourceview-devel >= 1.1.0 BuildRequires: eel-devel >= 2.5.0 BuildRequires: aspell-devel BuildRequires: scrollkeeper BuildRequires: perl-XML-Parser BuildRequires: ImageMagick PreReq: scrollkeeper >= 0.3 Conflicts: gedit-plugins <= 2.3.2-1mdk %description gEdit is a small but powerful text editor designed expressly for GNOME. It includes such features as split-screen mode, a plugin API, which allows gEdit to be extended to support many features while remaining small at its core, multiple document editing through the use of a 'tabbed' notebook and many more functions. %package devel Group: Development/C Summary: Headers for writing gEdit plugins Requires: libgnomeprintui-devel >= 2.5.0 Requires: gtksourceview-devel >= 0.9.0 Requires: eel-devel >= 2.5.0 %description devel gEdit is a small but powerful text editor designed expressly for GNOME. It includes such features as split-screen mode, a plugin API, which allows gEdit to be extended to support many features while remaining small at its core, multiple document editing through the use of a 'tabbed' notebook and many more functions. Install this if you want to build plugins that use gEdit's API. %prep %setup -q %patch1 -p1 -b .encoding %patch2 -p1 -b .startup %patch3 -p1 -b .escapecancel %patch4 -p1 -b .filesel %patch5 -p1 -b .pangofonts %patch6 -p1 -b .enableplugins %build %configure2_5x %make %install rm -rf $RPM_BUILD_ROOT %makeinstall_std rm -rf %buildroot/var %{find_lang} %{name}-2.0 --with-gnome --all-name for omf in %buildroot%_datadir/omf/%name/%name-??*.omf;do echo "%lang($(basename $omf|sed -e s/%name-// -e s/.omf//)) $(echo $omf|sed -e s!%buildroot!!)" >> %name-2.0.lang done # menu entry mkdir -p $RPM_BUILD_ROOT%{_menudir} cat << EOF > $RPM_BUILD_ROOT%{_menudir}/%{name} ?package(%{name}):\ needs="X11" \ section="Applications/Editors" \ title="GEdit" \ longtitle="GEdit is a small but powerful text editor" \ command="%{_bindir}/gedit" \ icon="gedit.png" \ startup_notify="true" EOF # icons mkdir -p $RPM_BUILD_ROOT%{_liconsdir} $RPM_BUILD_ROOT%{_miconsdir} cp $RPM_BUILD_ROOT%{_datadir}/pixmaps/gedit-icon.png $RPM_BUILD_ROOT%{_liconsdir}/%{name}.png convert -size 32x32 $RPM_BUILD_ROOT%{_datadir}/pixmaps/gedit-icon.png $RPM_BUILD_ROOT%{_iconsdir}/%{name}.png convert -size 16x16 $RPM_BUILD_ROOT%{_datadir}/pixmaps/gedit-icon.png $RPM_BUILD_ROOT%{_miconsdir}/%{name}.png # remove unpackaged files rm -f $RPM_BUILD_ROOT%{_libdir}/gedit-2/plugins/*.la \ $RPM_BUILD_ROOT%{_libdir}/bonobo/*.la %clean rm -rf $RPM_BUILD_ROOT %post /sbin/ldconfig if [ -x %{_bindir}/scrollkeeper-update ]; then %{_bindir}/scrollkeeper-update -q || true ; fi GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/gedit.schemas > /dev/null %{update_menus} %preun if [ "$1" = "0" ] ; then GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/gedit.schemas > /dev/null fi %postun %{clean_menus} if [ -x {_bindir}/scrollkeeper-update ]; then {_bindir}/scrollkeeper-update -q|| true ; fi /sbin/ldconfig %files -f %{name}-2.0.lang %defattr(-, root, root) %doc README ChangeLog TODO AUTHORS THANKS %{_sysconfdir}/gconf/schemas/* %{_bindir}/* %dir %{_libdir}/gedit-2 %dir %{_libdir}/gedit-2/plugins %{_libdir}/gedit-2/plugins/*.so %{_libdir}/gedit-2/plugins/*.gedit-plugin %{_libdir}/bonobo/*.so %{_libdir}/bonobo/servers/* %{_datadir}/gedit-2 %{_datadir}/applications/* %{_datadir}/application-registry/* %{_datadir}/gnome-2.0/ui/* %{_liconsdir}/*.png %{_iconsdir}/*.png %{_miconsdir}/*.png %dir %{_datadir}/omf/gedit %{_datadir}/omf/gedit/*-C.omf %{_datadir}/pixmaps/* %{_datadir}/mime-info/* %{_menudir}/* %{_datadir}/idl/* %{_mandir}/man1/* %files devel %defattr(-, root, root) %{_includedir}/* %{_libdir}/pkgconfig/* %changelog * Sun Feb 13 2005 Götz Waschk <waschk@linux-mandrake.com> 2.8.3-1mdk - New release 2.8.3 * Thu Jan 06 2005 Frederic Crozat <fcrozat@mandrakesoft.com> 2.8.2-2mdk - Rebuild with latest howl * Mon Dec 6 2004 Goetz Waschk <waschk@linux-mandrake.com> 2.8.2-1mdk - New release 2.8.2 * Wed Nov 10 2004 Götz Waschk <waschk@linux-mandrake.com> 2.8.1-1mdk - fix omf file listing - New release 2.8.1 - Regenerate patch1 - Patch3 (Fedora): allow escape key to close Find and Replace dialogs - Patch4 (Fedora): make file selector remember last window size and directory - Patch5 (Fedora): use pango font names, not gnome-print font names - Patch6 (Fedora): enable spellchecker plugin by default * Thu Sep 02 2004 Frederic Crozat <fcrozat@mandrakesoft.com> 2.6.2-4mdk - Use upstream icons (Mdk bug #10834) * Mon Aug 16 2004 Laurent MONTEL <lmontel@mandrakesoft.com> 2.6.2-3mdk - Rebuild with menu * Wed Aug 4 2004 Götz Waschk <waschk@linux-mandrake.com> 2.6.2-2mdk - remove gedit-devel provides from main package * Sat Jun 26 2004 Götz Waschk <waschk@linux-mandrake.com> 2.6.2-1mdk - drop patch 3 - New release 2.6.2 * Mon Jun 21 2004 Götz Waschk <waschk@linux-mandrake.com> 2.6.1-3mdk - remove generic docs - reenable libtoolize - split out devel package http://archives.mandrakelinux.com/expert/2004-06/msg01002.php * Tue May 04 2004 Frederic Crozat <fcrozat@mandrakesoft.com> 2.6.1-2mdk - Patch3 (CVS): don't output warnings when icon theme isn't found (Mdk bug #9492) * Mon May 3 2004 Goetz Waschk <waschk@linux-mandrake.com> 2.6.1-1mdk - New release 2.6.1 * Wed Apr 21 2004 Frederic Crozat <fcrozat@mandrakesoft.com> 2.6.0-3mdk - Really fix buildrequires (thanks titi) * Wed Apr 21 2004 Frederic Crozat <fcrozat@mandrakesoft.com> 2.6.0-2mdk - Fix BuildRequires * Tue Apr 06 2004 Frederic Crozat <fcrozat@mandrakesoft.com> 2.6.0-1mdk - Release 2.6.0 (with Götz help) - Remove patch0 (merged upstream) * Thu Feb 26 2004 Frederic Crozat <fcrozat@mandrakesoft.com> 2.4.1-6mdk - Fix distlint error * Fri Feb 20 2004 Frederic Crozat <fcrozat@mandrakesoft.com> 2.4.1-5mdk - Patch2 : allow startup-notifu from gnome-vfs * Mon Feb 16 2004 Frederic Crozat <fcrozat@mandrakesoft.com> 2.4.1-4mdk - Patch1 (Paolo): use current locale when saving new file (Mdk bug 6887) * Mon Dec 22 2003 Stefan van der Eijk <stefan@eijk.nu> 2.4.1-3mdk - rebuild for new pkgconfig Requires * Thu Nov 13 2003 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 2.4.1-2mdk - Merge from AMD64 branch: 64-bit fixes * Fri Nov 7 2003 Götz Waschk <waschk@linux-mandrake.com> 2.4.1-1mdk - requires new gtksourceview and new gnomeprintui - new version * Wed Sep 10 2003 Frederic Crozat <fcrozat@mandrakesoft.com> 2.4.0-1mdk - Release 2.4.0 * Tue Sep 02 2003 Frederic Crozat <fcrozat@mandrakesoft.com> 2.3.5-2mdk - Fix BuildRequires * Wed Aug 27 2003 Frederic Crozat <fcrozat@mandrakesoft.com> 2.3.5-1mdk - Release 2.3.5 - Fix error in post install * Tue Aug 12 2003 Frederic Crozat <fcrozat@mandrakesoft.com> 2.3.3-4mdk - Add lang tag to OMF files * Wed Jul 16 2003 Frederic Crozat <fcrozat@mandrakesoft.com> - 2.3.3-3mdk - Fix BuildRequires * Tue Jul 15 2003 Frederic Crozat <fcrozat@mandrakesoft.com> - 2.3.3-2mdk - Fix typo in script * Tue Jul 15 2003 Frederic Crozat <fcrozat@mandrakesoft.com> - 2.3.3-1mdk - Release 0.3.3 - Remove patch0 (merged upstream) * Tue Jun 03 2003 Frederic Crozat <fcrozat@mandrakesoft.com> - 2.3.2-1mdk - Release 2.3.2 - Patch0: fix bonobo component soname and location * Mon Apr 14 2003 Frederic Crozat <fcrozat@mandrakesoft.com> 2.3.0-1mdk - Release 2.3.0 * Thu Feb 6 2003 Frederic Crozat <fcrozat@mandrakesoft.com> 2.2.0.1-1mdk - Release 2.2.0.1 * Mon Jan 27 2003 Frederic Crozat <fcrozat@mandrakesoft.com> 2.2.0-1mdk - Release 2.2.0 * Wed Jan 22 2003 Frederic Crozat <fcrozat@mandrakesoft.com> 2.1.91-1mdk - Release 2.1.91 * Thu Jan 16 2003 Frederic Crozat <fcrozat@mandrakesoft.com> 2.1.6-2mdk - Rebuild against latest openssl - Generate yelp cache * Wed Jan 8 2003 Frederic Crozat <fcrozat@mandrakesoft.com> 2.1.6-1mdk - Release 2.1.6 * Fri Dec 20 2002 Frederic Crozat <fcrozat@mandrakesoft.com> 2.1.5-2mdk - Rebuilt against latest glibc * Thu Dec 19 2002 Frederic Crozat <fcrozat@mandrakesoft.com> 2.1.5-1mdk - Release 2.1.5 * Wed Dec 11 2002 Frederic Crozat <fcrozat@mandrakesoft.com> 2.1.4-1mdk - Release 2.1.4 * Fri Nov 29 2002 Frederic Crozat <fcrozat@mandrakesoft.com> 2.1.3-1mdk - Release 2.1.3 * Tue Nov 26 2002 Frederic Crozat <fcrozat@mandrakesoft.com> 2.1.2.1-1mdk - Release 2.1.2.1 * Thu Oct 10 2002 Frederic Crozat <fcrozat@mandrakesoft.com> 2.0.5-1mdk - Release 2.0.5 * Wed Jul 24 2002 Frederic Crozat <fcrozat@mandrakesoft.com> 2.0.2-1mdk - Release 2.0.2 * Wed Jul 24 2002 Frederic Crozat <fcrozat@mandrakesoft.com> 2.0.1-2mdk - Recompiled against gail 0.17 * Tue Jul 16 2002 Frederic Crozat <fcrozat@mandrakesoft.com> 2.0.1-1mdk - Release 2.0.1 * Wed Jun 19 2002 Frederic Crozat <fcrozat@mandrakesoft.com> 2.0.0-1mdk - Release 2.0.0 * Tue Jun 11 2002 Frederic Crozat <fcrozat@mandrakesoft.com> 1.199.0-1mdk - Release 1.199.0 * Thu Jun 6 2002 Frederic Crozat <fcrozat@mandrakesoft.com> 1.121.1-2mdk - Recompiled against libbonoboui 2.0.0 * Wed Jun 5 2002 Frederic Crozat <fcrozat@mandrakesoft.com> 1.121.1-1mdk - Release 1.121.1 * Tue May 14 2002 Frederic Crozat <fcrozat@mandrakesoft.com> 1.119.0-1mdk - Release 1.119.0 * Mon Apr 29 2002 Frederic Crozat <fcrozat@mandrakesoft.com> 1.118.0-2mdk - Disable -fomit-frame-pointer, it prevents cursor to appear !! (bug 79456) * Mon Apr 29 2002 Frederic Crozat <fcrozat@mandrakesoft.com> 1.118.0-1mdk - Release 1.118.0 * Fri Apr 19 2002 Frederic Crozat <fcrozat@mandrakesoft.com> 1.117.0-1mdk - Release 1.117.0 * Thu Apr 11 2002 Frederic Crozat <fcrozat@mandrakesoft.com> 1.116.0-2mdk - Add obsoletes to gedit-devel (no longer exist) * Wed Apr 10 2002 Frederic Crozat <fcrozat@mandrakesoft.com> 1.116.0-1mdk - Release 1.116.0 (GNOME2) - Remove patches 1, 2 & 3 (no longer needed) - Remove the -devel package (not used) * Mon Feb 25 2002 Pablo Saratxaga <pablo@mandrakesoft.com> 0.9.6-10mdk -small update to Basque translation * Mon Feb 25 2002 Pablo Saratxaga <pablo@mandrakesoft.com> 0.9.6-9mdk - integrated Basque translation * Thu Jan 31 2002 Thierry Vignaud <tvignaud@mandrakesoft.com> 0.9.6-8mdk - xpm -> png icons * Sat Jan 19 2002 Stefan van der Eijk <stefan@eijk.nu> 0.9.6-7mdk - BuildRequires * Thu Jan 03 2002 Stefan van der Eijk <stefan@eijk.nu> 0.9.6-6mdk - fix BuildRequires * Mon Nov 12 2001 Renaud Chaillat <rchaillat@mandrakesoft.com> 0.9.6-5mdk - patch to add glade to include path in plugins - from Götz Waschk <waschk@linux-mandrake.com> : - fixed rpmlint warnings - removed .a files from main package - shut up, tar - move aclocal, auto* to %%build - added patch to allow compilation with latest gnome-vfs - removed help dir from file listing - added --with-gnome to find_lang for help files * Tue Aug 21 2001 Frederic Crozat <fcrozat@mandrakesoft.com> 0.9.6-4mdk - Add missing directory * Thu Jun 28 2001 DU Xiaoming <dxiaoming@mandrakesoft.com> 0.9.6-3mdk - Add a fontset patch to enable CJK text input and display. * Sat Apr 28 2001 Geoffrey Lee <snailtalk@mandrakesoft.com> 0.9.6-2mdk - Include locales provided in source instead of some external dinosaur-age locales. * Tue Mar 20 2001 Renaud Chaillat <rchaillat@mandrakesoft.com> 0.9.6-1mdk - new version 0.9.6 - removed gnome-vfs patch * Wed Mar 7 2001 Frederic Crozat <fcrozat@mandrakesoft.com> 0.9.5-1mdk - Release 0.9.5 - Patch 0 to compile with gnome-vfs 0.6.2 * Sat Nov 25 2000 Geoffrey Lee <snailtalk@mandrakesoft.com> 0.9.4-1mdk - new and shiny source. * Tue Oct 24 2000 Renaud Chaillat <rchaillat@mandrakesoft.com> 0.9.3-1mdk - new version 0.9.3 - moved plugins .so in normal package * Wed Sep 20 2000 Renaud Chaillat <rchaillat@mandrakesoft.com> 0.9.1-1mdk - new version * Wed Sep 6 2000 Renaud Chaillat <rchaillat@mandrakesoft.com> 0.9.0-3mdk - fixed langs - further macroszification - fixed icons - fixed buildroot - commented out .desktop - fixed help * Mon Aug 07 2000 Frederic Lepied <flepied@mandrakesoft.com> 0.9.0-2mdk - automatically added BuildRequires * Mon Jul 24 2000 Frederic Crozat <fcrozat@mandrakesoft.com> 0.9.0-1mdk - release 0.9.0 (from helix) - BM + macroszification * Wed Jun 28 2000 Alexandre Dussart <adussart@mandrakesoft.com> 0.7.9-1mdk - 0.7.9 * Tue Jun 20 2000 dam's <damien@mandrakesoft.com> 0.7.0-4mdk - Corrected po file source name gz -> bz2. * Sun Jun 18 2000 dam's <damien@mandrakesoft.com> 0.7.0-3mdk - Re-include po files. * Thu Jun 15 2000 Reinhard Katzmann <reinhard@suamor.de> 0.7.0-2mdk - Several important files were not included in the package :-( * Mon Jun 12 2000 dam's <damien@mandrakesoft.com> 0.7.0-1mdk - updated from helix. - clean up spec. * Fri Apr 28 2000 Vincent Saugey <vince@mandrakesoft.com> 0.6.1-3mdk - Add icons * Thu Apr 20 2000 Vincent Saugey <vince@mandrakesoft.com> 0.6.1-2mdk - Add menu entry * Tue Mar 28 2000 Daouda Lo <daouda@mandrakesoft.com> 0.6.1-1mdk - build release - cleanup spec file . - add post and postun sections (sometimes handy) - upgrade from helix * Sat Mar 25 2000 Daouda Lo <daouda@mandrakesoft.com> 0.5.5-2mdk - fix group - package should not be relocatable * Wed Nov 17 1999 Lenny Cartier <lenny@mandrakesoft.com> - v0.5.5 * Fri Aug 27 1999 Pablo Saratxaga <pablo@mandrakesoft.com> - get latest translation files from CVS * Mon Jul 12 1999 Axalon Bloodstone <axalon@linux-mandrake.com> - bzip manpage * Mon Jul 05 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com> - 0.5.4 from CVS : * README: Upped version number to 0.5.4. Also updated various parts of the file to reflect current features and other related items. * README.plugins, INSTALL, makeconfig.pl: Upped version number to 0.5.4, in preperation of release. * NEWS: Added Announce message for 0.5.4. * Erk! i havent been keeping this up to date.. ahwell.. here goes.. * gE_document.[ch]: (gE_window_new) Make it a GnomeApp arg, instead of a GtkWidget.. much nicer.. And commented out the call to gE_set_menu_toggle_states, gnome-libs 1.0.11 doenst seem to like it.. * gE_mdi.c: various improvements.. (iirc ;) * gE_prefs.[ch]: Added a "close doc" flag.. * gE_prefs_box.c: Moved the print tab to a Document tab, and added a option for what to do when the last documnet of the window is closed.. right now only the first option works.. this corresponds with the flag, above. * commands.c: Made the close callback check the "close doc" flag, and it will either open a new doc if there arent any more, or print hola! to stdout.. as i said, its not fully implemented yet. * Tue May 11 1999 Bernhard Rosenkränzer <bero@mandrakesoft.com> - Mandrake adaptions * Sat Feb 06 1999 Michael Johnson <johnsonm@redhat.com> - Cleaned up a bit for Red Hat use * Thu Oct 22 1998 Alex Roberts <bse@dial.pipex.com> - First try at an RPM