support clang

This commit is contained in:
shen-chenbang 2024-09-25 00:08:30 +08:00
parent 6ca3ae89f2
commit 41b8b27500

View File

@ -1,6 +1,6 @@
Name: tpm2-tss
Version: 4.0.1
Release: 3
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
* Tue Aug 27 2024 shenchenbang <1944340417@qq.com> - 4.0.1-4
- Fix incorrect function definition
* Fri May 10 2024 gengqihu <gengqihu2@h-partners.com> - 4.0.1-3
- Type:CVE
- ID:NA