From c209961b1774b869017d45f54f561a493c41ee516336fc52e73374452553dcf5 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Thu, 17 May 2018 07:02:05 +0000 Subject: [PATCH] Accepting request 610001 from home:1Antoine1:branches:devel:libraries:c_c++ - Fix %install_info_delete usage: * It has to be performed in %preun not in %postun. * See https://en.opensuse.org/openSUSE:Packaging_Conventions_RPM_Macros#.25install_info_delete. OBS-URL: https://build.opensuse.org/request/show/610001 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/mpfr?expand=0&rev=53 --- mpfr.changes | 7 +++++++ mpfr.spec | 8 +++++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/mpfr.changes b/mpfr.changes index 6faf09b..c19b918 100644 --- a/mpfr.changes +++ b/mpfr.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu May 17 06:37:28 UTC 2018 - antoine.belvire@opensuse.org + +- Fix %install_info_delete usage: + * It has to be performed in %preun not in %postun. + * See https://en.opensuse.org/openSUSE:Packaging_Conventions_RPM_Macros#.25install_info_delete. + ------------------------------------------------------------------- Wed May 2 08:48:20 UTC 2018 - rguenther@suse.com diff --git a/mpfr.spec b/mpfr.spec index 3256961..2f32908 100644 --- a/mpfr.spec +++ b/mpfr.spec @@ -56,7 +56,8 @@ Summary: Development files for the GNU multiple-precision floating-point Group: Development/Libraries/C and C++ Requires: gmp-devel Requires: libmpfr6 = %{version} -Requires(pre): %{install_info_prereq} +Requires(post): %{install_info_prereq} +Requires(preun): %{install_info_prereq} %description devel Development files for the GNU multiple-precision floating-point library. @@ -92,10 +93,11 @@ find %{buildroot} -type f -name "*.la" -delete -print %post devel %install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz -%postun -n libmpfr6 -p /sbin/ldconfig -%postun devel +%preun devel %install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz +%postun -n libmpfr6 -p /sbin/ldconfig + %files -n libmpfr6 %{_libdir}/libmpfr.so.6*