Projects
home:pandora:RobinOS23
grep
_service:download_src_package:grep.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:download_src_package:grep.spec of Package grep
%define anolis_release 2 Summary: Pattern matching utilities Name: grep Version: 3.7 Release: %{anolis_release}%{?dist} License: GPLv3+ URL: https://www.gnu.org/software/grep/ Source: https://ftp.gnu.org/pub/gnu/grep/grep-%{version}.tar.xz Source1: colorgrep.sh Source2: colorgrep.csh Source3: GREP_COLORS Source4: grepconf.sh BuildRequires: gcc BuildRequires: pcre-devel >= 3.9-10 BuildRequires: texinfo BuildRequires: gettext BuildRequires: autoconf BuildRequires: automake Buildrequires: glibc-all-langpacks BuildRequires: perl-FileHandle BuildRequires: make BuildRequires: libsigsegv-devel #make the no-bundled-libraries exception requirements more clear Provides: bundled(gnulib) #move binaries to /usr/bin Provides: /bin/grep Provides: /bin/fgrep Provides: /bin/egrep %description The GNU versions of commonly used grep utilities. Grep searches through textual input for lines which contain a match to a specified pattern and then prints the matching lines. GNU's grep utilities include grep, egrep and fgrep. GNU grep is needed by many scripts, so it shall be installed on every system. %package doc Summary: Documentation files for %{name} Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc The %{name}-doc package contains documentation files for %{name}. %prep %autosetup -p1 %build %global BUILD_FLAGS $RPM_OPT_FLAGS %configure --disable-silent-rules \ CPPFLAGS="-I%{_includedir}/pcre" CFLAGS="%{BUILD_FLAGS}" %make_build %install %make_install gzip $RPM_BUILD_ROOT%{_infodir}/grep* 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 %find_lang %name %generate_compatibility_deps %check make check %files -f %{name}.lang %dir %{abidir} %license COPYING %{_bindir}/* %{abidir}/*-option.list %config(noreplace) %{_sysconfdir}/profile.d/colorgrep.*sh %config(noreplace) %{_sysconfdir}/GREP_COLORS %{_infodir}/*.info*.gz %{_mandir}/*/* %{_libexecdir}/grepconf.sh %files doc %doc AUTHORS THANKS TODO NEWS README %changelog * Wed Oct 26 2022 mgb01105731 <mgb01105731@alibaba-inc.com> - 3.7-2 - optimise spec file & add doc package * Fri Mar 04 2022 mgb01105731 <mgb01105731@alibaba-inc.com> - 3.7-1 - Init from upstream version 3.7
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2