summaryrefslogtreecommitdiff
path: root/macros.in
diff options
context:
space:
mode:
authorFlorian Festi <ffesti@redhat.com>2021-01-11 11:07:59 +0100
committerPanu Matilainen <pmatilai@redhat.com>2022-11-09 16:23:43 +0200
commite8e2a121ba6c604f342f86d0c73dca32bd7d687c (patch)
tree2336ca3fe1669d301a6c0f7c6e4bfe82232b4f0b /macros.in
parent524bfcb816ea0fa21bbe9891073409df9d239d4f (diff)
downloadrpm-e8e2a121ba6c604f342f86d0c73dca32bd7d687c.tar.gz
Add Dynamic Spec generation
Read in *.specpart files from %{specpartsdir} aka $RPM_SPECPARTS_DIR after the %install script. This allows the build process to add sub packages to the build. In the future more changes to the packages may be possible - like amending package declarations. The %{specpartsdir} is created by the %setup pseudo macro inside of the buildsubdir. It's presence allows build scripts to check if this feature is supported in the running rpmbuild instance.
Diffstat (limited to 'macros.in')
-rw-r--r--macros.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/macros.in b/macros.in
index ab5645733..04bcc95dd 100644
--- a/macros.in
+++ b/macros.in
@@ -731,7 +731,8 @@ package or when debugging this package.\
RPM_ARCH=\"%{_arch}\"\
RPM_OS=\"%{_os}\"\
RPM_BUILD_NCPUS=\"%{_smp_build_ncpus}\"\
- export RPM_SOURCE_DIR RPM_BUILD_DIR RPM_OPT_FLAGS RPM_ARCH RPM_OS RPM_BUILD_NCPUS\
+ RPM_SPECPARTS_DIR=\"%{specpartsdir}\"\
+ export RPM_SOURCE_DIR RPM_BUILD_DIR RPM_OPT_FLAGS RPM_ARCH RPM_OS RPM_BUILD_NCPUS RPM_SPECPARTS_DIR\
RPM_DOC_DIR=\"%{_docdir}\"\
export RPM_DOC_DIR\
RPM_PACKAGE_NAME=\"%{NAME}\"\