%define majver %(echo %version | cut -d. -f1-2) Name: gedit Version: 2.30.4 Release: 1mamba Summary: gEdit is a small but powerful text editor for GNOME Group: Graphical Desktop/Applications/Utilities Vendor: openmamba Distribution: openmamba Packager: gil URL: http://www.gnome.org/projects/gedit/ Source0: http://ftp.gnome.org/pub/GNOME/sources/gedit/%{majver}/gedit-%{version}.tar.gz Source1: gedit.png Source2: gedit1.desktop # http://bugzilla.gnome.org/show_bug.cgi?id=569214 Patch0: gedit-2.26.1-fix-python-path.patch # http://bugzilla.gnome.org/show_bug.cgi?id=587053 Patch1: gedit-2.29.7-print-to-file.patch License: GPL BuildRequires: libscrollkeeper-devel BuildRequires: gnome-doc-utils-devel BuildRequires: iso-codes-devel BuildRequires: pygtksourceview-devel ## AUTOBUILDREQ-BEGIN BuildRequires: GConf-devel BuildRequires: glibc-devel BuildRequires: gtk-doc BuildRequires: libalsa-devel BuildRequires: libart_lgpl-devel BuildRequires: libatk-devel BuildRequires: libaudiofile-devel BuildRequires: libbonobo-devel BuildRequires: libbonoboui-devel BuildRequires: libcairo-devel BuildRequires: libdbus-devel BuildRequires: libdbus-glib-devel BuildRequires: libenchant-devel BuildRequires: libesound-devel BuildRequires: libexpat-devel BuildRequires: libfontconfig-devel BuildRequires: libfreetype-devel BuildRequires: libglade-devel BuildRequires: libglib-devel BuildRequires: libglitz-devel BuildRequires: libgnomecanvas-devel BuildRequires: libgnome-devel BuildRequires: libgnome-keyring-devel BuildRequires: libgnomeui-devel BuildRequires: libgnome-vfs-devel BuildRequires: libgtk-devel BuildRequires: libgtksourceview-devel >=2.2.0 BuildRequires: libICE-devel BuildRequires: libjpeg-devel BuildRequires: libopenssl-devel BuildRequires: libpango-devel BuildRequires: libpixman-devel BuildRequires: libpng-devel BuildRequires: libpopt-devel BuildRequires: libselinux BuildRequires: libSM-devel BuildRequires: libX11-devel BuildRequires: libXau-devel BuildRequires: libxcb-devel BuildRequires: libxcb-util-devel BuildRequires: libXdmcp-devel BuildRequires: libxml2-devel BuildRequires: libXrender-devel BuildRequires: libz-devel BuildRequires: ORBit2-devel ## AUTOBUILDREQ-END BuildRoot: %{_tmppath}/%{name}-%{version}-root %description gEdit is the official text editor of the GNOME desktop environment. While aiming at simplicity and ease of use, gedit is a powerful general purpose text editor. Currently it features: * Full support for internationalized text (UTF-8) * Configurable syntax highlighting for various languages (C, C++, Java, HTML, XML, Python, Perl and many others) * Undo/Redo * Editing files from remote locations * File reverting * Print and print preview support * Clipboard support (cut/copy/paste) * Search and replace * Go to specific line * Auto indentation * Text wrapping * Line numbers * Right margin * Current line highlighting * Bracket matching * Backup files * Configurable fonts and colors * A complete online user manual gEdit features also a flexible plugin system which can be used to dynamically add new advanced features to gedit itself. See the plugins page for more info on the existing plugins. You'll need to have GNOME and GTK+ installed to use gEdit. %package devel Summary: Devel package for %{name} Group: Development/Libraries Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} %description devel This package contains static libraries and header files need for development. %package apidocs Group: Documentation Summary: API documentation for %{name} Requires: gtk-doc %description apidocs gedit is the official text editor of the GNOME desktop environment. While aiming at simplicity and ease of use, gedit is a powerful general purpose text editor. gedit features also a flexible plugin system which can be used to dynamically add new advanced features to gedit itself. See the plugins page for more info on the existing plugins. %prep %setup -q #%patch0 -p1 #%patch1 -p1 #autoreconf -f -i #intltoolize -f for p in $(find . -name "*.py"); do sed -i 's|#!/usr/bin/python|#!%{__python26}|' $p sed -i 's|#!/usr/bin/env python|#!%{__python26}|' $p sed -i 's|#!python|#!%{__python26}|' $p sed -i 's|#!/usr/local/bin/python2.1|#!%{__python26}|' $p sed -i 's|#!/usr/local/bin/python|#!%{__python26}|' $p done %build %configure \ --disable-schemas-install \ --disable-scrollkeeper \ PYTHON=%{__python26} %make %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 %makeinstall unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL install -D %{S:1} \ %{buildroot}%{_datadir}/pixmaps/gedit.png %{__rm} -rf %{buildroot}%{_datadir}/applications install -D %{S:2} \ %{buildroot}%{_datadir}/applications/gedit.desktop ## http://bugzilla.gnome.org/show_bug.cgi?id=89654 perl -pi -e 's/Utility;TextEditor/Utility;TextEditor;/' %{buildroot}%{_datadir}/applications/* ## clean up all the static libs for plugins (workaround for no -module) %{__rm} -f `find %{buildroot}%{_libdir}/gedit-2/plugins -name "*.a"` %{__rm} -f `find %{buildroot}%{_libdir}/gedit-2/plugins -name "*.la"` %{__rm} -rf %{buildroot}/var/scrollkeeper %find_lang %{name} %clean [ "%{buildroot}" != / ] && rm -rf "%{brpmuildroot}" %post export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` SCHEMAS="gedit.schemas" for S in $SCHEMAS; do /usr/bin/gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/$S > /dev/null done %postun -p /sbin/ldconfig %files -f %{name}.lang %defattr(-,root,root) %{_sysconfdir}/gconf/schemas/gedit-file-browser.schemas %{_sysconfdir}/gconf/schemas/gedit.schemas %attr(755,root,root) %{_bindir}/gedit %attr(755,root,root) %{_bindir}/gnome-text-editor %dir %{_libdir}/gedit-2 %dir %{_libdir}/gedit-2/plugins %{_libdir}/gedit-2/plugins/quickopen %{_libdir}/gedit-2/plugins/*.gedit-plugin %{_libdir}/gedit-2/plugins/externaltools/* %{_libdir}/gedit-2/plugins/pythonconsole/* %{_libdir}/gedit-2/plugins/snippets/* %{_libdir}/gedit-2/plugin-loaders/* %dir %{_libexecdir}/gedit-2/gedit-bugreport.sh %{_datadir}/applications/gedit.desktop #%{_datadir}/gedit-2/glade/*.glade #%{_datadir}/gedit-2/glade/*.glade2 %{_datadir}/gedit-2/icons/gedit-plugin.png %{_datadir}/pixmaps/gedit.png %{_datadir}/gedit-2/logo/gedit-logo.png %{_datadir}/gedit-2/plugins/filebrowser/gedit-file-browser-widget-ui.xml %{_datadir}/gedit-2/plugins/docinfo/docinfo.ui %{_datadir}/gedit-2/plugins/externaltools/ %{_datadir}/gedit-2/plugins/modelines/language-mappings %{_datadir}/gedit-2/plugins/pythonconsole/ui/config.ui %{_datadir}/gedit-2/plugins/snippets/* %{_datadir}/gedit-2/plugins/sort/sort.ui %{_datadir}/gedit-2/plugins/spell/*.ui %{_datadir}/gedit-2/plugins/taglist/*.tags.gz %{_datadir}/gedit-2/plugins/time/gedit-time-dialog.ui %{_datadir}/gedit-2/plugins/time/gedit-time-setup-dialog.ui #%{_datadir}/gedit-2/plugins/tools/* %{_datadir}/gedit-2/ui/gedit-*.xml %{_datadir}/gedit-2/ui/gedit-*.ui %{_mandir}/man1/gedit.1.gz %doc %{_datadir}/gnome/help/gedit/*/figures/*.png %doc %{_datadir}/gnome/help/gedit/*/*.xml %doc %{_datadir}/omf/gedit/*.omf %doc AUTHORS BUGS COPYING ChangeLog NEWS README %files devel %defattr(-,root,root) #%{_libdir}/gedit-2/plugins/*.la %{_libdir}/gedit-2/plugins/*.so %{_includedir}/gedit-2.20/gedit/*.h %{_exec_prefix}/lib/pkgconfig/*.pc %files apidocs %defattr(644,root,root,755) %dir %{_datadir}/gtk-doc/html/gedit/ %{_datadir}/gtk-doc/html/gedit/* %changelog * Fri Oct 08 2010 gil 2.30.4-1mamba - update to 2.30.4 * Mon Jun 21 2010 Automatic Build System 2.30.3-1mamba - automatic update to 2.30.3 by autodist * Mon May 31 2010 Automatic Build System 2.30.2-1mamba - automatic update to 2.30.2 by autodist * Mon Nov 30 2009 Automatic Build System 2.28.2-1mamba - automatic update by autodist * Fri Sep 25 2009 Automatic Build System 2.28.0-1mamba - automatic update to 2.28.0 by autodist * Sat Jul 04 2009 Automatic Build System 2.26.3-1mamba - automatic update by autodist * Mon May 18 2009 Automatic Build System 2.26.2-1mamba - automatic update by autodist * Sat Apr 18 2009 Silvan Calarco 2.26.1-1mamba - automatic update by autodist * Mon Mar 30 2009 Silvan Calarco 2.26.0-1mamba - update to 2.26.0 * Wed May 14 2008 gil 2.22.1-1mamba - package created by autospec