fix the conditional to skip packaging fwupd-detect-cet when building with clang

(cherry picked from commit e875944f3736e8119adb0d200305c057548726ed)
This commit is contained in:
jchzhou 2024-03-13 15:57:28 +08:00 committed by openeuler-sync-bot
parent 801c7857d4
commit 01b13c2ab7

View File

@ -43,7 +43,7 @@
Name: fwupd Name: fwupd
Version: 1.8.17 Version: 1.8.17
Release: 2 Release: 3
License: LGPLv2+ License: LGPLv2+
Summary: Make updating firmware on Linux automatic, safe and reliable Summary: Make updating firmware on Linux automatic, safe and reliable
URL: https://github.com/fwupd/fwupd URL: https://github.com/fwupd/fwupd
@ -343,7 +343,7 @@ done
%{_libexecdir}/fwupd/fwupd %{_libexecdir}/fwupd/fwupd
# depending on compiler behavior # depending on compiler behavior
# currently skipped from building if compiled by llvm # currently skipped from building if compiled by llvm
%if "%toolchain" == "llvm" %if "%toolchain" == "clang"
%else %else
%ifarch i686 x86_64 %ifarch i686 x86_64
%{_libexecdir}/fwupd/fwupd-detect-cet %{_libexecdir}/fwupd/fwupd-detect-cet
@ -471,6 +471,9 @@ done
%{_datadir}/man/man1/* %{_datadir}/man/man1/*
%changelog %changelog
* Wed Mar 13 2024 jchzhou <zhoujiacheng@iscas.ac.cn> - 1.8.17-3
- Fix the conditional at L346: replace expected toolchain value to 'clang'
* Wed Mar 13 2024 panchenbo <panchenbo@kylinsec.com.cn> - 1.8.17-2 * Wed Mar 13 2024 panchenbo <panchenbo@kylinsec.com.cn> - 1.8.17-2
- modify openEuler to %{_vendor} - modify openEuler to %{_vendor}