-PKG_CONFIG_PATH="/usr/lib/pkgconfig"
-export PKG_CONFIG_PATH
-# Following export PATH is a dirty hack to let gnuradio configure find sdcc
-PATH=$PATH:/usr/libexec/sdcc
-export PATH
-./bootstrap
-#./configure
+export PKG_CONFIG_PATH="/usr/lib/pkgconfig"
+# 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}
+make
+%else
+bash -x ./bootstrap