Spec has one significant problem: not used fedora flags while linking. You should use %prep %autosetup touch configure chmod +x configure %build %configure instead of CFLAGS="%{optflags}";export CFLAGS