%define name	@PACKAGE@
%define ver	@VERSION@
%define RELEASE	1
%define rel	%{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE}
%define prefix /usr
%define sysconfdir /etc

Summary: gedit is a small text editor for GNOME.
Summary(es): gedit es un editor de texto para GNOME
Name:      %name
Version:   %ver
Release:   %rel
Copyright: GPL
Group: Applications/Editors
Source: ftp://ftp.gnome.org/pub/GNOME/stable/sources/gedit/gedit-%{ver}.tar.gz
URL: http://gedit.sourceforge.net
BuildRoot: /var/tmp/gedit-%{PACKAGE_VERSION}-root
Docdir: %{prefix}/help

Requires: gtk+ >= 1.2.9
Requires: gnome-libs >= 1.2.13
Requires: gnome-print >= 0.28
Requires: libglade >= 0.16

%description
gedit is a small text editor for the GNOME desktop.

%description -l es
gedit es un editor de texto para GNOME.

%prep
%setup

%build
%ifarch alpha
   CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" ./configure --host=alpha-redhat-linux\
	--prefix=%{prefix} 
%else
   CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" ./configure \
	--prefix=%{prefix} 
%endif
make

%install
rm -rf $RPM_BUILD_ROOT

make prefix=$RPM_BUILD_ROOT%{prefix} install

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, root)

%doc README COPYING ChangeLog NEWS TODO AUTHORS INSTALL THANKS FAQ
%{prefix}/bin/gedit
%{prefix}/share/*
%{prefix}/man/*/*
%{prefix}/lib/gedit/plugins/*

%changelog
* Wed Apr 18 2001 Jason Leach <leach@wam.umd.edu>
- updates requirements to latest GNOME 1.4 stuff

* Wed Mar 28 2001 Jason Leach <leach@wam.umd.edu>
- updates to requirements and source url

* Sun Oct 08 2000 Chema Celorio
- clean & update

* Sun Jun 11 2000 Chema Celorio
- updated description and webpage

* Fri Jun 09 2000 Carlos Perell� Mar�n <carpema@hispalinux.es>
- Added the Spanish description

* Wed Apr 19 2000 Jason Leach <leach@wam.umd.edu>
- Removed the prefix/libexec/* from files, we don't build plugins here
anymore

* Wed Nov 17 1999 Alex Roberts <bse@gedit.pn.org>
- Updated doc's to be included in RPM

* 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
