From 7de27387d943e1411d79842b94784a7c7ac53324 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 31 Jul 2019 08:32:42 +0100 Subject: [PATCH] Define %baserelease to help rpmdev-bumpspec --- nodejs.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/nodejs.spec b/nodejs.spec index e102b6d..d5a4ceb 100644 --- a/nodejs.spec +++ b/nodejs.spec @@ -3,6 +3,12 @@ # use bcond for building modules %bcond_with bootstrap +# == Master Relase == +# This is used by both the nodejs package and the npm subpackage thar +# has a separate version - the name is special so that rpmdev-bumpspec +# will bump this rather than adding .1 to the end. +%global baserelease 2 + %{?!_pkgdocdir:%global _pkgdocdir %{_docdir}/%{name}-%{version}} # == Node.js Version == @@ -18,7 +24,7 @@ # nodejs_soversion - from NODE_MODULE_VERSION in src/node_version.h %global nodejs_soversion 72 %global nodejs_version %{nodejs_major}.%{nodejs_minor}.%{nodejs_patch} -%global nodejs_release 2 +%global nodejs_release %{baserelease} # == Bundled Dependency Versions == # v8 - from deps/v8/include/v8-version.h