Sisyphus repository
Last update: 16 september 2019 | SRPMs: 17434 | Visits: 15102439
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.7
Release: alt1
Epoch: 1

Summary: A GNU stream text editor
Group: Editors
License: GPLv3+
Url: https://www.gnu.org/software/sed/

%define srcname %name-%version-%release
# git://git.altlinux.org/people/ldv/packages/sed refs/heads/sed-current
Source0: %srcname.tar
# git://git.altlinux.org/people/ldv/packages/sed refs/heads/po-current
Source1: po-%version-%release.tar
Source2: subst.tar
# git://git.altlinux.org/people/ldv/packages/sed 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}

%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 -n %srcname -a1 -a2
%patch -p1

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

echo -n %version-%release > .tarball-version
# Force configure.ac 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

%build
%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
%make_build

%install
%makeinstall_std
%makeinstall_std -C subst

%find_lang %name

%check
%make_build -k check

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

%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