LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File qemu-2.7.export.sh of Package qemu-2.7 (Project home:olh:xen-buildrequires)

#!/bin/bash
# requires helpers.rpm
#et -x
set -e
unset LANG
unset ${!LC*}

pkg_tag=qemu-2.7
pkg_git_url=git://git.qemu.org/qemu.git
pkg_git_upstream_remote=upstream
pkg_git_upstream_branch=stable-2.7
pkg_git_fixes_remote=github_olafhering
pkg_git_fixes_base=olh-base
pkg_git_fixes_branch=olh-fixes
work_dir="`olh-obs_scm-create_workdir`"
trap "rm -rf \"${work_dir}\" ; : $0" EXIT
pushd "${work_dir}" > /dev/null
patches_dir="${work_dir}/.patches"
export TMPDIR="${work_dir}/.tmp"
mkdir "${patches_dir}" "${TMPDIR}"
popd > /dev/null

pkg_dir="`olh-obs_scm-create_next_pkgdir \"${work_dir}\"`"
pkg_git_dir="`olh-obs_scm-remap-gitrepo-url ${pkg_git_url} 'dir'`"
pkg_git_upstream_url="`olh-obs_scm-remap-gitrepo-url ${pkg_git_url} 'url'`"
#
olh-obs_scm-gitrepo-2-rpm_meta \
	--git-dir "${pkg_git_dir}" \
	--git-upstream-url    "${pkg_git_upstream_url}" \
	--git-upstream-remote "${pkg_git_upstream_remote}" \
	--git-upstream-branch "${pkg_git_upstream_branch}" \
	--git-fixes-remote "${pkg_git_fixes_remote}" \
	--git-fixes-base   "${pkg_git_fixes_base}" \
	--git-fixes-branch "${pkg_git_fixes_branch}" \
	--pkg-tag "${pkg_tag}" \
	--pkg-patch-basedir "." \
	--patches-dir "${patches_dir}" \
	--workdir "${work_dir}" \
	--outdir "${pkg_dir}"
#
olh-obs_scm-create_rpm_from_workdir \
	--pkg-tag "${pkg_tag}" \
	--workdir "${work_dir}"