Summary: QEMU CPU Emulator
Summary(pl.UTF-8): QEMU - emulator procesora
Name: qemu
-Version: 0.14.0
-Release: 1
+Version: 1.0
+Release: 0.1
License: GPL
Group: Applications/Emulators
# Source0Download: http://fabrice.bellard.free.fr/qemu/download.html
-Source0: http://download.savannah.gnu.org/releases/qemu/%{name}-%{version}.tar.gz
-# Source0-md5: f9d145d5c09de9f0984ffe9bd1229970
+#Source0: http://download.savannah.gnu.org/releases/qemu/%{name}-%{version}.tar.gz
+Source0: http://wiki.qemu.org/download/%{name}-%{version}.tar.gz
+# Source0-md5: a64b36067a191451323b0d34ebb44954
Patch0: %{name}-ncurses.patch
Patch6: %{name}-nosdlgui.patch
# Proof of concept, for reference, do not remove
# cannot use optflags on x86 - they cause "no register to spill" errors
%if %{with cflags_passing}
-%{__sed} -i -e 's/-Wall -O2 -g/-Wall %{rpmcflags}/' Makefile Makefile.target
+%{__sed} -i -e 's/-g $CFLAGS/-Wall %{rpmcflags}/' configure
%else
-%{__sed} -i 's/-Wall -O2 -g/-Wall -O2/' Makefile Makefile.target
+%{__sed} -i 's/-g $CFLAGS/-Wall -fno-var-tracking-assignments/' configure
%endif
+# workaround for conflict with alsa/error.h
+ln -s ../error.h qapi/error.h
+
%build
# --extra-cflags don't work (overridden by CFLAGS in Makefile*)
# they can be passed if the cflags_passing bcond is used
--enable-mixemu \
--audio-drv-list="alsa" \
--interp-prefix=%{_libdir}/%{name}
-%{__make}
+%{__make} V=1
%install
rm -rf $RPM_BUILD_ROOT