Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37513047
en ru br
ALT Linux repos
S:4.9.0.32.5420-alt1
5.0: 4.1.5-alt2
4.1: 4.1.5-alt2
4.0: 4.1.5-alt2
3.0: 4.1.4-alt2

Group :: Editors
RPM: sed

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: sed
Version: 4.1.4
Release: alt2
Serial: 1

Summary: A GNU stream text editor
Group: Editors
License: GPL
Url: http://www.gnu.org/software/sed/

%def_with test

Source: ftp://ftp.gnu.org/pub/gnu/sed/sed-%version.tar.bz2
Source1: subst.tar.gz
Source2: http://sed.sourceforge.net/grabbag/tutorials/sedfaq.txt
Source3: http://sed.sf.net/sed1line.txt

Patch0: sed-4.1.4-cvs-20050210.patch
Patch1: sed-4.0.9-alt-texinfo.patch
Patch2: sed-4.1.2-alt-man.patch
Patch3: sed-4.0.9-alt-doc-sedfaq.patch
Patch4: sed-4.1.2-deb-doc.patch

Provides: /bin/sed, %_bindir/subst
Requires(post): %install_info
Requires(preun): %uninstall_info

# for autoreconf/autopoint.

#BuildRequires: cvs

%description
The sed (Stream EDitor) editor is a stream or batch (non-interactive)
editor.  Sed takes text as input, performs an operation or set of
operations on the text and outputs the modified text.  The operations
that sed performs (substitutions, deletions, insertions, etc.) can be
specified in a script file or from the command line.

%prep
%setup -q -a1
%patch0 -p0
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1

%__install -pm644 %SOURCE2 %SOURCE3 doc/
bzip2 -9 doc/*.txt
bzip2 -9fk NEWS

%build
#autoreconf -fisv
%make_build -C subst
./subst/subst -p 's, at DOCDIR at ,%_docdir/%name-%version,' doc/sed-in.texi doc/sed.x

%configure
%make_build
%{?!__buildreqs:%{?!_without_check:%{?!_disable_check:%make_build -k check}}}

%install
%makeinstall
%__mv $RPM_BUILD_ROOT%_bindir $RPM_BUILD_ROOT/bin
make -C subst install

%find_lang %name

%post
%install_info %name.info

%preun
%uninstall_info %name.info

%files -f %name.lang
/bin/*
%_bindir/*
%_mandir/man?/*
%_infodir/*.info*
%doc BUGS NEWS.* README THANKS doc/*.txt.bz2

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin