!10 Update spec file including source0 and disable test case pkcs11

From: @jackjf
Reviewed-by: @zhujianwei001
Signed-off-by: @zhujianwei001
This commit is contained in:
openeuler-ci-bot 2020-09-17 12:04:51 +08:00 committed by Gitee
commit 3bf960771a
3 changed files with 11 additions and 6 deletions

Binary file not shown.

BIN
swtpm-091be80.tar.gz Normal file

Binary file not shown.

View File

@ -1,5 +1,8 @@
%bcond_without gnutls
%global gitdate 20200710
%global gitcommit 091be8054b5863ff86c5efcb072dcdd45e3696d1
%global gitshortcommit %(c=%{gitcommit}; echo ${c:0:7})
# Macros needed by SELinux
%global selinuxtype targeted
@ -9,10 +12,10 @@
Summary: TPM Emulator
Name: swtpm
Version: 0.3.3
Release: 1
Release: 2
License: BSD
Url: http://github.com/stefanberger/swtpm
Source0: %{url}/archive/%{name}-%{version}.tar.gz
Source0: %{url}/archive/%{gitcommit}/%{name}-%{gitshortcommit}.tar.gz
BuildRequires: automake
BuildRequires: autoconf
@ -71,7 +74,7 @@ Requires: trousers >= 0.3.9 tpm-tools >= 1.3.8-6 expect bash net-tools gnu
Tools for the TPM emulator from the swtpm package
%prep
%autosetup -n %{name}-%{version}
%autosetup -n %{name}-%{gitcommit}
%build
@ -157,10 +160,12 @@ fi
%config(noreplace) %{_sysconfdir}/swtpm-localca.conf
%dir %{_datadir}/swtpm
%{_datadir}/swtpm/swtpm-localca
%attr( 755, @TSS_USER@, @TSS_GROUP@) %{_localstatedir}/lib/swtpm-localca
%attr( 755, tss, tss) %{_localstatedir}/lib/swtpm-localca
%changelog
* Mon Aug 24 2020 jiangfangjie <jiangfangjie> - 0.3.3-1
* Tue Sep 15 2020 jiangfangjie <jiangfangjie@huawei.com> - 0.3.3-2
- update spec file and disable test case pkcs11
* Mon Aug 24 2020 jiangfangjie <jiangfangjie@huawei.com> - 0.3.3-1
- Created initial version of rpm spec files
- Version is now 0.3.3
-