sed/sed.spec

66 lines
1.7 KiB
RPMSpec
Raw Normal View History

2019-09-30 11:16:48 -04:00
Name: sed
Version: 4.5
Release: 3
Summary: non-interactive command-line text editor
License: GPLv3+
URL: https://www.gnu.org/software/sed/
Source0: http://ftp.gnu.org/gnu/sed/%{name}-%{version}.tar.xz
Source1: http://sed.sourceforge.net/sedfaq.txt
Patch0: sed-4.2.2-binary_copy_args.patch
Patch6000: sed-fix-heap-buffer-overflow-from-invalid-references.patch
Patch6001: sed-do-not-flush-output-stream-unless-in-unbuffered-.patch
Patch6002: sed-fix-extraneous-NUL-in-s-n-command.patch
Patch6003: sed-fix-heap-buffer-overflow-from-multiline-EOL-rege.patch
Patch6004: sed-do-not-close-stderr-on-exit.patch
Patch6005: sed-fix-memory-leak.patch
Patch6006: sed-fix-memory-leakage-under-lint.patch
BuildRequires: gzip automake autoconf gcc
BuildRequires: glibc-devel libselinux-devel libacl-devel perl-Getopt-Long
Provides: /bin/sed
Provides: bundled(gnulib)
%description
Sed is a non-interactive command-line text editor. A stream editor is used
to per-form basic text transformations on an input stream (a file or input
from a pipeline).
%package help
Summary: Documents for %{name}
Buildarch: noarch
Requires: man info
%description help
Man pages and other related documents for %{name}.
%prep
%autosetup -n %{name}-%{version} -p1
chmod 644 %{SOURCE1}
cp -p %{SOURCE1} .
%build
%configure --without-included-regex
make %{?_smp_mflags}
%install
%make_install
gzip -9 sedfaq.txt
%find_lang %{name}
%files -f %{name}.lang
%license COPYING
%{_bindir}/sed
%files help
%doc ABOUT-NLS AUTHORS BUGS ChangeLog* INSTALL NEWS README THANKS sedfaq.txt.gz
%{_infodir}/*.info.gz
%exclude %{_infodir}/dir*
%{_mandir}/man1/*.1.gz
%changelog
* Fri Aug 23 2019 openEuler Buildteam <buildteam@openeuler.org> - 4.5-3
- Package init