diff --git a/ypserv.spec b/ypserv.spec index 9368dea..9ffed25 100644 --- a/ypserv.spec +++ b/ypserv.spec @@ -1,6 +1,6 @@ Name: ypserv Version: 4.2 -Release: 1 +Release: 2 Summary: The NIS server License: GPLv2 URL: https://github.com/thkukuk/ypserv @@ -52,6 +52,10 @@ autoreconf -i cp etc/README etc/README.etc export CFLAGS="$RPM_OPT_FLAGS -fpic" +%if "%toolchain" == "clang" + export CFLAGS="$CFLAGS -Wno-error=strict-prototypes" +%endif + %configure --enable-checkroot --enable-fqdn --libexecdir=%{_libdir}/yp \ --with-dbmliborder=tokyocabinet --localstatedir=%{_localstatedir} --with-selinux %make_build @@ -105,6 +109,12 @@ install -m 644 etc/ypserv.conf %{buildroot}/%{_sysconfdir} %{_mandir}/*/* %changelog +* Thu Apr 20 2023 jammyjellyfish - 4.2-2 +- Type:requirement +- ID:NA +- SUG:NA +- DESC:Fix clang build error + * Tue Nov 15 2022 xingwei - 4.2-1 - Type:requirement - ID:NA