2006-12-19 00:17:47 +01:00
|
|
|
#
|
|
|
|
# spec file for package sed (Version 4.1.5)
|
|
|
|
#
|
2010-01-14 16:39:18 +01:00
|
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2006-12-19 00:17:47 +01:00
|
|
|
#
|
2009-06-18 17:51:22 +02:00
|
|
|
# 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.
|
|
|
|
|
2006-12-19 00:17:47 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-02-19 02:34:00 +01:00
|
|
|
|
2006-12-19 00:17:47 +01:00
|
|
|
Name: sed
|
2008-02-19 02:34:00 +01:00
|
|
|
Url: http://www.gnu.org/directory/sed.html
|
2006-12-19 00:17:47 +01:00
|
|
|
Version: 4.1.5
|
2010-07-30 15:50:49 +02:00
|
|
|
Release: 137
|
|
|
|
License: GPLv2+
|
2006-12-19 00:17:47 +01:00
|
|
|
Group: System/Base
|
2008-02-19 02:34:00 +01:00
|
|
|
Summary: A Stream-Oriented Non-Interactive Text Editor
|
2006-12-19 00:17:47 +01:00
|
|
|
Provides: base:/bin/sed
|
|
|
|
PreReq: %install_info_prereq
|
2008-02-19 02:34:00 +01:00
|
|
|
AutoReqProv: on
|
2006-12-19 00:17:47 +01:00
|
|
|
Source: %name-%version.tar.bz2
|
2007-03-11 00:09:22 +01:00
|
|
|
Patch0: sed-follow_symlinks.patch
|
|
|
|
Patch1: sed-4.1.5-fix_warnings.patch
|
2006-12-19 00:17:47 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
2008-02-19 02:34:00 +01:00
|
|
|
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
|
2007-03-11 00:09:22 +01:00
|
|
|
occurrences of a string within a file.
|
2006-12-19 00:17:47 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Francois Pinard <pinard@iro.umontreal.ca>
|
|
|
|
Tom Lord <lord@cygnus.com>
|
2007-03-11 00:09:22 +01:00
|
|
|
David J. MacKenzie <djm@gnu.org>
|
2006-12-19 00:17:47 +01:00
|
|
|
Akiko Matsushita <matusita@sra.co.jp>
|
|
|
|
Alan Magnuson <awm@osc.edu>
|
|
|
|
Alexander Lehmann <alex@hal.rhein-main.de>
|
|
|
|
Amos Shapira <amoss@cs.huji.ac.il>
|
|
|
|
Andreas Gustafsson <gson@niksula.hut.fi>
|
|
|
|
Andreas Schwab <schwab@suse.de>
|
|
|
|
Assar Westerlund <assar@nada.kth.se>
|
|
|
|
Ben A. Mesander <ben@piglet.cr.usgs.gov>
|
|
|
|
Bengt Mertensson <bengt@mathematik.uni-bremen.de>
|
|
|
|
Bernhard Daeubler <Bernhard.Daeubler@physik.uni-ulm.de>
|
|
|
|
Bjorn R. Bjornsson <brb@falcon.is>
|
|
|
|
Brendan Kehoe <brendan@cygnus.com>
|
|
|
|
Erez Zadok <ezk@cs.columbia.edu>
|
|
|
|
Eric Allman <sendmail@sendmail.ORG>
|
|
|
|
Eric Backus <ericb@lsid.hp.com>
|
|
|
|
Geoff Russell <grussell@guest.adelaide.edu.au>
|
|
|
|
Greg A. Woods <woods@web.apc.org>
|
|
|
|
Hal Peterson <hrp@pecan.cray.com>
|
|
|
|
Hoang Uong <hoang@ornews.intel.com>
|
|
|
|
Ian Lance Taylor <ian@cygnus.com>
|
|
|
|
Jason Merrill <jason@cygnus.com>
|
|
|
|
Jim Avera <jima@netcom.com>
|
|
|
|
Jim Kingdon <kingdon@cygnus.com>
|
|
|
|
Jim Meyering <meyering@na-net.ornl.gov>
|
|
|
|
Joel Sherrill <jsherril@uahcs2.cs.uah.edu>
|
|
|
|
John David Anglin <dave@hiauly1.hia.nrc.ca>
|
|
|
|
Joseph E. Sacco <jsacco@ssl.com>
|
|
|
|
Karl Berry <karl@cs.umb.edu>
|
|
|
|
Karl Vogel <vogelke@c-17igp.wpafb.af.mil>
|
|
|
|
Kaveh R. Ghazi <ghazi@noc.rutgers.edu>
|
|
|
|
Kristine Lund <lund@lpnaxp.in2p3.fr>
|
|
|
|
Krste Asanovic <krste@icsi.berkeley.edu>
|
|
|
|
Marion Hakanson <hakanson@cse.ogi.edu>
|
|
|
|
Mark Seiden <mis@seiden.com>
|
|
|
|
Matthias Rabe <rabe@mathematik.uni-bielefeld.de>
|
|
|
|
Michael Fetterman <mafetter@ichips.intel.com>
|
|
|
|
Michael L. Welcome <welcome@bigbird.llnl.gov>
|
|
|
|
Mike Lijewski <lijewski@theory.tc.cornell.edu>
|
|
|
|
Nick S. Kanakakor <skanan@otl.scu.edu>
|
|
|
|
Nicolas Pioch <pioch@inf.enst.fr>
|
2007-03-11 00:09:22 +01:00
|
|
|
Noah Friedman <friedman@gnu.org>
|
2006-12-19 00:17:47 +01:00
|
|
|
Pete Chown <pete.chown@dale.dircon.co.uk>
|
|
|
|
Pierre Gaumond <gaumondp@ere.umontreal.ca>
|
|
|
|
Pierre Mathieu <mathieu@geod.emr.ca>
|
|
|
|
Robert Bernstein <rocky@panix.com>
|
|
|
|
Rene' Seindal <seindal@kb.dk>
|
2007-03-11 00:09:22 +01:00
|
|
|
Richard Stallman <rms@gnu.org>
|
2006-12-19 00:17:47 +01:00
|
|
|
Roland H. Pesch <roland@wrs.com>
|
2007-03-11 00:09:22 +01:00
|
|
|
Roland McGrath <roland@gnu.org>
|
2006-12-19 00:17:47 +01:00
|
|
|
Scott Bartram
|
|
|
|
Simon Leinen <simon@lia.di.epfl.ch>
|
|
|
|
Skip Montanaro <skip@automatrix.com>
|
|
|
|
Stephen Perkins <perkins@cps.msu.edu>
|
|
|
|
Steve Williamson <willy@uinpla.npl.uiuc.edu>
|
|
|
|
Thorsten Ohl <ohl@physics.harvard.edu>
|
|
|
|
Tom McConnell <tmcconne@sedona.intel.com>
|
|
|
|
Tom Quinn <trq@dionysos.thphys.ox.ac.uk>
|
|
|
|
Tom Tromey <tromey@cns.caltech.edu>
|
2007-03-11 00:09:22 +01:00
|
|
|
Ulrich Drepper <drepper@gnu.org>
|
2006-12-19 00:17:47 +01:00
|
|
|
Vern Paxson <vern@ee.lbl.gov>
|
|
|
|
Vivek P. Singhal <singhal@cs.utexas.edu>
|
|
|
|
Walter Wong <wcw+@cmu.edu>
|
|
|
|
Paolo Bonzini (bonzini@gnu.org)
|
|
|
|
Philip Hazel (ph10@cam.ac.uk)
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2007-03-11 00:09:22 +01:00
|
|
|
%patch0 -p1
|
|
|
|
%patch1 -p1
|
2006-12-19 00:17:47 +01:00
|
|
|
|
|
|
|
%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
|
2010-07-30 15:50:49 +02:00
|
|
|
make %{?_smp_mflags} CFLAGS="$CFLAGS "%cflags_profile_generate
|
|
|
|
make %{?_smp_mflags} check
|
2006-12-19 00:17:47 +01:00
|
|
|
make clean
|
2010-07-30 15:50:49 +02:00
|
|
|
make %{?_smp_mflags} CFLAGS="$CFLAGS "%cflags_profile_feedback
|
2006-12-19 00:17:47 +01:00
|
|
|
%else
|
2010-07-30 15:50:49 +02:00
|
|
|
make %{?_smp_mflags}
|
2006-12-19 00:17:47 +01:00
|
|
|
%endif
|
2010-07-30 15:50:49 +02:00
|
|
|
make %{?_smp_mflags} check
|
2006-12-19 00:17:47 +01:00
|
|
|
|
|
|
|
%install
|
2008-02-19 02:34:00 +01:00
|
|
|
%makeinstall
|
2006-12-19 00:17:47 +01:00
|
|
|
# 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
|
2008-02-19 02:34:00 +01:00
|
|
|
%find_lang %name
|
2006-12-19 00:17:47 +01:00
|
|
|
|
2008-02-19 02:34:00 +01:00
|
|
|
%files -f %name.lang
|
2006-12-19 00:17:47 +01:00
|
|
|
%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
|
|
|
|
|
2007-03-11 00:09:22 +01:00
|
|
|
%changelog
|