summaryrefslogtreecommitdiffstats
path: root/meta-extras/packages/osc/osc-native_svn.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-extras/packages/osc/osc-native_svn.bb')
-rwxr-xr-xmeta-extras/packages/osc/osc-native_svn.bb28
1 files changed, 28 insertions, 0 deletions
diff --git a/meta-extras/packages/osc/osc-native_svn.bb b/meta-extras/packages/osc/osc-native_svn.bb
new file mode 100755
index 0000000000..ab0ee0ba3a
--- /dev/null
+++ b/meta-extras/packages/osc/osc-native_svn.bb
@@ -0,0 +1,28 @@
1DESCRIPTION = "osc - OpenSUSE build service command-line tool."
2HOMEPAGE = "http://en.opensuse.org/Build_Service/CLI"
3SECTION = "console/utils"
4LICENSE = "GPL"
5PV = "0.0+svnr${SRCREV}"
6PR = "r1"
7DEPENDS = "python-native rpm-native"
8RDEPENDS = ""
9
10SRC_URI = "svn://forgesvn1.novell.com/svn/opensuse/trunk/buildservice/src/clientlib/python;module=osc;proto=https"
11S = "${WORKDIR}/osc"
12
13inherit native
14
15do_install() {
16 BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \
17 STAGING_LIBDIR=${STAGING_LIBDIR} STAGING_INCDIR=${STAGING_INCDIR} \
18 ${STAGING_BINDIR_NATIVE}/python setup.py build ||
19 oefatal "python setup.py build execution failed."
20
21 BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \
22 STAGING_LIBDIR=${STAGING_LIBDIR_NATIVE} STAGING_INCDIR=${STAGING_INCDIR_NATIVE} \
23 ${STAGING_BINDIR_NATIVE}/python setup.py install --prefix=${D}${prefix} --install-data=${D}${datadir} || \
24 oefatal "python setup.py install execution failed."
25
26 ln -sf osc-wrapper.py ${D}${bindir}/osc
27}
28