%global npm_scope vscode %global npm_name vsce %global debug_package %{nil} Name: nodejs-%{npm_scope}-%{npm_name} Version: 3.6.2 Release: 1%{?dist} Summary: This tool assists in packaging and publishing Visual Studio Code extensions. License: MIT AND ISC URL: https://github.com/microsoft/vscode-vsce Source0: https://registry.npmjs.org/@%{npm_scope}/%{npm_name}/-/%{npm_name}-%{version}.tgz Source1: @%{npm_scope}-%{npm_name}-%{version}-nm-prod.tgz Source2: @%{npm_scope}-%{npm_name}-%{version}-nm-dev.tgz Source3: @%{npm_scope}-%{npm_name}-%{version}-bundled-licenses.txt ExclusiveArch: %{nodejs_arches} noarch Requires: nodejs BuildRequires: nodejs BuildRequires: nodejs-devel %description %{summary}. %prep %setup -q -n package cp %{SOURCE3} . # Setup bundled runtime(prod) node modules tar xfz %{SOURCE1} mkdir -p node_modules pushd node_modules ln -s ../node_modules_prod/* . ln -s ../node_modules_prod/.bin . popd %build #nothing to do %install mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_scope}-%{npm_name} cp -pr package.json dist out vsce \ %{buildroot}%{nodejs_sitelib}/%{npm_scope}-%{npm_name} # Copy over bundled nodejs modules cp -pr node_modules node_modules_prod \ %{buildroot}%{nodejs_sitelib}/%{npm_scope}-%{npm_name} mkdir -p %{buildroot}%{_bindir} ln --symbolic --relative \ %{buildroot}%{nodejs_sitelib}/%{npm_scope}-%{npm_name}/vsce \ %{buildroot}%{_bindir}/vsce %check %{__nodejs} -e 'require("./")' %files %doc README.md %license LICENSE %license @%{npm_scope}-%{npm_name}-%{version}-bundled-licenses.txt %license ThirdPartyNotices.txt %{nodejs_sitelib}/%{npm_scope}-%{npm_name} %{_bindir}/vsce %changelog * Wed Dec 31 2025 Terry Patterson - Initial spec file