support clang
This commit is contained in:
parent
6ca3ae89f2
commit
41b8b27500
@ -1,6 +1,6 @@
|
|||||||
Name: tpm2-tss
|
Name: tpm2-tss
|
||||||
Version: 4.0.1
|
Version: 4.0.1
|
||||||
Release: 3
|
Release: 4
|
||||||
Summary: TPM2.0 Software Stack
|
Summary: TPM2.0 Software Stack
|
||||||
License: BSD
|
License: BSD
|
||||||
URL: https://github.com/tpm2-software/tpm2-tss
|
URL: https://github.com/tpm2-software/tpm2-tss
|
||||||
@ -31,10 +31,14 @@ Obsoletes: %{name}-static
|
|||||||
%autosetup -n %{name}-%{version} -p1
|
%autosetup -n %{name}-%{version} -p1
|
||||||
|
|
||||||
%build
|
%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- \
|
%configure --disable-static --disable-silent-rules --with-udevrulesdir=%{_udevrulesdir} --with-udevrulesprefix=80- \
|
||||||
--with-runstatedir=%{_rundir} --with-tmpfilesdir=%{_tmpfilesdir} --with-sysusersdir=%{_sysusersdir} \
|
--with-runstatedir=%{_rundir} --with-tmpfilesdir=%{_tmpfilesdir} --with-sysusersdir=%{_sysusersdir} \
|
||||||
--enable-unit --enable-integration
|
--enable-unit --enable-integration
|
||||||
|
%endif
|
||||||
%make_build
|
%make_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@ -74,6 +78,9 @@ make check
|
|||||||
%{_mandir}/man*/*
|
%{_mandir}/man*/*
|
||||||
|
|
||||||
%changelog
|
%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
|
* Fri May 10 2024 gengqihu <gengqihu2@h-partners.com> - 4.0.1-3
|
||||||
- Type:CVE
|
- Type:CVE
|
||||||
- ID:NA
|
- ID:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user