-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
-%configure
+export PKG_CONFIG_PATH="/usr/lib/pkgconfig"
+# dirty hack to let gnuradio configure find sdcc
+export PATH=$PATH:/usr/libexec/sdcc
+# basically reruns autoconf and automake
+%if "%{distro}" == "Fedora" && %{distrorelease} >= 12
+bash -x ./bootstrap.wextoolbox
+%else
+bash -x ./bootstrap
+%endif
+%configure --disable-doxygen