diff options
author | Jiang, Yunhong <yunhong.jiang@intel.com> | 2016-08-23 22:17:42 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@172.30.200.206> | 2016-08-23 22:17:42 +0000 |
commit | 76c2ed6659d79ee83c8fc4f00e955268779db826 (patch) | |
tree | 5bbdc58f68f4cd56816dfba3dc8e92a8f9f2a135 /ci/build_rpm/mkspec | |
parent | 2b76a9cbd6c127109286c8705f3347415eb26753 (diff) | |
parent | 7552c26370d38ef5dd182682a0d3bf096661fe0e (diff) |
Merge "OPNFV KVM4NFV CICD: Scripts for creating Rpms & Debians for Kernel, Qemu"
Diffstat (limited to 'ci/build_rpm/mkspec')
-rwxr-xr-x | ci/build_rpm/mkspec | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/ci/build_rpm/mkspec b/ci/build_rpm/mkspec new file mode 100755 index 000000000..4aa542325 --- /dev/null +++ b/ci/build_rpm/mkspec @@ -0,0 +1,44 @@ +#!/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: `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 "/usr/local/share/locale/*" +echo "%doc" +echo "/usr/local/bin/ivshmem*" +echo "/usr/local/bin/qemu*" +echo "/usr/local/libexec/qemu-bridge-helper" +echo "%changelog" |