diff --git a/bamf.spec b/bamf.spec index b245751..7d087af 100644 --- a/bamf.spec +++ b/bamf.spec @@ -62,8 +62,13 @@ package contains the bamf daemon and supporting data. %prep %autosetup -p1 +# autotools add -Werror after our flags, and there are glib deprecation warnings +# see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=940164 +sed -i 's/ -Werror//' configure* + + %build -CFLAGS="$RPM_OPT_FLAGS -Wno-error=deprecated-declarations" +CFLAGS="$RPM_OPT_FLAGS" export CFLAGS %configure --disable-static --disable-webapps --enable-gtk-doc make %{?_smp_mflags}