2006-12-19 00:17:47 +01:00
|
|
|
#
|
2010-08-16 10:50:08 +02:00
|
|
|
# spec file for package sed (Version 4.2.1)
|
2006-12-19 00:17:47 +01:00
|
|
|
#
|
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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2008-02-19 02:34:00 +01:00
|
|
|
|
2006-12-19 00:17:47 +01:00
|
|
|
Name: sed
|
2010-08-16 10:50:08 +02:00
|
|
|
Version: 4.2.1
|
|
|
|
Release: 1
|
|
|
|
License: GPLv3
|
|
|
|
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
|
|
|
|
Source: %name-%version.tar.bz2
|
2010-08-16 10:50:08 +02:00
|
|
|
PreReq: %install_info_prereq
|
|
|
|
Provides: base:/bin/sed
|
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
|
|
|
|
|
|
|
%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
|
2010-08-16 10:50:08 +02:00
|
|
|
export CFLAGS="%{optflags} %warn_flags"
|
2006-12-19 00:17:47 +01:00
|
|
|
./configure --prefix=/usr \
|
2010-08-16 10:50:08 +02: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:
|
2010-08-16 10:50:08 +02: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
|
2010-08-16 10:50:08 +02: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
|
2010-08-16 10:50:08 +02:00
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/%name.info.gz
|
2006-12-19 00:17:47 +01:00
|
|
|
|
|
|
|
%postun
|
2010-08-16 10:50:08 +02: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
|