SHA256
1
0
forked from pool/grep

osc copypac from project:openSUSE:Factory package:grep revision:90, using expand

OBS-URL: https://build.opensuse.org/package/show/Base:System/grep?expand=0&rev=141
This commit is contained in:
Dirk Mueller 2024-04-10 09:05:04 +00:00 committed by Git OBS Bridge
parent bd8584a266
commit 7375595728
2 changed files with 82 additions and 106 deletions

View File

@ -1,9 +1,3 @@
-------------------------------------------------------------------
Fri Jan 26 10:05:59 UTC 2024 - Dirk Müller <dmueller@suse.com>
- split the deprecated egrep/fgrep into a deprecated subpackage
to be able to identify remaining usages
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Aug 16 14:21:13 UTC 2023 - Dominique Leuenberger <dimstar@opensuse.org> Wed Aug 16 14:21:13 UTC 2023 - Dominique Leuenberger <dimstar@opensuse.org>
@ -91,7 +85,7 @@ Tue May 24 14:15:24 UTC 2022 - Stephan Kulow <coolo@suse.com>
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Mar 15 21:51:41 UTC 2022 - Bernhard Wiedemann <bwiedemann@suse.com> Tue Mar 15 21:51:41 UTC 2022 - Bernhard Wiedemann <bwiedemann@suse.com>
- Make profiling deterministic (bsc#1040589, SLE-24115) - Make profiling deterministic (bsc#1040589)
------------------------------------------------------------------- -------------------------------------------------------------------
Sat Feb 12 13:40:18 UTC 2022 - Dirk Müller <dmueller@suse.com> Sat Feb 12 13:40:18 UTC 2022 - Dirk Müller <dmueller@suse.com>

View File

@ -1,7 +1,7 @@
# #
# spec file for package grep # spec file for package grep
# #
# Copyright (c) 2024 SUSE LLC # Copyright (c) 2023 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -33,27 +33,13 @@ Patch0: efgrep-warning.patch
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: glibc-locale BuildRequires: glibc-locale
BuildRequires: makeinfo BuildRequires: makeinfo
BuildRequires: pkgconfig
BuildRequires: pkgconfig(libpcre2-8) BuildRequires: pkgconfig(libpcre2-8)
Recommends: grep-deprecated = %{version}
Provides: base:%{_bindir}/grep Provides: base:%{_bindir}/grep
%description %description
The grep command searches one or more input files for lines containing a The grep command searches one or more input files for lines containing a
match to a specified pattern. By default, grep prints the matching lines. match to a specified pattern. By default, grep prints the matching lines.
%package deprecated
Summary: Grep - deprecated aliases
Provides: grep:%{_bindir}/egrep
Requires: %{NAME} = %{version}
%description deprecated
The grep command searches one or more input files for lines containing a
match to a specified pattern. By default, grep prints the matching lines.
This package provides the deprecated aliases "egrep" and "fgrep". please
use "grep -E" and "grep -F" going forward.
%lang_package %lang_package
%prep %prep
@ -85,7 +71,7 @@ echo 'int main() { return 77; }' > gnulib-tests/test-sigsegv-catch-stackoverflow
%install %install
%make_install %make_install
%if 0%{?suse_version} && 0%{?suse_version} < 1550 %if 0%{?suse_version} < 1550
install -d %{buildroot}/bin install -d %{buildroot}/bin
ln -sf %{_bindir}/egrep %{buildroot}/bin/egrep ln -sf %{_bindir}/egrep %{buildroot}/bin/egrep
ln -sf %{_bindir}/fgrep %{buildroot}/bin/fgrep ln -sf %{_bindir}/fgrep %{buildroot}/bin/fgrep
@ -97,21 +83,17 @@ ln -sf %{_bindir}/grep %{buildroot}/bin/grep
%files %files
%license COPYING %license COPYING
%doc README AUTHORS NEWS THANKS TODO ChangeLog* %doc README AUTHORS NEWS THANKS TODO ChangeLog*
%if 0%{?suse_version} && 0%{?suse_version} < 1550 %if 0%{?suse_version} < 1550
/bin/egrep
/bin/fgrep
/bin/grep /bin/grep
%endif %endif
%{_bindir}/egrep
%{_bindir}/fgrep
%{_bindir}/grep %{_bindir}/grep
%{_mandir}/man1/grep.1%{?ext_man} %{_mandir}/man1/grep.1%{?ext_man}
%{_infodir}/grep.info%{?ext_info} %{_infodir}/grep.info%{?ext_info}
%files deprecated
%if 0%{?suse_version} && 0%{?suse_version} < 1550
/bin/egrep
/bin/fgrep
%endif
%{_bindir}/egrep
%{_bindir}/fgrep
%files lang -f %{name}.lang %files lang -f %{name}.lang
%changelog %changelog