summaryrefslogtreecommitdiffstats
path: root/ci/build_qemu_rpm_deb/mkspec
diff options
context:
space:
mode:
authorSwati Sharma <swatix.sharma@intel.com>2016-06-29 02:34:43 +0900
committerswatisharma <swatix.sharma@intel.com>2016-07-21 11:16:22 +0530
commit853d63d099ec2f098f1f36350ec0c5095c3f4fd1 (patch)
tree1216f7b689302da485e49a2c964e0f0605e60d1a /ci/build_qemu_rpm_deb/mkspec
parentc715b6029fd5b4eaf323f5efde4ec5db5ba0a9b4 (diff)
Creation of QEMU(rpm and debian builds)
This includes the scripts that are added to create qemu-rpm and qemu-debian builds for KVM4NFV. Co-Authored-By: Gundarapu Reddy <reddyx.gundarapu@intel.com> Signed-off-by: Swati Sharma <swatix.sharma@intel.com>
Diffstat (limited to 'ci/build_qemu_rpm_deb/mkspec')
-rwxr-xr-xci/build_qemu_rpm_deb/mkspec43
1 files changed, 43 insertions, 0 deletions
diff --git a/ci/build_qemu_rpm_deb/mkspec b/ci/build_qemu_rpm_deb/mkspec
new file mode 100755
index 000000000..0b75a181b
--- /dev/null
+++ b/ci/build_qemu_rpm_deb/mkspec
@@ -0,0 +1,43 @@
+#!/bin/sh
+#
+# Output a simple RPM spec file.
+#
+# starting to output the spec
+
+QEMURELEASE=$1
+
+__QEMURELEASE=`echo $QEMURELEASE | sed -e "s/-/_/g"`
+
+echo $srctree
+echo "Name: qemu"
+echo "Summary: The Linux qemu"
+echo "Version: $__QEMURELEASE"
+# we need to determine the NEXT version number
+# rpm -q will agree
+echo "Release: `sudo sh mkversion`"
+echo "License: GPLv2+ and LGPLv2+ and BSD"
+echo "Group: Development/Tools"
+echo "Vendor: The Linux Community"
+echo "URL: http://www.qemu.org"
+echo "Source: qemu-$__QEMURELEASE.tar.gz"
+echo "%description"
+echo "%prep"
+echo " "
+echo "%setup -q"
+echo " "
+echo "%build"
+echo "%_configure"
+echo "make"
+echo "%install"
+echo "rm -rf %{buildroot}"
+echo "make install DESTDIR=%{buildroot}"
+echo "%clean"
+echo "rm -rf %{buildroot}"
+echo "%files"
+echo "%dir"
+echo "/usr/local/share/qemu"
+echo "%doc"
+echo "/usr/local/bin/ivshmem*"
+echo "/usr/local/bin/qemu*"
+echo "/usr/local/libexec/qemu-bridge-helper"
+echo "%changelog"