Log In
Log In
Places
All Projects
Status Monitor
Collapse sidebar
obs:tools
build
_service:gitpkg:0016-Add-support-for-a-build.sc...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:gitpkg:0016-Add-support-for-a-build.script-for-spec-rpm-builds-t.patch of Package build
From 3c9611bca18571c4703054297c39e2ddf5fdbb79 Mon Sep 17 00:00:00 2001 From: David Greaves <david@dgreaves.com> Date: Fri, 20 Dec 2013 13:12:25 +0000 Subject: [PATCH] Add support for a build.script for spec/rpm builds too Note that rpm builds run from / whereas debian builds run from $TOPDIR/BUILD This allows all kinds of useful trickery to produce and publish rpms. Signed-off-by: David Greaves <david.greaves@jollamobile.com> --- build-recipe-spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build-recipe-spec b/build-recipe-spec index 812b841..7c4d0a1 100644 --- a/build-recipe-spec +++ b/build-recipe-spec @@ -282,6 +282,9 @@ recipe_build_spec() { "${rpmbopts[@]}" \ "$TOPDIR/SOURCES/$RECIPEFILE" \ > $BUILD_TARGET/.build.command + if test -e $BUILD_ROOT/$TOPDIR/SOURCES/build.script ; then + cp $BUILD_ROOT/$TOPDIR/SOURCES/build.script $BUILD_TARGET/.build.command + fi chmod 755 $BUILD_TARGET/.build.command check_exit local build_command="/.build.command" -- 2.40.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Contact
Support
@OBShq
The Open Build Service is an
openSUSE project
.
Log In
Places
Places
All Projects
Status Monitor