-# Following export PATH is a dirty hack to let gnuradio configure find sdcc
-export PATH=$PATH:/usr/libexec/sdcc
-./bootstrap
-#./configure
+# dirty hack to let gnuradio configure find sdcc
+export PATH=%{_libexecdir}/sdcc:$PATH
+
+########## the bootstrap script basically reruns autoconf and automake
+%if "%{distro}" == "Fedora" && %{distrorelease} >= 12
+autoreconf -i
+%configure --disable-doxygen
+sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
+sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
+make %{?_smp_mflags}
+%else
+bash -x ./bootstrap