%{?scl:%scl_package nodejs-%{npm_name}} %{!?scl:%global pkg_name %{name}} %global npm_name base64-js Name: %{?scl_prefix}nodejs-base64-js Version: 1.5.1 Release: 1%{?dist} Summary: Base64 encoding/decoding in pure JS License: MIT Group: Development/Libraries URL: https://github.com/beatgammit/base64-js Source0: https://registry.npmjs.org/base64-js/-/base64-js-%{version}.tgz %if 0%{?!scl:1} BuildRequires: nodejs-packaging %if 0%{?rhel} == 10 # https://issues.redhat.com/browse/RHEL-121844 BuildRequires: /usr/bin/node %endif %endif 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 base64js.min.js %{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 package.json %{buildroot}%{nodejs_sitelib}/%{npm_name} %nodejs_symlink_deps %check %{nodejs_symlink_deps} --check %files %{nodejs_sitelib}/%{npm_name} %license LICENSE %doc README.md %changelog * Fri Dec 19 2025 root 1.5.1-1 - Add nodejs-base64-js generated by npm2rpm using the single strategy