summaryrefslogtreecommitdiffstats
path: root/ci/build_rpm/mkspec
blob: 4aa5423255f065a277c3094f9717155bca08cacb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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"