Sisyphus repository
Last update: 28 february 2020 | SRPMs: 17502 | Visits: 17545414
en ru br
ALT Linux repos
S:4.7-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.5
Release: alt2
Serial: 1

Summary: A GNU stream text editor
Group: Editors
License: GPL
Url: http://www.gnu.org/software/sed/
Packager: Dmitry V. Levin <ldv at altlinux.org>

%def_with test

# ftp://ftp.gnu.org/pub/gnu/sed/sed-%version.tar.gz

Source: sed-%version.tar
Source1: subst.tar
Source2: http://sed.sourceforge.net/grabbag/tutorials/sedfaq.txt
Source3: http://sed.sf.net/sed1line.txt

Patch1: sed-4.0.9-alt-texinfo.patch
Patch2: sed-4.1.2-alt-man.patch
Patch3: sed-4.1.5-alt-doc-sedfaq.patch
Patch4: sed-4.1.2-deb-doc.patch
Patch5: sed-4.1.5-alt-warnings.patch
Patch6: sed-4.1.5-up-utf8.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
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
find -type f -name \*.orig -delete

install -pm644 %_sourcedir/{sedfaq,sed1line}.txt doc/
bzip2 -9 doc/*.txt
bzip2 -9k 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 %buildroot%_bindir %buildroot/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.bz2 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