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.
 
 

20 lines
1.0 KiB

#!/bin/bash
echo 'Installing Required Packages...'
sudo yum install -y rpm-build rpmdevtools 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
echo 'Setting Up RPM Build Folder Structure....'
rpmdev-setuptree
echo 'Copying QEMU SPEC Files...'
cp *.spec ~/rpmbuild/SPECS/
echo 'Changing Directory to RPM Build Folder Structure...'
cd ~/rpmbuild/
echo 'Downloading QEMU 4.0.0 Source Code...'
cd ~/rpmbuild/SOURCES/
wget https://download.qemu.org/qemu-4.0.0.tar.xz > /dev/null 2>&1
echo 'Changing Directory to RPM Build SPECS Folder...'
cd ~/rpmbuild/SPECS/
echo 'Building QEMU 4.0.0...'
rpmbuild -ba qemu-4.0.0.spec > /dev/null 2>&1
echo 'Copying QEMU 4.0.0 to Home Folder...'
cp ~/rpmbuild/RPMS/x86_64/qemu-4.0.0-1.el7.x86_64.rpm ~/qemu-4.0.0-1.el7.x86_64.rpm
echo 'QEMU 4.0.0 Is Now In Your Home Folder...'