Log In
Log In
Places
All Projects
Status Monitor
Collapse sidebar
obs:server:fedora:2.8
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 01be2aea6bb9b49bc0428ea0a6bf72eeaad493ac 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 c2d78aa..a9df6eb 100644 --- a/build-recipe-spec +++ b/build-recipe-spec @@ -166,6 +166,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 if test -n "$RUN_SHELL"; then -- 2.14.3
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