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
|
|
|
#
|
2020-01-20 15:37:08 +01:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
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.
|
|
|
|
|
2018-12-27 10:23:03 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2006-12-19 00:17:47 +01:00
|
|
|
#
|
|
|
|
|
2012-02-07 13:58:46 +01:00
|
|
|
|
2006-12-19 00:17:47 +01:00
|
|
|
Name: sed
|
2020-01-20 15:37:08 +01:00
|
|
|
Version: 4.8
|
2011-11-30 15:27:48 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: A Stream-Oriented Non-Interactive Text Editor
|
2018-12-27 10:23:03 +01:00
|
|
|
License: GPL-3.0-or-later
|
2006-12-19 00:17:47 +01:00
|
|
|
Group: System/Base
|
2018-12-27 10:23:03 +01:00
|
|
|
URL: https://www.gnu.org/software/sed/
|
2017-01-07 13:38:45 +01:00
|
|
|
Source0: https://ftp.gnu.org/gnu/sed/%{name}-%{version}.tar.xz
|
|
|
|
Source1: https://ftp.gnu.org/gnu/sed/%{name}-%{version}.tar.xz.sig
|
2013-01-22 18:57:26 +01:00
|
|
|
Source2: %{name}.keyring
|
2014-07-03 16:56:24 +02:00
|
|
|
# PATCH-FIX-SLE sed-dont_close_twice.patch bnc@880817 tcech@suse.cz -- Fix double close.
|
2017-01-07 13:38:45 +01:00
|
|
|
Patch0: sed-dont_close_twice.patch
|
2015-09-17 14:56:58 +02:00
|
|
|
BuildRequires: libacl-devel
|
|
|
|
BuildRequires: libselinux-devel
|
2017-01-07 13:38:45 +01:00
|
|
|
Requires(post): %{install_info_prereq}
|
|
|
|
Requires(preun): %{install_info_prereq}
|
|
|
|
Provides: base:/bin/sed
|
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
|
|
|
|
2013-01-22 18:57:26 +01:00
|
|
|
%lang_package
|
2017-01-07 13:38:45 +01:00
|
|
|
|
2006-12-19 00:17:47 +01:00
|
|
|
%prep
|
|
|
|
%setup -q
|
2018-12-27 10:23:03 +01:00
|
|
|
%patch0 -p1
|
2006-12-19 00:17:47 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
%define warn_flags -Wall -Wstrict-prototypes -Wpointer-arith -Wformat-security
|
2017-01-07 13:38:45 +01:00
|
|
|
export CFLAGS="%{optflags} %{warn_flags} -fPIE"
|
2014-12-31 15:00:19 +01:00
|
|
|
export LDFLAGS="-pie"
|
2017-01-07 13:38:45 +01:00
|
|
|
%configure \
|
|
|
|
--without-included-regex
|
2018-04-17 17:00:08 +02:00
|
|
|
%if 0%{?do_profiling}
|
2017-01-07 13:38:45 +01:00
|
|
|
make %{?_smp_mflags} CFLAGS="$CFLAGS %{cflags_profile_generate}" V=1
|
2020-01-20 15:37:08 +01:00
|
|
|
make %{?_smp_mflags} CFLAGS="$CFLAGS %{cflags_profile_generate}" check
|
2018-04-04 10:26:07 +02:00
|
|
|
make %{?_smp_mflags} clean
|
2017-01-07 13:38:45 +01:00
|
|
|
make %{?_smp_mflags} CFLAGS="$CFLAGS %{cflags_profile_feedback}" V=1
|
2006-12-19 00:17:47 +01:00
|
|
|
%else
|
2017-01-07 13:38:45 +01:00
|
|
|
make %{?_smp_mflags} V=1
|
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
|
2017-01-07 13:38:45 +01:00
|
|
|
%make_install
|
2012-02-06 22:10:47 +01:00
|
|
|
#UsrMerge
|
2011-11-30 15:27:48 +01:00
|
|
|
mkdir -p %{buildroot}/bin
|
2012-02-06 22:10:47 +01:00
|
|
|
ln -s %{_bindir}/sed %{buildroot}/bin/sed
|
|
|
|
#EndUserMerge
|
2013-01-22 18:57:26 +01:00
|
|
|
%find_lang %{name}
|
2006-12-19 00:17:47 +01:00
|
|
|
|
2017-01-07 13:38:45 +01:00
|
|
|
%check
|
|
|
|
# run check once more with final binaries
|
|
|
|
make %{?_smp_mflags} check
|
|
|
|
|
|
|
|
%post
|
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info%{ext_info}
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info%{ext_info}
|
|
|
|
|
2013-01-22 18:57:26 +01:00
|
|
|
%files
|
2018-02-27 10:46:17 +01:00
|
|
|
%license COPYING*
|
|
|
|
%doc AUTHORS BUGS NEWS README* THANKS
|
2006-12-19 00:17:47 +01:00
|
|
|
/bin/sed
|
2011-11-30 15:27:48 +01:00
|
|
|
%{_bindir}/sed
|
2017-01-07 13:38:45 +01:00
|
|
|
%{_mandir}/man*/*%{ext_man}
|
|
|
|
%{_infodir}/sed.info*%{ext_info}
|
2013-01-22 18:57:26 +01:00
|
|
|
|
|
|
|
%files lang -f %{name}.lang
|
2006-12-19 00:17:47 +01:00
|
|
|
|
2007-03-11 00:09:22 +01:00
|
|
|
%changelog
|