From d835682894330251665b88b062b91d3a60c85409 Mon Sep 17 00:00:00 2001 From: Stepan Salenikovich <stepan.salenikovich@savoirfairelinux.com> Date: Thu, 13 Apr 2017 15:36:54 -0400 Subject: [PATCH] packaging: correct rpm syntax The "%postun -p /sbin/ldconfig" is only valid when there is only one %post and/or %postun command, for multiple commands the '-p' should not be used, as documented here: https://fedoraproject.org/wiki/Packaging:Guidelines#Shared_Libraries Change-Id: I3b6c0ef1bad942987e75767ade8e0efe507a91aa Tuleap: #1545 --- packaging/rules/fedora/ring.spec | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packaging/rules/fedora/ring.spec b/packaging/rules/fedora/ring.spec index 9258ff8c..7b750b58 100644 --- a/packaging/rules/fedora/ring.spec +++ b/packaging/rules/fedora/ring.spec @@ -205,11 +205,10 @@ DESTDIR=%{buildroot} make -C client-gnome/build install %{_datadir}/dbus-1/interfaces/* %post --p /sbin/ldconfig +/sbin/ldconfig /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : -%postun --p /sbin/ldconfig +%postun -p /sbin/ldconfig #for < f24 we have to update the schema explicitly %if 0%{?fedora} < 24 -- GitLab