!89 support clang

From: @xucee 
Reviewed-by: @zhujianwei001 
Signed-off-by: @zhujianwei001
This commit is contained in:
openeuler-ci-bot 2024-11-18 01:29:12 +00:00 committed by Gitee
commit e5aa586fb4
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,6 +1,6 @@
Name: tpm2-tss
Version: 4.0.1
Release: 2
Release: 4
Summary: TPM2.0 Software Stack
License: BSD
URL: https://github.com/tpm2-software/tpm2-tss
@ -31,10 +31,14 @@ Obsoletes: %{name}-static
%autosetup -n %{name}-%{version} -p1
%build
%if "%toolchain" == "clang"
%configure --disable-static --disable-silent-rules --with-udevrulesdir=%{_udevrulesdir} --with-udevrulesprefix=80- \
--with-runstatedir=%{_rundir} --with-tmpfilesdir=%{_tmpfilesdir} --with-sysusersdir=%{_sysusersdir}
%else
%configure --disable-static --disable-silent-rules --with-udevrulesdir=%{_udevrulesdir} --with-udevrulesprefix=80- \
--with-runstatedir=%{_rundir} --with-tmpfilesdir=%{_tmpfilesdir} --with-sysusersdir=%{_sysusersdir} \
--enable-unit --enable-integration
%endif
%make_build
%install
@ -74,6 +78,9 @@ make check
%{_mandir}/man*/*
%changelog
* Fri Nov 15 2024 xuce <xuce10@h-partners.com> - 4.0.1-4
- Fix incorrect function definition
* Wed May 8 2024 jinlun <jinlun@huawei.com> - 4.0.1-2
- fix CVE-2024-29040 and fix test check error