# # spec file for package sed (Version 4.1.5) # # Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild Name: sed Url: http://www.gnu.org/directory/sed.html Version: 4.1.5 Release: 137 License: GPLv2+ Group: System/Base Summary: A Stream-Oriented Non-Interactive Text Editor Provides: base:/bin/sed PreReq: %install_info_prereq AutoReqProv: on Source: %name-%version.tar.bz2 Patch0: sed-follow_symlinks.patch Patch1: sed-4.1.5-fix_warnings.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %description Sed takes text input, performs one or more operations on it, and outputs the modified text. Sed is typically used for extracting parts of a file using pattern matching or for substituting multiple occurrences of a string within a file. Authors: -------- Francois Pinard Tom Lord David J. MacKenzie Akiko Matsushita Alan Magnuson Alexander Lehmann Amos Shapira Andreas Gustafsson Andreas Schwab Assar Westerlund Ben A. Mesander Bengt Mertensson Bernhard Daeubler Bjorn R. Bjornsson Brendan Kehoe Erez Zadok Eric Allman Eric Backus Geoff Russell Greg A. Woods Hal Peterson Hoang Uong Ian Lance Taylor Jason Merrill Jim Avera Jim Kingdon Jim Meyering Joel Sherrill John David Anglin Joseph E. Sacco Karl Berry Karl Vogel Kaveh R. Ghazi Kristine Lund Krste Asanovic Marion Hakanson Mark Seiden Matthias Rabe Michael Fetterman Michael L. Welcome Mike Lijewski Nick S. Kanakakor Nicolas Pioch Noah Friedman Pete Chown Pierre Gaumond Pierre Mathieu Robert Bernstein Rene' Seindal Richard Stallman Roland H. Pesch Roland McGrath Scott Bartram Simon Leinen Skip Montanaro Stephen Perkins Steve Williamson Thorsten Ohl Tom McConnell Tom Quinn Tom Tromey Ulrich Drepper Vern Paxson Vivek P. Singhal Walter Wong Paolo Bonzini (bonzini@gnu.org) Philip Hazel (ph10@cam.ac.uk) %prep %setup -q %patch0 -p1 %patch1 -p1 %build %define warn_flags -Wall -Wstrict-prototypes -Wpointer-arith -Wformat-security %{?suse_update_config:%{suse_update_config}} cp /usr/share/gettext/config.rpath config autoreconf --force --install test -f po/Makevars.template && mv po/Makevars.template po/Makevars export CFLAGS="$RPM_OPT_FLAGS %warn_flags" ./configure --prefix=/usr \ --mandir=%_mandir \ --infodir=%_infodir \ --without-included-regex \ --enable-html \ %{_target_cpu}-suse-linux %if %do_profiling make %{?_smp_mflags} CFLAGS="$CFLAGS "%cflags_profile_generate make %{?_smp_mflags} check make clean make %{?_smp_mflags} CFLAGS="$CFLAGS "%cflags_profile_feedback %else make %{?_smp_mflags} %endif make %{?_smp_mflags} check %install %makeinstall # Move sed to /bin: mkdir -p $RPM_BUILD_ROOT/bin mv $RPM_BUILD_ROOT/usr/bin/sed $RPM_BUILD_ROOT/bin ln -s ../../bin/sed $RPM_BUILD_ROOT/usr/bin/sed # Remove installed documentation (it is packaged directly in the files section). # The actual directory depends on the build environment on the different architectures: rm -f $RPM_BUILD_ROOT/usr/share/doc/sed.html $RPM_BUILD_ROOT/usr/share/doc/sed-4.1.5/sed.html %find_lang %name %files -f %name.lang %defattr(-, root, root) /bin/sed /usr/bin/sed %doc AUTHORS BUGS COPYING* INSTALL NEWS README* THANKS doc/sed.html %_infodir/sed.info*.gz %_mandir/man*/*.gz %post %install_info --info-dir=%_infodir %_infodir/%name.info.gz %postun %install_info_delete --info-dir=%_infodir %_infodir/%name.info.gz %changelog