]> git.pld-linux.org Git - packages/ed.git/blobdiff - ed.spec
- updated to 0.6 (GPL v3 applies)
[packages/ed.git] / ed.spec
diff --git a/ed.spec b/ed.spec
index fa0b47075fe4d5df23a39dc0d78fccc94ce2ad50..892d767f3a047ad0e34a46d4a57d3e4b08d30ef4 100644 (file)
--- a/ed.spec
+++ b/ed.spec
 Summary:       GNU Line Editor
-Summary(de):   GNU-Zeileneditor 
-Summary(fr):   Éditeur ligne de GNU
-Summary(pl):   GNU edytor liniowy 
-Summary(tr):   GNU satýr düzenleyici
+Summary(de.UTF-8):     GNU-Zeileneditor
+Summary(es.UTF-8):     Editor de líneas de la GNU
+Summary(fr.UTF-8):     Éditeur ligne de GNU
+Summary(ja.UTF-8):     GNU ラインエディタ。
+Summary(pl.UTF-8):     GNU edytor liniowy
+Summary(pt_BR.UTF-8):  Editor de linhas da GNU
+Summary(ru.UTF-8):     Строчный редактор GNU
+Summary(tr.UTF-8):     GNU satır düzenleyici
+Summary(uk.UTF-8):     Рядковий редактор GNU
 Name:          ed
-Version:       0.2
-Release:       15
-Copyright:     GPL
+Version:       0.6
+Release:       1
+License:       GPL v3+
 Group:         Applications/Editors
-Group(pl):     Aplikacje/Edytory
-Source:                ftp://prep.ai.mit.edu/pub/gnu/ed/%{name}-%{version}.tar.gz
-Patch:         ed-info.patch
-Prereq:                /sbin/install-info
-Buildroot:     /tmp/%{name}-%{version}-root
+Source0:       ftp://ftp.gnu.org/gnu/ed/%{name}-%{version}.tar.bz2
+# Source0-md5: 95ae976ffc36e5b881cc7a591628a9ce
+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}-debian.patch
+Patch3:                %{name}-multilib.patch
+URL:           http://www.gnu.org/software/ed/
+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
+%description -l de.UTF-8
 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.
-
-%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é.
-
-%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.
-
-%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.
+Editoren unter *nix. Manche Programme verlassen sich darauf, i.a.
+*brauchen* Sie ihn wahrscheinlich nicht.
+
+%description -l es.UTF-8
+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.UTF-8
+É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.UTF-8
+ed は行指向のテキストエディタで、( 対話的でもシェルスクリプト経由でも
+) テキストファイルの生成、表示、修正に用いられます。主な目的としては、
+フルスクリーンエディタ ( 例えば emacs や vi ) によってなされている
+通常の利用に ed を置き換えてきたことです。
+
+ed は初期の Unix エディタで、いろいろなプログラムに使われてきました。
+しかし、一般には多分インストールする必要はなく、
+多分使いこなすこともないでしょう。
+
+%description -l pl.UTF-8
+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.UTF-8
+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.UTF-8
+Ed - це рядково-орієнтований текстовий редактор, що використовується
+для створення, показу та модифікації текстових файлів (як
+інтерактивно, так і зі скриптів). Для більшості цілей ed був замінений
+повноекранними редакторами (наприклад, joe, vi, emacs).
+
+%description -l tr.UTF-8
+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.UTF-8
+Ed - это строчно-ориентированный текстовый редактор, используемый для
+создания, показа и модификации текстовых файлов (как интерактивно, так
+и при помощи скриптов). Для большинства целей ed был заменен
+полноэкранными редакторами (например, joe, vi, emacs).
 
 %prep
 %setup -q
-%patch -p1
+%patch0 -p1
+%patch1 -p1
+%patch2 -p1
+%patch3 -p1
+
+rm -f doc/ed.info
 
 %build
-CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" \
-./configure %{_target_platform} \
-       --prefix=/usr \
-       --exec-prefix=/
+# not autoconf configure, but options compatible
+%configure
 
-rm -f ed.info
-make 
+%{__make} all doc
 
 %install
 rm -rf $RPM_BUILD_ROOT
-make install prefix=$RPM_BUILD_ROOT/usr \
-    exec_prefix=$RPM_BUILD_ROOT \
-    mandir=$RPM_BUILD_ROOT%{_mandir}/man1 \
-    infodir=$RPM_BUILD_ROOT%{_infodir}
-
-rm -f $RPM_BUILD_ROOT%{_mandir}/man1/red.1
-echo .so ed.1 > $RPM_BUILD_ROOT%{_mandir}/man1/red.1
-
-gzip -9nf $RPM_BUILD_ROOT/usr/{share/man/man1/*,share/info/*info*} \
-       NEWS POSIX README
 
-%post
-/sbin/install-info %{_infodir}/ed.info.gz /etc/info-dir
+%{__make} install install-man \
+       DESTDIR=$RPM_BUILD_ROOT
 
-%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 AUTHORS ChangeLog NEWS README TODO
+%attr(755,root,root) %{_bindir}/*
+%{_infodir}/*info*
 %{_mandir}/man1/*
-
-%changelog
-* Mon Jun 07 1999 Jan Rêkorajski <baggins@pld.org.pl>
-  [0.2-15]
-- 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/*
This page took 0.039674 seconds and 4 git commands to generate.