diff --git a/libgpg-error.changes b/libgpg-error.changes index 80aabf5..5f67026 100644 --- a/libgpg-error.changes +++ b/libgpg-error.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Sat May 12 11:38:30 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 18:48:17 UTC 2018 - astieger@suse.com diff --git a/libgpg-error.spec b/libgpg-error.spec index b4ca6bb..643efd6 100644 --- a/libgpg-error.spec +++ b/libgpg-error.spec @@ -83,11 +83,13 @@ make check %{?_smp_mflags} %{buildroot}/%{_bindir}/gpg-error-config --mt --libs | grep -q "\-lpthread" %post -n libgpg-error0 -p /sbin/ldconfig + %post devel %install_info --info-dir=%{_infodir} %{_infodir}/gpgrt.info.gz %postun -n libgpg-error0 -p /sbin/ldconfig -%postun devel + +%preun devel %install_info_delete --info-dir=%{_infodir} %{_infodir}/gpgrt.info.gz %files -n libgpg-error0 -f %{name}.lang