From 7377552e33dd3f6adcc6c1f8ae90b08b04e5cc05 Mon Sep 17 00:00:00 2001 From: luofeng14 Date: Fri, 23 Feb 2024 02:22:57 +0000 Subject: [PATCH] support clang build Signed-off-by: luofeng14 --- rsync.spec | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/rsync.spec b/rsync.spec index 16ca54f..8891b12 100644 --- a/rsync.spec +++ b/rsync.spec @@ -1,6 +1,6 @@ Name: rsync Version: 3.2.7 -Release: 2 +Release: 3 Summary: Fast incremental file transfer utility License: GPL-3.0-or-later URL: http://rsync.samba.org/ @@ -38,6 +38,9 @@ at one of the ends of the link beforehand. %autosetup -n %{name}-%{version} -p1 %build +%if "%{?toolchain}" == "clang" + CFLAGS="${CFLAGS:-%{?build_cflags}} -Wno-strict-prototypes"; export CFLAGS; +%endif %configure --disable-xxhash %make_build @@ -81,6 +84,12 @@ install -D -m644 %{SOURCE5} %{buildroot}/%{_unitdir}/rsyncd@.service %{_mandir}/man5/rsyncd.conf.5* %changelog +* Thu Feb 22 2024 Xiaoya Huang - 3.2.7-3 +- Type: enhencement +- CVE: +- SUG:NA +- DESC: support clang build + * Thu Jun 15 2023 zhoupengcheng - 3.2.7-2 - Type:bugfix - CVE: