2006-12-19 00:17:47 +01:00
|
|
|
#
|
2011-11-30 15:27:48 +01:00
|
|
|
# spec file for package sed
|
2006-12-19 00:17:47 +01:00
|
|
|
#
|
2011-11-30 15:27:48 +01:00
|
|
|
# Copyright (c) 2011 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
Name: sed
|
2011-11-30 15:27:48 +01:00
|
|
|
Version: 4.2.1
|
|
|
|
Release: 0
|
|
|
|
License: GPL-3.0
|
|
|
|
Summary: A Stream-Oriented Non-Interactive Text Editor
|
2008-02-19 02:34:00 +01:00
|
|
|
Url: http://www.gnu.org/directory/sed.html
|
2006-12-19 00:17:47 +01:00
|
|
|
Group: System/Base
|
2010-08-24 17:58:54 +02:00
|
|
|
Source: %name-%version.tar.bz2
|
2011-11-30 15:27:48 +01:00
|
|
|
PreReq: %install_info_prereq
|
|
|
|
Provides: base:/bin/sed
|
2006-12-19 00:17:47 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2011-11-30 15:27:48 +01:00
|
|
|
BuildRequires: automake
|
2006-12-19 00:17:47 +01:00
|
|
|
|
|
|
|
%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
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%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
|
2011-11-30 15:27:48 +01:00
|
|
|
export CFLAGS="%{optflags} %warn_flags"
|
2006-12-19 00:17:47 +01:00
|
|
|
./configure --prefix=/usr \
|
2011-11-30 15:27:48 +01:00
|
|
|
--mandir=%{_mandir} \
|
|
|
|
--infodir=%{_infodir} \
|
2006-12-19 00:17:47 +01:00
|
|
|
--without-included-regex \
|
|
|
|
%{_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:
|
2011-11-30 15:27:48 +01:00
|
|
|
mkdir -p %{buildroot}/bin
|
|
|
|
mv %{buildroot}%{_bindir}/sed %{buildroot}/bin
|
|
|
|
ln -s ../../bin/sed %{buildroot}%{_bindir}/sed
|
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
|
2011-11-30 15:27:48 +01:00
|
|
|
%{_bindir}/sed
|
|
|
|
%doc AUTHORS BUGS COPYING* INSTALL NEWS README* THANKS
|
|
|
|
%{_infodir}/sed.info*.gz
|
|
|
|
%{_mandir}/man*/*.gz
|
2006-12-19 00:17:47 +01:00
|
|
|
|
|
|
|
%post
|
2011-11-30 15:27:48 +01:00
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/%name.info.gz
|
2006-12-19 00:17:47 +01:00
|
|
|
|
|
|
|
%postun
|
2011-11-30 15:27:48 +01:00
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%name.info.gz
|
2006-12-19 00:17:47 +01:00
|
|
|
|
2007-03-11 00:09:22 +01:00
|
|
|
%changelog
|