# This is an empty "metapackage". It is used solely as a handle for selecting # one of the other nodejsXY "stream" packages, and does not contain any files itself. # Which "stream" packages gets selected is controlled by the version field/macro. Name: nodejs Epoch: 3 Version: 24 Release: %{autorelease} Summary: Node.js JavaScript runtime meta-package License: MIT URL: https://nodejs.org/ BuildArch: noarch # The %%{version}, %%{release}, etc. macros are only set # *after* the corresponding field (Version:, Release:, …) is parsed! %global nodejs_evr %{epoch}:%{version}-%{release} Requires: nodejs%{version} %description This is a meta-package that installs the current supported version of Node.js JavaScript runtime. It relies on nodejs%{version} to provide all necessary dependencies. %package devel Summary: Node.js development headers meta-package Requires: nodejs = %{nodejs_evr} Requires: nodejs%{version}-devel %description devel Meta-package that provides the nodejs%{version}-devel package, which contains development headers for the appropriate Node.js JavaScript runtime. %prep # No source to prepare %build # Nothing to build %pretrans -n nodejs -p print("LUA %pretrans script ran") posix.syslog(posix.LOG_INFO, "nodejs-meta %pretrans Lua script executed") %pre echo "-------------" echo "This is pre" echo "Install Value: $1" echo "Upgrade Value: $1" echo "Uninstall Value: $1" echo "-------------" %post echo "-------------" echo "This is post" echo "Install Value: $1" echo "Upgrade Value: $1" echo "Uninstall Value: $1" echo "-------------" %preun echo "-------------" echo "This is preun" echo "Install Value: $1" echo "Upgrade Value: $1" echo "Uninstall Value: $1" echo "-------------" %postun echo "-------------" echo "This is postun" echo "Install Value: $1" echo "Upgrade Value: $1" echo "Uninstall Value: $1" echo "-------------" %install # Nothing to install # This is a metapackage - no files %files %files devel %changelog %autochangelog