Merge "To publish the results on Grafana dashboard"
[kvmfornfv.git] / ci / build_rpm / mkspec
1 #!/bin/sh
2 #
3 #       Output a simple RPM spec file.
4 #
5 # starting to output the spec
6
7 QEMURELEASE=$1
8
9 __QEMURELEASE=`echo $QEMURELEASE | sed -e "s/-/_/g"`
10
11 echo $srctree
12 echo "Name: qemu"
13 echo "Summary: The Linux qemu"
14 echo "Version: $__QEMURELEASE"
15 # we need to determine the NEXT version number
16 # rpm -q will agree
17 echo "Release: `sh mkversion`"
18 echo "License: GPLv2+ and LGPLv2+ and BSD"
19 echo "Group: Development/Tools"
20 echo "Vendor: The Linux Community"
21 echo "URL: http://www.qemu.org"
22 echo "Source: qemu-$__QEMURELEASE.tar.gz"
23 echo "%description"
24 echo "%prep"
25 echo "     "
26 echo "%setup -q"
27 echo "         "
28 echo "%build"
29 echo "%_configure"
30 echo "make -j$(nproc)"
31 echo "%install"
32 echo "rm -rf %{buildroot}"
33 echo "make install DESTDIR=%{buildroot}"
34 echo "%clean"
35 echo "rm -rf %{buildroot}"
36 echo "%files"
37 echo "%dir"
38 echo "/usr/local/share/qemu"
39 echo "/usr/local/share/locale/*"
40 echo "%doc"
41 echo "/usr/local/bin/ivshmem*"
42 echo "/usr/local/bin/qemu*"
43 echo "/usr/local/libexec/qemu-bridge-helper"
44 echo "%changelog"