Accepting request 610003 from 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. (forwarded request 610001 from 1Antoine1)

OBS-URL: https://build.opensuse.org/request/show/610003
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/mpfr?expand=0&rev=49
This commit is contained in:
Dominique Leuenberger 2018-05-22 14:57:57 +00:00 committed by Git OBS Bridge
commit 98e4d98895
2 changed files with 12 additions and 3 deletions

View File

@ -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

View File

@ -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*