diff --git a/libtpms.spec b/libtpms.spec index 2d10c5807a194ca0c3e8b1619aaa1a434b4c2285..ef2de9c74d34f3022f99b400ba0081a913ac8318 100644 --- a/libtpms.spec +++ b/libtpms.spec @@ -2,7 +2,7 @@ %define name libtpms %define version 0.9.5 -%define release 2 +%define release 3 # Valid crypto subsystems are 'freebl' and 'openssl' %if "%{?crypto_subsystem}" == "" @@ -77,6 +77,10 @@ Libtpms header files and documentation. %build +%if "%toolchain" == "clang" +export CFLAGS="${CFLAGS} -Wno-self-assign" +%endif + %if "%{crypto_subsystem}" == "openssl" %define _with_openssl --with-openssl %endif @@ -115,6 +119,9 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/libtpms.la %postun -p /sbin/ldconfig %changelog +* Tue Oct 10 2023 zhoujing - 0.9.5-3 +- Add -Wno-self-assign for building with clang + * Tue Mar 07 2023 jiangfangjie - 0.9.5-2 - fix CVE-2023--1018 and CVE-2023-1017