64 lines
1.5 KiB
RPMSpec
64 lines
1.5 KiB
RPMSpec
Name: grep
|
|
Version: 3.1
|
|
Release: 9
|
|
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
|
|
Source1: colorgrep.sh
|
|
Source2: colorgrep.csh
|
|
Source3: GREP_COLORS
|
|
Source4: grepconf.sh
|
|
|
|
Patch0: grep-3.31-man-fix-gs.patch
|
|
Patch1: grep-3.31-help-align.patch
|
|
Patch2: grep-3.1-glibc-2.28-fix.patch
|
|
|
|
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 \
|
|
CPPFLAGS="-I%{_includedir}/pcre" CFLAGS="$RPM_OPT_FLAGS"
|
|
%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 -pm 644 %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}
|
|
install -Dpm 755 %{SOURCE4} $RPM_BUILD_ROOT%{_libexecdir}/grepconf.sh
|
|
|
|
%pre
|
|
%preun
|
|
%post
|
|
%postun
|
|
|
|
%check
|
|
make check
|
|
|
|
%files
|
|
%{_datadir}/locale/*
|
|
%doc AUTHORS NEWS README THANKS TODO
|
|
%license COPYING
|
|
%{_bindir}/*grep
|
|
%config(noreplace) %{_sysconfdir}/profile.d/colorgrep.*sh
|
|
%config(noreplace) %{_sysconfdir}/GREP_COLORS
|
|
%{_infodir}/grep.info.gz
|
|
%{_mandir}/man1/*grep.1.gz
|
|
%{_libexecdir}/grepconf.sh
|
|
|
|
|
|
%changelog
|
|
* Mon Aug 19 2019 openEuler Buildteam <buildteam@openeuler.org> - 3.1-9
|
|
- Package init
|
|
|