diff --git a/cpuid.spec b/cpuid.spec index b3bb669..9b7f3e0 100644 --- a/cpuid.spec +++ b/cpuid.spec @@ -20,7 +20,11 @@ and is fairly complete. %setup -q %build -%__make CFLAGS="%{optflags} -Wall" +# remove -Werror=format-security which is used on Mandriva, as it produces +# a false positive compiler error on several printf calls: +CFLAGS=$(echo "%{optflags} -Wall"| %__sed 's/-Werror=format-security//g') + +%__make CFLAGS="$CFLAGS" %install %__install -D -m 0755 cpuid "%{buildroot}%{_bindir}/cpuid"