Add parameter to configure parent directory for RPM packages
@@ -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) {
