+%define elisp_man_version 21-2.7a
Summary: The Emacs text editor for the X Window System
Summary(de): GNU Emacs
Summary(es): GNU Emacs
Summary(tr): GNU Emacs
Name: emacs
Version: 21.1
-Release: 1
+Release: 2
License: GPL
Group: Applications/Editors/Emacs
Group(de): Applikationen/Editors/Emacs
Group(pt): Aplicações/Editores/Emacs
Source0: ftp://ftp.gnu.org/gnu/emacs/%{name}-%{version}.tar.gz
Source1: ftp://ftp.gnu.org/gnu/emacs/leim-%{version}.tar.gz
+Source2: ftp://ftp.gnu.org/gnu/emacs/elisp-manual-%{elisp_man_version}.tar.gz
Source3: %{name}.desktop
Source4: %{name}-dot%{name}
Source5: %{name}-site-start.el
BuildRequires: libpng-devel
BuildRequires: autoconf
BuildRequires: libtool
+BuildRequires: texinfo
Buildroot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
Requires: ctags
Requires: emacs-common
X Window System; zainstaluj emacs je¿eli u¿ywasz X.
%prep
-%setup -q -b 1
+%setup -q -b 1 -a 2
%patch1 -p1
%build
#autoconf
#touch aclocal.m4
+cd elisp-manual-*
+%configure2_13
+%{__make}
+cd ..
+
# Build binary with X support
[ -d build-withx ] && rm -rf build-withx
mkdir build-withx && cd build-withx
install build-nox/etc/DOC-* $RPM_BUILD_ROOT%{_datadir}/emacs/%{version}/etc
+%{__make} -C elisp-manual-* install \
+ infodir=$RPM_BUILD_ROOT%{_infodir}
+
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
gzip -9nf etc/NEWS BUGS README