Dongqi Chen 300996ce8d CentOS 8: Fix spec file for qemu-kvm
(1) Change python to python3

(2) Add the configuration option "--disable-capstone"
Add the configuration option "--disable-capstone" when
running "build_configure.sh", because the capstone folder
in the tarball is empty, set "capstone no" to fix problem
that capstone participates in compilation.

(3) Remove dependency "libssh2-devel" to resolve build problem
No "libssh2-devel" rpm is provided upstream,
but "libssh2" srpm is provided upstream

Story: 2006728
Task: 37879
Change-Id: I5542b9a75ba78fc8387ac3e6b51b8e8b0e21148b
Signed-off-by: Dongqi Chen <chen.dq@neusoft.com>
2020-01-10 13:38:17 +08:00
..
2018-08-01 10:06:31 -04:00
2018-08-01 10:06:31 -04:00
2018-08-01 10:06:31 -04:00
2018-08-01 10:06:31 -04:00

Get the RedHat source rpm from:
$ wget wget http://cbs.centos.org/kojifiles/packages/qemu-kvm-ev/2.3.0/31.el7_2.7.1/src/qemu-kvm-ev-2.3.0-31.el7_2.7.1.src.rpm 

Uncompress the source rpm:
$ rpm2cpio qemu-kvm-ev-2.3.0-31.el7_2.7.1.src.rpm | cpio -idmv

All the patches from the redhat source rpm have been applied in git/qemu using
scripts/autopatch.sh.

Some of these patches can't be applied cleanly with 'git am'.  So this script
attempd to execute 'git am' on each of them, if it fails it tries to patch
the files manually with 'git apply --index'.

A git tag 'qemu-kvm-ev-2.3.0-31.el7_2.7.1' has been added to the last patch
applied.

The Titanium Cloud specific patches will be added after this tag.