Summary: A GNU stream text editor. Name: sed Version: 4.2 Release: 1 License: GPL Group: Applications/Text URL: http://www.gnu.org/software/sed/ Source0: ftp://ftp.gnu.org/pub/gnu/sed/%{name}-%{version}.tar.bz2 Source1: ftp://ftp.gnu.org/pub/gnu/sed/%{name}-%{version}.tar.bz2.sig Source2: http://sed.sourceforge.net/sedfaq.txt # patch required to avoid "Memory exhausted" errors on AIX # see http://www.mail-archive.com/gentoo-alt@lists.gentoo.org/msg02038.html Patch0: %{name}-%{version}-aix-memory.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: sed Requires: gettext >= 0.17 Requires: /sbin/install-info, info %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 %patch0 %build PATH=/opt/freeware/bin:$PATH ./configure \ --prefix=%{_prefix} \ --mandir=%{_mandir} \ --infodir=%{_infodir} make %{?_smp_mflags} install -m 644 %{SOURCE2} sedfaq.txt gzip --best sedfaq.txt %install [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT make DESTDIR=$RPM_BUILD_ROOT install /usr/bin/strip ${RPM_BUILD_ROOT}%{_bindir}/* || : gzip --best ${RPM_BUILD_ROOT}%{_infodir}/sed.info* rm -f ${RPM_BUILD_ROOT}%{_infodir}/dir ( cd $RPM_BUILD_ROOT mkdir -p usr/linux/bin ln -sf ../../..%{_bindir}/sed usr/linux/bin/sed ) %post /sbin/install-info %{_infodir}/sed.info.gz %{_infodir}/dir || : %preun if [ $1 = 0 ]; then /sbin/install-info --delete %{_infodir}/sed.info.gz %{_infodir}/dir || : fi %clean [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,system) %doc BUGS NEWS THANKS README AUTHORS sedfaq.txt.gz %{_bindir}/sed %{_infodir}/*.info* %{_mandir}/man?/* %{_datadir}/locale/* /usr/linux/bin/* %changelog * Thu Apr 30 2009 Michael Perzl - 4.2-1 - updated to version 4.2 * Mon Mar 17 2008 Michael Perzl - 4.1.5-1 - first version for AIX V5.1 and higher