From 30c4adfb72d87ac25535d72158bc3525f08da843d806be45bd418625e77d91f9 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Wed, 10 Apr 2024 20:20:23 +0000 Subject: [PATCH] - restore texinfo macros for SLE15 OBS-URL: https://build.opensuse.org/package/show/Base:System/grep?expand=0&rev=144 --- grep.changes | 5 +++++ grep.spec | 12 ++++++++++++ 2 files changed, 17 insertions(+) diff --git a/grep.changes b/grep.changes index 4c97004..13016fb 100644 --- a/grep.changes +++ b/grep.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Apr 10 20:20:08 UTC 2024 - Dirk Müller + +- restore texinfo macros for SLE15 + ------------------------------------------------------------------- Wed Aug 16 14:21:13 UTC 2023 - Dominique Leuenberger diff --git a/grep.spec b/grep.spec index e0dfdd5..7d48b4b 100644 --- a/grep.spec +++ b/grep.spec @@ -34,6 +34,10 @@ BuildRequires: fdupes BuildRequires: glibc-locale BuildRequires: makeinfo BuildRequires: pkgconfig(libpcre2-8) +%if 0%{?suse_version} < 1550 +Requires(pre): %{install_info_prereq} +Requires(preun): %{install_info_prereq} +%endif Provides: base:%{_bindir}/grep %description @@ -80,6 +84,14 @@ ln -sf %{_bindir}/grep %{buildroot}/bin/grep %fdupes -s %{buildroot} %find_lang %{name} +%if 0%{?suse_version} < 1550 +%post +%install_info --info-dir=%{_infodir} %{_infodir}/grep.info%{ext_info} + +%preun +%install_info_delete --info-dir=%{_infodir} %{_infodir}/grep.info%{ext_info} +%endif + %files %license COPYING %doc README AUTHORS NEWS THANKS TODO ChangeLog*