Sisyphus repository
Last update: 31 march 2020 | SRPMs: 17560 | Visits: 17795401
en ru br
ALT Linux repos
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.7
Release: alt1
Epoch: 1

Summary: A GNU stream text editor
Group: Editors
License: GPLv3+

%define srcname %name-%version-%release
# git:// refs/heads/sed-current
Source0: %srcname.tar
# git:// refs/heads/po-current
Source1: po-%version-%release.tar
Source2: subst.tar
# git:// sed-current..sed-alt
Patch: %srcname.patch

%def_enable selinux

BuildRequires: makeinfo, gnulib >= 0.1.2305.95c96

# for acl copying support.

BuildRequires: libacl-devel

%{?_enable_selinux:BuildRequires: libselinux-devel}

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.

%setup -n %srcname -a1 -a2
%patch -p1

# Build scripts expect to find package version in this file.

echo -n %version-%release > .tarball-version
# Force to define BUILD_MAN_PAGE.
mkdir .git

# Generate LINGUAS file.

ls po/*.po 2>/dev/null |
sed 's|.*/||; s|\.po$||' > po/LINGUAS

# Compress docs for packaging.

xz doc/*.txt
xz -k NEWS

%make_build -C subst CPPFLAGS="-D_GNU_SOURCE $(getconf LFS_CFLAGS)"
./subst/subst -p 's, at DOCDIR at ,%_docdir/%name-%version,' \
doc/sed.texi doc/sed.x

./bootstrap --force --skip-po --gnulib-srcdir=%_datadir/gnulib
%configure --bindir=/bin
%make_build -C po update-po

%makeinstall_std -C subst

%find_lang %name

%make_build -k check

%files -f %name.lang
%doc BUGS NEWS.xz README doc/*.txt.xz


Full changelog you can see here

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