From 3733e4c67685f54e5f352837c0905150af2e5c29 Mon Sep 17 00:00:00 2001 From: Kamil Dudka Date: Mon, 27 Feb 2017 09:56:53 +0100 Subject: [PATCH] move %systemd_post{,un} to the correct subpackage ... to avoid the following scriptlet failures: Upgrading : libnghttp2-1.20.0-1.fc24.x86_64 /sbin/ldconfig: relative path `2' used to build cache warning: %post(libnghttp2-1.20.0-1.fc24.x86_64) scriptlet failed, exit status 1 Non-fatal POSTIN scriptlet failure in rpm package libnghttp2 Non-fatal POSTIN scriptlet failure in rpm package libnghttp2 Upgrading : nghttp2-1.20.0-1.fc24.x86_64 --- nghttp2.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/nghttp2.spec b/nghttp2.spec index 2d42a42..4d4d276 100644 --- a/nghttp2.spec +++ b/nghttp2.spec @@ -76,9 +76,13 @@ rm -f "$RPM_BUILD_ROOT%{_libdir}/libnghttp2.la" rm -f "$RPM_BUILD_ROOT%{_datadir}/doc/nghttp2/README.rst" %post -n libnghttp2 -p /sbin/ldconfig -%systemd_post nghttpx.service %postun -n libnghttp2 -p /sbin/ldconfig + +%post +%systemd_post nghttpx.service + +%postun %systemd_postun nghttpx.service