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
|
|
|
#
|
2022-11-10 23:48:45 +01:00
|
|
|
# Copyright (c) 2022 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
|
2022-11-10 23:48:45 +01:00
|
|
|
Version: 4.9
|
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
|
2015-09-17 14:56:58 +02:00
|
|
|
BuildRequires: libacl-devel
|
|
|
|
BuildRequires: libselinux-devel
|
2017-01-07 13:38:45 +01:00
|
|
|
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
|
2022-11-10 23:48:45 +01:00
|
|
|
%autosetup -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
|
2022-11-10 23:48:45 +01:00
|
|
|
%make_build
|
2006-12-19 00:17:47 +01:00
|
|
|
|
|
|
|
%install
|
2017-01-07 13:38:45 +01:00
|
|
|
%make_install
|
2023-01-05 08:51:10 +01:00
|
|
|
%if 0%{?suse_version} < 1550
|
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
|
2020-11-26 11:07:17 +01:00
|
|
|
%endif
|
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
|
2022-11-10 23:48:45 +01:00
|
|
|
%make_build check
|
2017-01-07 13:38:45 +01:00
|
|
|
|
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
|
2023-01-05 08:51:10 +01:00
|
|
|
%if 0%{?suse_version} < 1550
|
2006-12-19 00:17:47 +01:00
|
|
|
/bin/sed
|
2020-11-26 11:07:17 +01:00
|
|
|
%endif
|
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
|
2022-11-10 23:48:45 +01:00
|
|
|
%license COPYING*
|
2006-12-19 00:17:47 +01:00
|
|
|
|
2007-03-11 00:09:22 +01:00
|
|
|
%changelog
|