From 46bbdb9e6f26426ab0016b8a7f8983d74917de2c7bb50ac93d9a3629f88ed27f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Sat, 12 May 2018 11:55:50 +0000 Subject: [PATCH] Accepting request 606633 from home:1Antoine1:branches:Base:System - 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/606633 OBS-URL: https://build.opensuse.org/package/show/Base:System/libgpg-error?expand=0&rev=70 --- libgpg-error.changes | 7 +++++++ libgpg-error.spec | 4 +++- 2 files changed, 10 insertions(+), 1 deletion(-) 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