From 6eb057143c035b930de9e99ba8376580f7d6762b Mon Sep 17 00:00:00 2001 From: Kamil Dudka Date: Fri, 9 Feb 2018 17:48:10 +0100 Subject: [PATCH] make the package build on Fedora 28 FIXME: The resulting binaries cannot work properly!!! --- libnice.spec | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libnice.spec b/libnice.spec index 1575942..b51908b 100644 --- a/libnice.spec +++ b/libnice.spec @@ -77,6 +77,13 @@ autoreconf -fiv %build +export CFLAGS="$RPM_OPT_FLAGS" +%if 0%{?fedora} == 28 +# FIXME: This makes the code compile on Fedora 28 but the resulting binaries +# cannot work properly!!! +CFLAGS="$CFLAGS -Wno-error=cast-function-type" +%endif + %configure --disable-static \ %if %{with gst010} --with-gstreamer-0.10 @@ -128,6 +135,7 @@ find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' %changelog * Fri Feb 09 2018 Kamil Dudka - 0.1.14-4.20171128gitfb2f1f7 +- make the package build on Fedora 28 - avoid build failure if gstreamer-plugins-base-devel is installed - move autoreconf invocation to %%prep - use Name Version Release that explicitly identifies an SCM snapshot (#1541646)