grep/grep.spec

74 lines
1.5 KiB
RPMSpec
Raw Normal View History

Name: grep
2021-01-21 11:26:06 +08:00
Version: 3.6
2020-07-15 10:46:56 +08:00
Release: 1
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
BuildRequires: gcc git pcre-devel >= 3.9-10 texinfo gettext
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 --without-included-regex --disable-silent-rules \
2020-07-15 10:46:56 +08:00
CPPFLAGS="-I%{_includedir}/pcre" 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
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
* 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