Summary: GNU Stream Editor Name: sed %define version 3.02 Version: %{version} Release: 1a Copyright: GPL Group: Utilities/Text Source0: ftp://prep.ai.mit.edu/pub/gnu/sed-%{version}.tar.gz BuildRoot: /tmp/sed-root %description Sed copies the named files (standard input default) to the standard output, edited according to a script of commands. %changelog * Mon Aug 31 1998 Keisuke Fujii - 1st release with v.3.02 %prep %setup %build ./configure --prefix=/usr --exec-prefix=/usr make CFLAGS="$RPM_OPT_FLAGS" LDFLAGS=-s %install mkdir -p $RPM_BUILD_ROOT/bin make prefix=$RPM_BUILD_ROOT/usr exec_prefix=$RPM_BUILD_ROOT/usr install mv -f $RPM_BUILD_ROOT/usr/bin/sed $RPM_BUILD_ROOT/bin/sed strip $RPM_BUILD_ROOT/bin/sed gzip -9nf $RPM_BUILD_ROOT/usr/info/*.info* %post /sbin/install-info /usr/info/sed.info.gz /usr/info/dir %preun if [ "$1" = 0 ]; then /sbin/install-info --delete /usr/info/sed.info.gz /usr/info/dir fi %clean rm -rf $RPM_BUILD_ROOT %files %doc ANNOUNCE AUTHORS BUGS COPYING ChangeLog INSTALL NEWS README* THANKS TODO /bin/sed /usr/man/man1/sed.1 /usr/info/*.info*