From 16c6d74b3d80eeb33222fbca72fb69a9a41d94d0fb656b0746f0e8261952d3c7 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Wed, 14 Oct 2015 11:17:32 +0000 Subject: [PATCH] Accepting request 336031 from home:pluskalm:branches:Base:System - Update info handling fro postun to preun OBS-URL: https://build.opensuse.org/request/show/336031 OBS-URL: https://build.opensuse.org/package/show/Base:System/m4?expand=0&rev=31 --- m4.changes | 5 +++++ m4.spec | 15 ++++++++------- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/m4.changes b/m4.changes index ee1b1a6..a0b29b7 100644 --- a/m4.changes +++ b/m4.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Oct 3 06:41:27 UTC 2015 - mpluskal@suse.com + +- Update info handling fro postun to preun + ------------------------------------------------------------------- Mon Mar 2 20:37:45 UTC 2015 - mpluskal@suse.com diff --git a/m4.spec b/m4.spec index 334669f..34c6546 100644 --- a/m4.spec +++ b/m4.spec @@ -26,7 +26,8 @@ Url: http://www.gnu.org/software/m4/ Source0: http://ftp.gnu.org/pub/gnu/m4/%{name}-%{version}.tar.bz2 Source1: http://ftp.gnu.org/pub/gnu/m4/%{name}-%{version}.tar.bz2.sig Source2: %{name}.keyring -Requires(pre): %{install_info_prereq} +Requires(post): %{install_info_prereq} +Requires(preun): %{install_info_prereq} Provides: base:%{_bindir}/m4 BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -38,10 +39,10 @@ GNU m4 is an implementation of the traditional Unix macro processor. %build %configure \ - --without-included-regex \ - gl_cv_func_isnanl_works=yes \ - gl_cv_func_printf_directive_n=yes \ - gl_cv_func_printf_infinite_long_double=yes + --without-included-regex \ + gl_cv_func_isnanl_works=yes \ + gl_cv_func_printf_directive_n=yes \ + gl_cv_func_printf_infinite_long_double=yes make %{?_smp_mflags} %check @@ -53,14 +54,14 @@ make DESTDIR=%{buildroot} install %{?_smp_mflags} %post %install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz -%postun +%preun %install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz %files %defattr(-,root,root) %doc README COPYING NEWS THANKS TODO ChangeLog %{_bindir}/* -%doc %{_infodir}/*.gz +%{_infodir}/*.gz %{_mandir}/*/* %changelog