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*