From 358199c9e622314624bda3174671be47a31886d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Stan=C4=9Bk?= Date: Wed, 18 Mar 2026 14:23:16 +0100 Subject: [PATCH] Swap definition order for metadata fields MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In some environments, a variant of rpm parser is used that does not expand Lua or shell invocations. In that environment, using %nodejs_define_version for defining (parts of) Name:, Version:, or Release: fields will result in them being empty or incomplete This swaps the definition order around, so that the fields are set first with the verbatim values. Signed-off-by: Jan Staněk --- nodejs24.spec | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/nodejs24.spec b/nodejs24.spec index e207171..315b9ec 100644 --- a/nodejs24.spec +++ b/nodejs24.spec @@ -1,9 +1,18 @@ +Name: nodejs24 +Epoch: 1 +Version: 24.13.0 +Release: %{autorelease} + +Summary: JavaScript runtime +License: Apache-2.0 AND Artistic-2.0 AND BSD-2-Clause AND BSD-3-Clause AND BlueOak-1.0.0 AND CC-BY-3.0 AND CC0-1.0 AND ISC AND MIT +URL: https://nodejs.org + # This should be moved to rpm-redhat-config or similar as soon as feasible # NOTE: %%SOURCE macros are not yet defined, so explicit path is needed %{load:%{_sourcedir}/nodejs.srpm.macros} # === Versions of any software shipped in the main nodejs tarball -%nodejs_define_version node 1:24.13.0-%{autorelease} -p +%nodejs_define_version node %{epoch}:%{version}-%{autorelease} -p # Special release for sub-packages with their own version string. # The complex release string ensures that the subpackage release is always increasing, @@ -77,15 +86,6 @@ # place for (npm) packages specific to this stream %global nodejs_private_sitelib %{_prefix}/lib/node_modules_%{node_version_major} -Name: nodejs%{node_version_major} -Epoch: %{node_epoch} -Version: %{node_version} -Release: %{node_release} - -Summary: JavaScript runtime -License: Apache-2.0 AND Artistic-2.0 AND BSD-2-Clause AND BSD-3-Clause AND BlueOak-1.0.0 AND CC-BY-3.0 AND CC0-1.0 AND ISC AND MIT -URL: https://nodejs.org - ExclusiveArch: %{nodejs_arches} # v8 does not build on i686 any more ExcludeArch: %{ix86}