This is an automated email from the ASF dual-hosted git repository.
sekikn pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/bigtop.git
The following commit(s) were added to refs/heads/master by this push:
new 7543c738 BIGTOP-3795: Add parameter to configure parent directory for
RPM packages (#994)
7543c738 is described below
commit 7543c73835d12981a8cd70677574293cd4ea26e5
Author: Zhiguo Wu <[email protected]>
AuthorDate: Thu Sep 1 20:57:06 2022 +0800
BIGTOP-3795: Add parameter to configure parent directory for RPM packages
(#994)
---
packages.gradle | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/packages.gradle b/packages.gradle
index 62dec9c3..ae1781fa 100644
--- a/packages.gradle
+++ b/packages.gradle
@@ -489,6 +489,8 @@ def genTasks = { target ->
def final MAVEN_REPO_ID = project.hasProperty('mavenRepoId') ?
project.property('mavenRepoId') : 'default'
def final MAVEN_REPO_URI = project.hasProperty('mavenRepoUri') ?
project.property('mavenRepoUri') : null
+ def final PARENT_DIR = project.hasProperty("parentDir") ?
project.property('parentDir') : "%{nil}"
+
def command = [
'--define', "_topdir $PKG_BUILD_DIR/rpm/",
'--define', "${NAME}_base_version $BASE_VERSION",
@@ -497,7 +499,8 @@ def genTasks = { target ->
'--define', "${NAME}_release ${BIGTOP_BUILD_STAMP}%{?dist}",
'--rebuild', SRCRPM,
'--define', "do_maven_deploy ${DO_MAVEN_DEPLOY}",
- '--define', "maven_deploy_source ${MAVEN_DEPLOY_SOURCE}"
+ '--define', "maven_deploy_source ${MAVEN_DEPLOY_SOURCE}",
+ "--define", "parent_dir ${PARENT_DIR}"
]
if (MAVEN_REPO_URI != null) {