# This is a metapackage that pulls in the current Node.js version # Currently defaults to Node.js 24 %global nodejs_major 24 Name: nodejs Epoch: 3 Version: %{nodejs_major} Release: 1%{?dist} Summary: Node.js JavaScript runtime metapackage License: MIT URL: https://nodejs.org/ BuildArch: noarch Requires: nodejs%{nodejs_major} Requires: nodejs%{nodejs_major}-bin Requires: nodejs%{nodejs_major}-npm-bin %description This is a metapackage that installs the current supported version of Node.js JavaScript runtime. It pulls in nodejs%{nodejs_major}, nodejs%{nodejs_major}-bin, and nodejs%{nodejs_major}-npm-bin packages. The -bin packages provide unversioned symlinks (node, npm, npx) that point to the versioned binaries, making it convenient to use Node.js without specifying the version number. %package devel Summary: Node.js development headers metapackage Requires: nodejs = %{version} Requires: nodejs%{nodejs_major}-devel %description devel Metapackage that provides the nodejs%{nodejs_major}-devel package, which contains development headers for the Node.js JavaScript runtime. %prep # No source to prepare %build # Nothing to build %install # Nothing to install %files # This is a metapackage - no files %files devel # This is a metapackage - no files %changelog %autochangelog