[Rpm-maint] [rpm-software-management/rpm] Expose build time to package build scriptlets via $RPM_BUILD_TIME (PR #2933)
Zbigniew Jędrzejewski-Szmek
notifications at github.com
Tue Feb 27 13:19:42 UTC 2024
@keszybz commented on this pull request.
> @@ -476,6 +476,25 @@ If the main section exists, it must come first to avoid ambiguity.
Otherwise, append and prepend can be used in any order and multiple
times, even if the corresponding main section does not exist.
+During the execution of build scriptlets, (at least) the following
+rpm-specific environment variables are set:
+
+Variable | Description
+---------------------------------------------------
+RPM_ARCH | Architecture of the package
+RPM_BUILD_DIR | The build directory of the package
+RPM_BUILD_NCPUS | The number of CPUs available for the build
+RPM_BUILD_ROOT | The buildroot directory of the package
+RPM_BUILD_TIME | The build time of the package
This should specify format/units, i.e. seconds since since the epoch.
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/2933#pullrequestreview-1903487383
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/2933/review/1903487383 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20240227/4e2731af/attachment.html>
More information about the Rpm-maint
mailing list