%{?scl:%scl_package nodejs-%{npm_name}} %{!?scl:%global pkg_name %{name}} %global npm_name @scalprum/core Name: %{?scl_prefix}nodejs-scalprum-core Version: 0.8.3 Release: 1%{?dist} Summary: Includes core functions for scalprum scaffolding License: Apache-2.0 Group: Development/Libraries URL: https://github.com/scalprum/scaffloding#readme Source0: https://registry.npmjs.org/@scalprum/core/-/core-%{version}.tgz %if 0%{?!scl:1} BuildRequires: nodejs-packaging %endif Requires: npm(@openshift/dynamic-plugin-sdk) >= 5.0.1 Requires: npm(@openshift/dynamic-plugin-sdk) < 6.0.0 Requires: npm(tslib) >= 2.6.2 Requires: npm(tslib) < 3.0.0 BuildArch: noarch ExclusiveArch: %{nodejs_arches} noarch Provides: %{?scl_prefix}npm(%{npm_name}) = %{version} %description %{summary} %prep %setup -q -n package %install mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name} cp -pfr esm %{buildroot}%{nodejs_sitelib}/%{npm_name} cp -pfr index.d.ts %{buildroot}%{nodejs_sitelib}/%{npm_name} cp -pfr index.js %{buildroot}%{nodejs_sitelib}/%{npm_name} cp -pfr index.js.map %{buildroot}%{nodejs_sitelib}/%{npm_name} cp -pfr package.json %{buildroot}%{nodejs_sitelib}/%{npm_name} cp -pfr warnDuplicatePkg.d.ts %{buildroot}%{nodejs_sitelib}/%{npm_name} cp -pfr warnDuplicatePkg.js %{buildroot}%{nodejs_sitelib}/%{npm_name} cp -pfr warnDuplicatePkg.js.map %{buildroot}%{nodejs_sitelib}/%{npm_name} %files %{nodejs_sitelib}/%{npm_name} %doc CHANGELOG.md %doc README.md %changelog * Wed Jul 09 2025 root 0.8.3-1 - Add nodejs-scalprum-core generated by npm2rpm using the single strategy