-Summary: gEdit - small but powerful text editor for X Window.
-Summary(pl): gEdit - ma³y ale potê¿ny edytor tekstu dla X Window.
+Summary: gEdit - small but powerful text editor for X Window
+Summary(pl): gEdit - ma³y ale potê¿ny edytor tekstu dla X Window
Name: gedit
-Version: 0.5.1
-Release: 3
-Copyright: GPL
+Version: 0.9.1
+Release: 1
+License: GPL
Group: X11/Applications/Editors
+Group(de): X11/Applikationen/Editors
Group(pl): X11/Aplikacje/Edytory
-Source: %{name}-%{version}.tar.gz
-Patch0: gedit-DESTDIR.patch
-Patch1: gedit-desktop.patch
-URL: http://gedit.pn.org
-BuildPrereq: gtk+-devel >= 1.2.0
-BuildPrereq: glib-devel >= 1.2.0
-BuildPrereq: imlib-devel
-BuildPrereq: zlib-devel
-BuildPrereq: XFree86-devel
-BuildPrereq: gnome-libs-devel
-BuildRoot: /tmp/%{name}-%{version}-root
+Group(pt): X11/Aplicações/Editores
+Source0: ftp://download.sourceforge.net/pub/sourceforge/gedit/%{name}-%{version}.tar.gz
+URL: http://gedit.sourceforge.net/
+BuildRequires: gtk+-devel >= 1.2.7
+BuildRequires: imlib-devel
+BuildRequires: zlib-devel
+BuildRequires: gnome-libs-devel > 1.0.55
+BuildRequires: gnome-print-devel >= 0.18
+BuildRequires: libglade-devel >= 0.11
+BuildRequires: gettext-devel
+Requires: go-plugins
+Obsoletes: gedit-devel
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define _prefix /usr/X11R6
+%define _mandir %{_prefix}/man
%description
-gEdit is a small but powerful text editor for GTK+ and/or GNOME.
-It includes such features as split-screen mode, a plugin API, which
-allows gEdit to be extended to support many features while remaining
+gEdit is a small but powerful text editor for GTK+ and/or 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 and many more functions.
%description -l pl
gEdit jest ma³ym ale potê¿nym edytorem tekstu dla GTK+ i/lub GNOME.
Zawiera takie funkcje jak tryb podzielonego ekranu, API dla "wtyczek",
który umo¿liwia rozszerzenie funkcji gEdita o dodatkowe mo¿liwo¶ci,
-nie zwiêkszaj±c rozmiarów samego programu, mo¿liwo¶æ edycji wielu
+nie zwiêkszaj±c rozmiarów samego programu, mo¿liwo¶æ edycji wielu
dokumentów naraz i wiele innych.
-%package devel
-Summary: Develop plugins for the gEdit editor.
-Summary(pl): Biblioteki umo¿liwiaj±ce pisanie pluginów do gEdit.
-Group: Development/Libraries
-Group(pl): Programowanie/Biblioteki
-Requires: %{name} = %{version}
-
-%description devel
-gEdit is a small but powerful text editor for GTK+ and/or GNOME.
-This package allows you to develop plugins that work within
-gEdit. Plugins can create new documents and manipulate documents
-in arbitrary ways.
-
-%description devel -l pl
-gEdit jest ma³ym ale potê¿nym edytorem tekstu dla GTK+ i/lub GNOME.
-Ten pakiet zawiera biblioteki umo¿liwiaj±ce pisanie "wtyczek" dla gEdita.
-"Wtyczki" mog± tworzyæ nowe dokumenty i manipulowaæ nimi na wiele róznych
-sposobów.
-
%prep
%setup -q
-%patch0 -p1
-%patch1 -p1
%build
-CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" \
-./configure %{_target_platform} \
- --prefix=/usr/X11R6
+gettextize --copy --force
+%configure \
+ --disable-static
-make
+%{__make} gtkrcdir=%{_datadir}/misc
%install
rm -rf $RPM_BUILD_ROOT
-make install-strip DESTDIR=$RPM_BUILD_ROOT
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT \
+ sysdir=%{_applnkdir}/Office/Editors
-gzip -9nf $RPM_BUILD_ROOT/usr/X11R6/man/man1/gedit.1 \
- FAQ README README.plugins ChangeLog TODO AUTHORS THANKS KNOWNBUGS
+gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man1/* \
+ FAQ README README.plugins ChangeLog TODO AUTHORS THANKS
-%find_lang %{name}
+%find_lang %{name} --with-gnome
%clean
rm -rf $RPM_BUILD_ROOT
%files -f %{name}.lang
%defattr(644,root,root,755)
-%doc {FAQ,README,ChangeLog,TODO,AUTHORS,THANKS,README.plugins,KNOWNBUGS}.gz
-%attr(755,root,root) /usr/X11R6/bin/gedit
-
-/usr/X11R6/share/gnome/apps/Applications/gedit.desktop
-/usr/X11R6/share/pixmaps/*
-/usr/X11R6/share/mime-info/*
-/usr/X11R6/share/geditrc
-/usr/X11R6/man/man1/gedit.1.gz
-%attr(755,root,root) /usr/X11R6/libexec/go/plugins/*
-
-
-%files devel
-%defattr(644,root,root,755)
-%dir /usr/X11R6/include/gedit
-/usr/X11R6/include/gedit/client.h
-/usr/X11R6/lib/libclient.a
+%doc *.gz
+%attr(755,root,root) %{_bindir}/gedit
+%{_datadir}/pixmaps/*
+%{_datadir}/mime-info/*
+%{_applnkdir}/Office/Editors/gedit.desktop
+%{_mandir}/man1/*