]> git.pld-linux.org Git - packages/ed.git/blobdiff - ed.spec
- updated to 1.10
[packages/ed.git] / ed.spec
diff --git a/ed.spec b/ed.spec
index 44f86b27606071e53544034d08a3c203f4f19a7b..2fdb5e2ad2a041c6e0d583204c003834aad9265d 100644 (file)
--- a/ed.spec
+++ b/ed.spec
@@ -9,22 +9,21 @@ 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:       36
-License:       GPL
+Version:       1.10
+Release:       1
+License:       GPL v3+
 Group:         Applications/Editors
-Source0:       ftp://ftp.gnu.org/pub/gnu/ed/%{name}-%{version}.tar.gz
-# Source0-md5: ddd57463774cae9b50e70cd51221281b
+Source0:       http://ftp.gnu.org/gnu/ed/%{name}-%{version}.tar.lz
+# Source0-md5: d1e51bb6e78417af8fb12684c31fd9eb
 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
+Patch1:                %{name}-multilib.patch
 URL:           http://www.gnu.org/software/ed/
-BuildRequires: autoconf
+BuildRequires: help2man
+BuildRequires: lzip
+BuildRequires: rpmbuild(macros) >= 1.402
+BuildRequires: tar >= 1:1.22
 BuildRequires: texinfo
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -89,45 +88,44 @@ Ed - это строчно-ориентированный текстовый р
 полноэкранными редакторами (например, joe, vi, emacs).
 
 %prep
-%setup  -q
+%setup -q
 %patch0 -p1
 %patch1 -p1
-%patch2 -p1
-%patch3 -p1
-%patch4 -p1
-%patch5 -p1
+
+# force rebuild
+%{__rm} doc/ed.info
 
 %build
-chmod +w configure
-%{__autoconf}
+# not autoconf configure, but options compatible
 %configure
 
-rm -f ed.info
-rm -f stamp-h.in
-%{__make}
+%{__make} all doc
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%{__make} install \
+%{__make} install install-man \
        DESTDIR=$RPM_BUILD_ROOT
 
 bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
+%{__rm} $RPM_BUILD_ROOT%{_mandir}/README.ed-non-english-man-pages
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post
-[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
+%post  -p /sbin/postshell
+-/usr/sbin/fix-info-dir -c %{_infodir}
 
-%postun
-[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
+%postun        -p /sbin/postshell
+-/usr/sbin/fix-info-dir -c %{_infodir}
 
 %files
 %defattr(644,root,root,755)
-%doc ChangeLog NEWS POSIX README THANKS TODO
-%attr(755,root,root) %{_bindir}/*
-%{_infodir}/*info*
-%{_mandir}/man1/*
+%doc AUTHORS ChangeLog NEWS README TODO
+%attr(755,root,root) %{_bindir}/ed
+%attr(755,root,root) %{_bindir}/red
+%{_infodir}/ed.info*
+%{_mandir}/man1/ed.1*
+%{_mandir}/man1/red.1*
 %lang(nl) %{_mandir}/nl/man1/*
 %lang(pl) %{_mandir}/pl/man1/*
This page took 0.175941 seconds and 4 git commands to generate.