grep/grep.spec
guojunding f642eeecd8 backport two patches
(cherry picked from commit 34b8091eaf4a40ec882a32043589232a5e1b5a14)
2024-09-05 17:26:13 +08:00

133 lines
3.7 KiB
RPMSpec

Name: grep
Version: 3.11
Release: 4
Summary: A string search utility
License: GPLv3+
URL: https://www.gnu.org/software/grep
Source0: https://ftp.gnu.org/gnu/grep/grep-%{version}.tar.xz
Source1: color_grep.sh
Source2: colorgrep.csh
Source3: grepconf.sh
Patch0001: fix-grep-m2-pattern.patch
Patch0002: backport-Fix-troff-typos-found-by-mandoc-and-groff.patch
Patch0003: backport-Fix-recognition-of-cs_CZ.UTF-8-locale-on-FreeBSD.patch
BuildRequires: gcc pcre2-devel texinfo gettext automake
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
%configure --disable-silent-rules \
CPPFLAGS="-I%{_includedir}/pcre2" CFLAGS="$RPM_OPT_FLAGS -fsigned-char"
%make_build
%install
%make_install
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/profile.d
install -pm 644 %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/profile.d
install -Dpm 755 %{SOURCE3} $RPM_BUILD_ROOT%{_libexecdir}/grepconf.sh
%find_lang %{name}
%check
%make_build check
%files -f %{name}.lang
%config(noreplace) %{_sysconfdir}/profile.d/color_grep.sh
%config(noreplace) %{_sysconfdir}/profile.d/colorgrep.csh
%doc NEWS README THANKS TODO AUTHORS
%license COPYING
%{_bindir}/*grep
%{_libexecdir}/grepconf.sh
%{_infodir}/grep.info*
%{_mandir}/man1/*grep.1*
%changelog
* Mon Aug 26 2024 guojunding <guojunding@kylinos.cn> - 3.11-4
- fix troff typos
- fix recognition of cs_CZ.UTF-8 locale on FreeBSD
* Tue Jul 30 2024 Funda Wang <fundawang@yeah.net> - 3.11-3
- fix lang file declaration
* Mon Jun 03 2024 wangziliang <wangziliang@kylinos.cn> - 3.11-2
- fix grep -m2 pattern bug
* Fri Jul 14 2023 dillon chen <dillon.chen@gmail.com> - 3.11-1
- update version to 3.11
* Thu Jan 19 2023 gaoruoshu <gaoruoshu@huawei.com> - 3.8-1
- update version to 3.8
* Mon Dec 26 2022 gaoruoshu <gaoruoshu@huawei.com> - 3.7-8
- backport patch from upstream
* Wed Jul 27 2022 panxiaohe <panxh.life@foxmail.com> - 3.7-7
- backport patches from upstream
* Fri Jul 15 2022 panxiaohe <panxh.life@foxmail.com> - 3.7-6
- Added coloring aliases to fgrep egrep and grep
* 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
* Fri Mar 18 2022 yangzhuangzhuang <yangzhuangzhuang1@h-partners.com> - 3.7-3
- The -s option no longer suppresses "binary file matches" messages
* Tue Feb 8 2022 yangzhuangzhuang <yangzhuangzhuang1@h-partners.com> - 3.7-2
- avoid sticky problem with '-f - -f -'
* Wed Dec 29 2021 yangzhuangzhuang <yangzhuangzhuang1@huawei.com> - 3.7-1
- update version to 3.7
* Fri Aug 20 2021 chenyanpanHW <chenyanpan@huawei.com> - 3.6-3
- DESC: remove unnecessary BuildRequires git, add necessary BuildRequires automake
* 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
* Thu Jan 21 2021 wangchen<wangchen137@huawei.com> - 3.6-1
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:update to 3.6
* Wed Jul 15 2020 Liquor<lirui130@huawei.com> - 3.4-1
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:add -fsigned-char option
* 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
* Mon Oct 21 2019 chengquan<chengquan3@huawei.com> - 3.1-10
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:fix package bug
* Mon Aug 19 2019 openEuler Buildteam <buildteam@openeuler.org> - 3.1-9
- Package init