From ece5fe85a5eaeb4c1e5540f7ab5e16cd0cef32ba Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Aug 06 2019 11:05:10 +0000 Subject: import spice-streaming-agent-0.2-4.el7 --- diff --git a/SPECS/spice-streaming-agent.spec b/SPECS/spice-streaming-agent.spec index ac4db22..96b076b 100644 --- a/SPECS/spice-streaming-agent.spec +++ b/SPECS/spice-streaming-agent.spec @@ -1,6 +1,6 @@ Name: spice-streaming-agent Version: 0.2 -Release: 3%{?dist} +Release: 4%{?dist} Summary: SPICE streaming agent Group: Applications/System License: ASL 2.0 @@ -19,7 +19,7 @@ BuildRequires: catch-devel BuildRequires: pkgconfig(udev) # we need /usr/sbin/semanage program which is available on different # packages depending on distribution -Requires(post): /usr/sbin/semanage +Requires(posttrans): /usr/sbin/semanage Requires(postun): /usr/sbin/semanage ExclusiveArch: x86_64 @@ -57,7 +57,9 @@ if test -d "%{buildroot}/%{_libdir}/%{name}/plugins"; then find %{buildroot}/%{_libdir}/%{name}/plugins -name '*.la' -delete fi -%post +# See rhbz#1647789 - call semanage in posttrans, not in post. +# https://fedoraproject.org/wiki/Packaging:Scriptlets +%posttrans semanage fcontext -a -t xserver_exec_t %{_bindir}/spice-streaming-agent 2>/dev/null || : restorecon %{_bindir}/spice-streaming-agent || : @@ -80,6 +82,10 @@ fi %{_libdir}/pkgconfig %changelog +* Wed Apr 10 2019 Uri Lublin - 0.2-4 +- Call semanage in posttrans, not in post + Resolves: rhbz#1647789 + * Wed Aug 1 2018 Uri Lublin - 0.2-3 - Fix coverity issue Related: rhbz#1479294