QEMU 3.1.0/4.0.0 Build Scripts for CentOS & Debian/Ubuntu
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

53 lines
1.9 KiB

Name: qemu
Version: 4.0.0
Release: 1%{?dist}
Summary: QEMU the FAST! processor emulator
License: GPLv2+
URL: https://www.qemu.org
Source0: https://download.qemu.org/%{name}-%{version}.tar.xz
BuildRequires: gtk2-devel, gnutls-devel, zlib-devel, glibc-devel, glib2-devel, gcc, pixman-devel, snappy-devel, lzo-devel, bzip2-devel, libcap-ng-devel, libcurl-devel, libssh2-devel, libaio-devel, libiscsi-devel, spice-server-devel, libusb-devel, libusbmuxd-devel, libusbx-devel, usbredir-devel, libnfs-devel
BuildArch: x86_64
Requires: gtk2-devel, gnutls-devel, zlib-devel, glibc-devel, glib2-devel, gcc, pixman-devel, pulseaudio-libs, centos-release-qemu-ev
Obsoletes: qemu-kvm,qemu-kvm-ev
%description
Packaging the latest (at time of writing) version of qemu that is not available from Red Hat repository
%prep
%setup -q -n %{name}-%{version}
%build
./configure --target-list=x86_64-softmmu --enable-gnutls --enable-spice --enable-tools --enable-kvm --enable-bzip2 --enable-libssh2 --enable-usb-redir --enable-modules --enable-libusb --enable-lzo --enable-virtfs --enable-curl --enable-vhost-net --enable-libnfs --enable-tpm --enable-linux-aio --enable-nettle --enable-libiscsi --enable-fdt --enable-snappy --enable-cap-ng --enable-attr
make -j4
%install
%make_install
%post
ln -sf /usr/local/bin/qemu-system-x86_64 /usr/libexec/qemu-kvm
ln -sf /usr/local/libexec/qemu-bridge-helper /usr/libexec/qemu-bridge-helper
%postun
rm -f /usr/libexec/qemu-kvm
rm -f /usr/libexec/qemu-bridge-helper
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
/usr/local/bin/
/usr/local/libexec/
/usr/local/share/qemu/
/usr/local/share/applications/
/usr/local/share/icons/hicolor/
/usr/local/lib/qemu/
%doc
%changelog
* Wed Apr 24 2019 Zach Spreuer <spreuer.zach@gmail.com> - 4.0.0-0
- packaging latest version of qemu from source for RHEL7