Summary: GNU Line Editor
-Summary(de): GNU-Zeileneditor
+Summary(de): GNU-Zeileneditor
+Summary(es): Editor de líneas de la GNU
Summary(fr): Éditeur ligne de GNU
-Summary(pl): GNU edytor liniowy
+Summary(ja): GNU ¥é¥¤¥ó¥¨¥Ç¥£¥¿¡£
+Summary(pl): GNU edytor liniowy
+Summary(pt_BR): Editor de linhas da GNU
+Summary(ru): óÔÒÏÞÎÙÊ ÒÅÄÁËÔÏÒ GNU
Summary(tr): GNU satýr düzenleyici
+Summary(uk): òÑÄËÏ×ÉÊ ÒÅÄÁËÔÏÒ GNU
Name: ed
Version: 0.2
-Release: 15
-Copyright: GPL
+Release: 36
+License: GPL
Group: Applications/Editors
-Group(pl): Aplikacje/Edytory
-Source: ftp://prep.ai.mit.edu/pub/gnu/ed/%{name}-%{version}.tar.gz
-Patch0: ed-info.patch
-Patch1: ed-autoconf.patch
-Prereq: /sbin/install-info
-Buildroot: /tmp/%{name}-%{version}-root
+Source0: ftp://ftp.gnu.org/pub/gnu/ed/%{name}-%{version}.tar.gz
+# Source0-md5: ddd57463774cae9b50e70cd51221281b
+Source1: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
+# Source1-md5: 13a5459ddffbd7f04aa3d67fce0d2134
+Patch0: %{name}-info.patch
+Patch1: %{name}-autoconf.patch
+Patch2: %{name}-mkstemp.patch
+Patch3: %{name}-debian.patch
+Patch4: %{name}-configure.patch
+Patch5: %{name}-regex.patch
+URL: http://www.gnu.org/software/ed/
+BuildRequires: autoconf
+BuildRequires: texinfo
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define _exec_prefix /
+%define _bindir /bin
%description
-This is the GNU line editor. It is an implementation of one of the first
-editors under *nix. Some programs rely on it, but in general you probably
-don't *need* it.
+This is the GNU line editor. It is an implementation of one of the
+first editors under *nix. Some programs rely on it, but in general you
+probably don't *need* it.
%description -l de
Dies ist der GNU-Zeileneditor, eine Implementierung einer der ersten
-Editoren unter *nix. Manche Programme verlassen sich darauf, i.a. *brauchen*
-Sie ihn wahrscheinlich nicht.
+Editoren unter *nix. Manche Programme verlassen sich darauf, i.a.
+*brauchen* Sie ihn wahrscheinlich nicht.
+
+%description -l es
+Este es GNU editor de línea. Es un soporte a uno de los primeros
+editores para *nix. Algunos de los programas cuentan con él, pero de
+manera general, es muy probable que no lo *necesites*.
%description -l fr
-Éditeur ligne de GNU. C'est une implantation de l'un des premiers éditeurs
-d'*nix. Certains programmes en ont besoin, mais en général, vous n'en aurez
-probablement pas l'utilité.
+Éditeur ligne de GNU. C'est une implantation de l'un des premiers
+éditeurs d'*nix. Certains programmes en ont besoin, mais en général,
+vous n'en aurez probablement pas l'utilité.
+
+%description -l ja
+ed ¤Ï¹Ô»Ø¸þ¤Î¥Æ¥¥¹¥È¥¨¥Ç¥£¥¿¤Ç¡¢( ÂÐÏÃŪ¤Ç¤â¥·¥§¥ë¥¹¥¯¥ê¥×¥È·Ðͳ¤Ç¤â
+) ¥Æ¥¥¹¥È¥Õ¥¡¥¤¥ë¤ÎÀ¸À®¡¢É½¼¨¡¢½¤Àµ¤ËÍѤ¤¤é¤ì¤Þ¤¹¡£¼ç¤ÊÌÜŪ¤È¤·¤Æ¤Ï¡¢
+¥Õ¥ë¥¹¥¯¥ê¡¼¥ó¥¨¥Ç¥£¥¿ ( Î㤨¤Ð emacs ¤ä vi ) ¤Ë¤è¤Ã¤Æ¤Ê¤µ¤ì¤Æ¤¤¤ë
+Ä̾ï¤ÎÍøÍÑ¤Ë ed ¤òÃÖ¤´¹¤¨¤Æ¤¤¿¤³¤È¤Ç¤¹¡£
+
+ed ¤Ï½é´ü¤Î Unix ¥¨¥Ç¥£¥¿¤Ç¡¢¤¤¤í¤¤¤í¤Ê¥×¥í¥°¥é¥à¤Ë»È¤ï¤ì¤Æ¤¤Þ¤·¤¿¡£
+¤·¤«¤·¡¢°ìÈ̤ˤÏ¿ʬ¥¤¥ó¥¹¥È¡¼¥ë¤¹¤ëɬÍפϤʤ¯¡¢
+¿ʬ»È¤¤¤³¤Ê¤¹¤³¤È¤â¤Ê¤¤¤Ç¤·¤ç¤¦¡£
%description -l pl
-Ed jest GNU implementacj± standardowego, pierwszego unixowego edytora.
-Czê¶æ starszych programów mo¿e jeszcze korzystaæ z niego ale wiêkszo¶æ
-ju¿ prawdopodobnie nie potrzebuje ed.
+Ed jest GNU implementacj± standardowego, pierwszego edytora
+uniksowego. Czê¶æ starszych programów mo¿e jeszcze z niego korzystaæ,
+ale wiêkszo¶æ ju¿ prawdopodobnie go nie potrzebuje.
+
+%description -l pt_BR
+Este é o GNU editor de linha. É uma implementação de um dos primeiros
+editores para *nix. Alguns programas contam com ele, mas no geral você
+provavelmente não irá *precisar* dele.
+
+%description -l uk
+Ed - ÃÅ ÒÑÄËÏ×Ï-ÏÒ¦¤ÎÔÏ×ÁÎÉÊ ÔÅËÓÔÏ×ÉÊ ÒÅÄÁËÔÏÒ, ÝÏ ×ÉËÏÒÉÓÔÏ×Õ¤ÔØÓÑ
+ÄÌÑ ÓÔ×ÏÒÅÎÎÑ, ÐÏËÁÚÕ ÔÁ ÍÏÄÉƦËÁæ§ ÔÅËÓÔÏ×ÉÈ ÆÁÊÌ¦× (ÑË
+¦ÎÔÅÒÁËÔÉ×ÎÏ, ÔÁË ¦ Ú¦ ÓËÒÉÐÔ¦×). äÌÑ Â¦ÌØÛÏÓÔ¦ æÌÅÊ ed ÂÕ× ÚÁͦÎÅÎÉÊ
+ÐÏ×ÎÏÅËÒÁÎÎÉÍÉ ÒÅÄÁËÔÏÒÁÍÉ (ÎÁÐÒÉËÌÁÄ, joe, vi, emacs).
%description -l tr
-Bu paket UN*X'in en eski metin düzenleyicilerinden birini içermektedir. Bazý
-yazýlýmlar hala bu programa gereksinim duymaktadýrlar.
+Bu paket UN*X'in en eski metin düzenleyicilerinden birini
+içermektedir. Bazý yazýlýmlar hala bu programa gereksinim
+duymaktadýrlar.
+
+%description -l ru
+Ed - ÜÔÏ ÓÔÒÏÞÎÏ-ÏÒÉÅÎÔÉÒÏ×ÁÎÎÙÊ ÔÅËÓÔÏ×ÙÊ ÒÅÄÁËÔÏÒ, ÉÓÐÏÌØÚÕÅÍÙÊ ÄÌÑ
+ÓÏÚÄÁÎÉÑ, ÐÏËÁÚÁ É ÍÏÄÉÆÉËÁÃÉÉ ÔÅËÓÔÏ×ÙÈ ÆÁÊÌÏ× (ËÁË ÉÎÔÅÒÁËÔÉ×ÎÏ, ÔÁË
+É ÐÒÉ ÐÏÍÏÝÉ ÓËÒÉÐÔÏ×). äÌÑ ÂÏÌØÛÉÎÓÔ×Á ÃÅÌÅÊ ed ÂÙÌ ÚÁÍÅÎÅÎ
+ÐÏÌÎÏÜËÒÁÎÎÙÍÉ ÒÅÄÁËÔÏÒÁÍÉ (ÎÁÐÒÉÍÅÒ, joe, vi, emacs).
%prep
%setup -q
%patch0 -p1
%patch1 -p1
+%patch2 -p1
+%patch3 -p1
+%patch4 -p1
+%patch5 -p1
%build
chmod +w configure
-autoconf
-CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" \
-./configure %{_target_platform} \
- --prefix=/usr \
- --exec-prefix=/
+%{__autoconf}
+%configure
rm -f ed.info
-make
+rm -f stamp-h.in
+%{__make}
%install
rm -rf $RPM_BUILD_ROOT
-make install DESTDIR=$RPM_BUILD_ROOT
-gzip -9nf $RPM_BUILD_ROOT{%{_mandir}/man1/*,%{_infodir}/*info*} \
- NEWS POSIX README
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
-%post
-/sbin/install-info %{_infodir}/ed.info.gz /etc/info-dir
-
-%preun
-if [ "$1" = "0" ]; then
- /sbin/install-info --delete %{_infodir}/ed.info.gz /etc/info-dir
-fi
+bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
%clean
rm -rf $RPM_BUILD_ROOT
+%post
+[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
+
+%postun
+[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
+
%files
%defattr(644,root,root,755)
-%doc *.gz
-%attr(755,root,root) /bin/*
-
-%{_infodir}/ed.info.gz
+%doc ChangeLog NEWS POSIX README THANKS TODO
+%attr(755,root,root) %{_bindir}/*
+%{_infodir}/*info*
%{_mandir}/man1/*
-
-%changelog
-* Thu Jun 17 1999 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
- [0.2-15]
-- added ed-autoconf.patch which allow "make install
- DESTDIR=</install/prefix>" and fix making red man page as groff include,
-- more rpm macros.
-
-* Mon Jun 07 1999 Jan Rêkorajski <baggins@pld.org.pl>
-- spec cleanup.
-
-* Thu Apr 22 1999 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
- [0.2-14]
-- recompiles on new rpm.
-
-* Thu Apr 1 1999 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
- [0.2-13]
-- removed man group from man pages,
-- added gzipping %doc,
-- removed striping binaries (added LDFLAGS="-s" to ./configure env),
-- added ed-info.patch.
-
-* Tue Oct 06 1998 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
- [0.2-6d]
-- translation modified for pl,
-- restricted ELF binary permission,
-- major modifications of the spec file.
-
-* Thu Jul 23 1998 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
- [0.2-6]
-- build against glibc-2.1.
-
-* Mon Apr 27 1998 Prospector System <bugs@redhat.com>
-- translations modified for de, fr, tr
-
-* Fri Oct 17 1997 Donnie Barnes <djb@redhat.com>
-- added install-info support
-- added BuildRoot
-- correct URL in Source line
-
-* Mon Jun 02 1997 Erik Troan <ewt@redhat.com>
-- built against glibc
+%lang(nl) %{_mandir}/nl/man1/*
+%lang(pl) %{_mandir}/pl/man1/*