!12 bugfix:修复首次install swtpm时候没有selinux权限的问题。

From: @imxcc
Reviewed-by: @zhujianwei001
Signed-off-by: @zhujianwei001
This commit is contained in:
openeuler-ci-bot 2021-11-16 12:28:56 +00:00 committed by Gitee
commit 50faab088b

View File

@ -12,7 +12,7 @@
Summary: TPM Emulator
Name: swtpm
Version: 0.3.3
Release: 2
Release: 3
License: BSD
Url: http://github.com/stefanberger/swtpm
Source0: %{url}/archive/%{gitcommit}/%{name}-%{gitshortcommit}.tar.gz
@ -75,6 +75,7 @@ Tools for the TPM emulator from the swtpm package
%prep
%autosetup -n %{name}-%{gitcommit}
%selinux_relabel_pre -s %{selinuxtype}
%build
@ -163,6 +164,9 @@ fi
%attr( 755, tss, tss) %{_localstatedir}/lib/swtpm-localca
%changelog
* Tue Nov 16 2021 imxcc <xingchaochao@huawei.com> - 0.3.3-3
- add selinux_relabel_pre
* Tue Sep 15 2020 jiangfangjie <jiangfangjie@huawei.com> - 0.3.3-2
- update spec file and disable test case pkcs11