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
This commit is contained in:
Kamil Dudka 2017-02-27 09:56:53 +01:00
parent 6d58228578
commit 3733e4c676

View File

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