2020-01-07 11:50:10 +08:00
|
|
|
Name: grep
|
2021-12-29 14:08:59 +08:00
|
|
|
Version: 3.7
|
2022-06-28 17:37:08 +08:00
|
|
|
Release: 5
|
2019-09-30 10:51:53 -04:00
|
|
|
Summary: A string search utility
|
|
|
|
|
License: GPLv3+
|
|
|
|
|
URL: http://www.gnu.org/software/grep/
|
|
|
|
|
Source0: https://ftp.gnu.org/gnu/grep/grep-%{version}.tar.xz
|
|
|
|
|
|
2022-02-08 18:19:22 +08:00
|
|
|
Patch1: backport-grep-avoid-sticky-problem-with-f-f.patch
|
2022-03-18 09:33:16 +08:00
|
|
|
Patch2: backport-grep-s-does-not-suppress-binary-file-matches.patch
|
2022-06-28 17:37:08 +08:00
|
|
|
Patch3: backport-grep-work-around-PCRE-bug.patch
|
|
|
|
|
Patch4: backport-grep-migrate-to-pcre2.patch
|
|
|
|
|
Patch5: backport-grep-Don-t-limit-jitstack_max-to-INT_MAX.patch
|
|
|
|
|
Patch6: backport-grep-speed-up-fix-bad-UTF8-check-with-P.patch
|
|
|
|
|
Patch7: backport-grep-fix-minor-P-memory-leak.patch
|
2022-02-08 18:19:22 +08:00
|
|
|
|
2022-05-14 19:01:04 +08:00
|
|
|
BuildRequires: gcc pcre2-devel texinfo gettext libsigsegv-devel automake
|
2019-09-30 10:51:53 -04:00
|
|
|
Provides: /bin/egrep /bin/fgrep /bin/grep bundled(gnulib)
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Grep searches one or more input files for lines containing a match to
|
|
|
|
|
a specified pattern. By default, Grep outputs the matching lines.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n %{name}-%{version} -p1
|
|
|
|
|
|
|
|
|
|
%build
|
2021-12-29 14:08:59 +08:00
|
|
|
%configure --disable-silent-rules \
|
2022-05-14 19:01:04 +08:00
|
|
|
CPPFLAGS="-I%{_includedir}/pcre2" CFLAGS="$RPM_OPT_FLAGS -fsigned-char"
|
2019-09-30 10:51:53 -04:00
|
|
|
%make_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%make_install
|
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/profile.d
|
|
|
|
|
|
|
|
|
|
%pre
|
|
|
|
|
%preun
|
|
|
|
|
%post
|
|
|
|
|
%postun
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
make check
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%{_datadir}/locale/*
|
2019-12-13 15:26:21 +08:00
|
|
|
%doc NEWS README THANKS TODO
|
|
|
|
|
%license COPYING AUTHORS
|
2019-09-30 10:51:53 -04:00
|
|
|
%{_bindir}/*grep
|
|
|
|
|
%{_infodir}/grep.info.gz
|
|
|
|
|
%{_mandir}/man1/*grep.1.gz
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2022-06-28 17:37:08 +08:00
|
|
|
* Tue Jun 28 2022 panxiaohe <panxh.life@foxmail.com> - 3.7-5
|
|
|
|
|
- grep: Don't limit jitstack_max to INT_MAX
|
|
|
|
|
- grep: speed up, fix bad-UTF8 check with -P
|
|
|
|
|
- grep: fix minor -P memory leak
|
|
|
|
|
|
|
|
|
|
* Sat May 14 2022 licihua <licihua@huawei.com> - 3.7-4
|
|
|
|
|
- Modify the dependency from pcre to pcre2
|
2022-05-14 19:01:04 +08:00
|
|
|
|
2022-03-18 09:33:16 +08:00
|
|
|
* Fri Mar 18 2022 yangzhuangzhuang <yangzhuangzhuang1@h-partners.com> - 3.7-3
|
|
|
|
|
- The -s option no longer suppresses "binary file matches" messages
|
|
|
|
|
|
2022-02-08 18:19:22 +08:00
|
|
|
* Tue Feb 8 2022 yangzhuangzhuang <yangzhuangzhuang1@h-partners.com> - 3.7-2
|
|
|
|
|
- avoid sticky problem with '-f - -f -'
|
|
|
|
|
|
2021-12-29 14:08:59 +08:00
|
|
|
* Wed Dec 29 2021 yangzhuangzhuang <yangzhuangzhuang1@huawei.com> - 3.7-1
|
|
|
|
|
- update version to 3.7
|
|
|
|
|
|
2021-08-20 03:53:32 +00:00
|
|
|
* Fri Aug 20 2021 chenyanpanHW <chenyanpan@huawei.com> - 3.6-3
|
|
|
|
|
- DESC: remove unnecessary BuildRequires git, add necessary BuildRequires automake
|
|
|
|
|
|
2021-08-10 12:20:23 +08:00
|
|
|
* Tue Aug 10 2021 yangzhuangzhuang<yangzhuangzhuang1@huawei.com> - 3.6-2
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:Fix the compilation failure with the new version glibc-2.34
|
|
|
|
|
|
2021-01-21 11:26:06 +08:00
|
|
|
* Thu Jan 21 2021 wangchen<wangchen137@huawei.com> - 3.6-1
|
|
|
|
|
- Type:enhancement
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:update to 3.6
|
|
|
|
|
|
2020-07-15 10:46:56 +08:00
|
|
|
* Wed Jul 15 2020 Liquor<lirui130@huawei.com> - 3.4-1
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:add -fsigned-char option
|
|
|
|
|
|
2020-01-07 11:50:10 +08:00
|
|
|
* Tue Jan 7 2020 JeanLeo<liujianliu.liu@huawei.com> - 3.4-0
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:update software to version 3.4
|
|
|
|
|
|
2019-12-13 15:26:21 +08:00
|
|
|
* Mon Oct 21 2019 chengquan<chengquan3@huawei.com> - 3.1-10
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:fix package bug
|
|
|
|
|
|
2019-09-30 10:51:53 -04:00
|
|
|
* Mon Aug 19 2019 openEuler Buildteam <buildteam@openeuler.org> - 3.1-9
|
|
|
|
|
- Package init
|
|
|
|
|
|