]> git.pld-linux.org Git - packages/ed.git/blobdiff - ed.spec
- removed Prereq: /usr/sbin/fix-info-dir
[packages/ed.git] / ed.spec
diff --git a/ed.spec b/ed.spec
index c983b2b2ad23cb3c5276e76195683179eced4157..ce48b905c281b85bbecebdf84b594a72ecbd9bc1 100644 (file)
--- a/ed.spec
+++ b/ed.spec
@@ -1,91 +1,80 @@
-Summary:     GNU Line Editor
-Summary(de): GNU-Zeileneditor 
-Summary(fr): Éditeur ligne de GNU
-Summary(pl): Edytor liniowy GNU
-Summary(tr): GNU satýr düzenleyici
-Name:        ed
-Version:     0.2
-Release:     10
-Copyright:   GPL
-Group:       Applications/Editors
-Group(pl):   Aplikacje/Edytory
-Source:      ftp://prep.ai.mit.edu/pub/gnu/%{name}-%{version}.tar.gz
-Prereq:      /sbin/install-info
-Buildroot:   /tmp/%{name}-%{version}-root
+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
+Name:          ed
+Version:       0.2
+Release:       17
+Copyright:     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
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define                _prefix         /usr
+%define                _exec_prefix    /
 
 %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.
+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é.
+É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 implementacj± GNU standardowego, pierwszego unixowego edytora.
-Czê¶æ starszych programów mo¿e jeszcze korzystaæ z niego ale wiêkszo¶æ
-ju¿ prawdopodobnie nie potrzrebuje 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 tr
 Bu paket UN*X'in en eski metin düzenleyicilerinden birini içermektedir. Bazý
 yazýlýmlar hala bu programa gereksinim duymaktadýrlar.
 
 %prep
-%setup -q
+%setup  -q
+%patch0 -p1
+%patch1 -p1
 
 %build
-CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr --exec-prefix=/
+chmod +w configure
+autoconf
+LDFLAGS="-s"; export LDFLAGS
+%configure
+
+rm -f ed.info
 make 
-strip ed
 
 %install
-make prefix=$RPM_BUILD_ROOT/usr \
-    exec_prefix=$RPM_BUILD_ROOT install
+rm -rf $RPM_BUILD_ROOT
+make install DESTDIR=$RPM_BUILD_ROOT
 
-gzip -fn $RPM_BUILD_ROOT/usr/info/ed.info
+gzip -9nf $RPM_BUILD_ROOT{%{_mandir}/man1/*,%{_infodir}/*info*} \
+       NEWS POSIX README
 
 %post
-/sbin/install-info /usr/info/ed.info.gz /usr/info/dir --entry \
-"* ed: (ed).                                     The GNU Line Editor."
+[ -x /usr/sbin/fix-info-dir ] && /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
 
-%preun
-/sbin/install-info --delete /usr/info/ed.info.gz /usr/info/dir --entry \
-"* ed: (ed).                                     The GNU Line Editor."
+%postun
+[ -x /usr/sbin/fix-info-dir ] && /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
-%defattr(644, root, root, 755)
-%doc NEWS POSIX README 
-%attr(755, root, root) /bin/*
-/usr/info/ed.info.gz
-%attr(644, root,  man) /usr/man/man1/*
-
-%changelog
-* Sat Nov 21 1998 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
-  [0.2-10]
-- fixed --entry text in {un}registering info page for ed in %post %preun.
-
-* Tue Oct 06 1998 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
-  [0.2-9]
-- added pl translation,
-- major modifications of the spec file.
-
-* 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
+%defattr(644,root,root,755)
+%doc *.gz
+%attr(755,root,root) /bin/*
+
+%{_infodir}/ed.info.gz
+%{_mandir}/man1/*
This page took 0.085861 seconds and 4 git commands to generate.