Accepting request 176308 from home:a_faerber:branches:Virtualization

Split off qemu-linux-user - this simplifies each build and decouples them, with the nice side-effect of fixing at least the qemu{,-tools,-guest-agent} SLE_11_SP2 x86_64 build.

OBS-URL: https://build.opensuse.org/request/show/176308
OBS-URL: https://build.opensuse.org/package/show/Virtualization/qemu?expand=0&rev=138
This commit is contained in:
Andreas Färber
2013-05-23 13:25:41 +00:00
committed by Git OBS Bridge
parent 3f1aa4ed8c
commit a719eba817
7 changed files with 1659 additions and 203 deletions

View File

@@ -11,7 +11,7 @@
# when it comes.
GIT_TREE=git://github.com/openSUSE/qemu.git
GIT_LOCAL_TREE=/suse/agraf/git/qemu
GIT_LOCAL_TREE=/home/andreas/QEMU/qemu-opensuse
GIT_BRANCH=opensuse-1.5
GIT_UPSTREAM_TAG=v1.5.0
QEMU_TMP=/dev/shm/qemu-tmp
@@ -20,7 +20,7 @@ QEMU_TMP=/dev/shm/qemu-tmp
if [ -e 0001-* ]; then
osc rm --force 0*
fi
rm -f qemu.spec
rm -f qemu.spec qemu-linux-user.spec
# fetch all patches
rm -rf $QEMU_TMP
@@ -49,8 +49,9 @@ for i in 0*; do
mv "$PATCHNAME.tmp" "$PATCHNAME"
done
# we have all patches as files now - generate the spec file!
while IFS= read -r line; do
# we have all patches as files now - generate the spec files!
for package in qemu qemu-linux-user; do
while IFS= read -r line; do
if [ "$line" = "PATCH_FILES" ]; then
for i in 0*; do
NUM=${i%%-*}
@@ -64,6 +65,7 @@ while IFS= read -r line; do
else
echo "$line"
fi
done < qemu.spec.in > qemu.spec
done < $package.spec.in > $package.spec
done
osc add 0*