!16 [sync] PR-14: support specify cc

From: @openeuler-sync-bot 
Reviewed-by: @sunsuwan 
Signed-off-by: @sunsuwan
This commit is contained in:
openeuler-ci-bot 2024-04-01 08:15:12 +00:00 committed by Gitee
commit d3b87d5753
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,6 +1,6 @@
Name: ipvsadm Name: ipvsadm
Version: 1.31 Version: 1.31
Release: 5 Release: 6
Summary: A utility to administer the IP virtual server services Summary: A utility to administer the IP virtual server services
License: GPLv2+ License: GPLv2+
URL: https://kernel.org/pub/linux/utils/kernel/ipvsadm/ URL: https://kernel.org/pub/linux/utils/kernel/ipvsadm/
@ -26,7 +26,11 @@ offered by the Linux kernel with IP virtual server support.
%build %build
%set_build_flags %set_build_flags
make %if "%{?toolchain}" == "clang"
%global make_opts CC=clang CXX=clang++
%endif
make %{?make_opts}
%install %install
rm -rf %{buildroot} rm -rf %{buildroot}
@ -56,6 +60,12 @@ install -p -D -m 0600 %{SOURCE2} %{buildroot}%{_sysconfdir}/sysconfig/%{name}-co
%{_mandir}/man8/*8* %{_mandir}/man8/*8*
%changelog %changelog
* Fri Apr 14 2023 jammyjellyfish <jammyjellyfish255@outlook.com> - 1.31-6
- Type: requirement
- ID: NA
- SUG: NA
- DESC: Support specify CC
* Fri Apr 22 2022 kwb0523 <kwb0523@163.com> - 1.31-5 * Fri Apr 22 2022 kwb0523 <kwb0523@163.com> - 1.31-5
- Type: requirement - Type: requirement
- ID: NA - ID: NA