%global npm_name connected-react-router Name: nodejs-connected-react-router Version: 6.6.1 Release: 3%{?dist} Summary: A Redux binding for React Router v4 and v5 License: MIT Group: Development/Libraries URL: https://github.com/supasate/connected-react-router#readme Source0: https://registry.npmjs.org/connected-react-router/-/connected-react-router-6.6.1.tgz Source1: https://registry.npmjs.org/immutable/-/immutable-3.8.3.tgz Source2: https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz Source3: https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz Source4: https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz Source5: https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz Source6: https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz Source7: https://registry.npmjs.org/seamless-immutable/-/seamless-immutable-7.1.4.tgz Source8: nodejs-connected-react-router-%{version}-package-lock.json BuildRequires: npm >= 7 BuildRequires: nodejs-packaging # The prep section runs node directly, so this is needed unconditionally. It # also works around https://issues.redhat.com/browse/RHEL-137712 on RHEL 10 # before 10.3, where the nodejs major version macro does not resolve without # node in the buildroot. BuildRequires: /usr/bin/node BuildArch: noarch ExclusiveArch: %{nodejs_arches} noarch Provides: npm(%{npm_name}) = %{version} Provides: bundled(npm(connected-react-router)) = 6.6.1 Provides: bundled(npm(immutable)) = 3.8.3 Provides: bundled(npm(js-tokens)) = 4.0.0 Provides: bundled(npm(loose-envify)) = 1.4.0 Provides: bundled(npm(object-assign)) = 4.1.1 Provides: bundled(npm(prop-types)) = 15.8.1 Provides: bundled(npm(react-is)) = 16.13.1 Provides: bundled(npm(seamless-immutable)) = 7.1.4 AutoReq: no AutoProv: no %define npm_cache_dir npm_cache_%{name}-%{version}-%{release} %description %{summary} %prep mkdir -p %{npm_cache_dir} # npm ci installs the tree recorded in the lockfile: every entry carries a # resolved URL and an integrity hash, and npm serves the tarballs from the # cache primed here by content hash. No registry access is needed. for src in %{sources}; do case "$src" in *.tgz) npm cache add --cache %{npm_cache_dir} "$src" ;; *-package-lock.json) cp "$src" package-lock.json ;; esac done # Derive package.json from the lockfile so the two cannot disagree. node -e ' const fs = require("fs"); const lock = JSON.parse(fs.readFileSync("package-lock.json")); fs.writeFileSync("package.json", JSON.stringify({ name: lock.name, version: lock.version, dependencies: lock.packages[""].dependencies }, null, 2) + "\n"); ' %build npm ci --legacy-peer-deps --offline --cache %{_builddir}/%{npm_cache_dir} --omit optional %install mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name} cp -pfr node_modules/%{npm_name}/node_modules %{buildroot}%{nodejs_sitelib}/%{npm_name} # npm creates a scope directory for every scope named in the lockfile, including # scopes whose packages were all omitted, which leaves empty dirs behind. # -delete implies -depth, so nested empties go bottom-up in a single pass. find %{buildroot}%{nodejs_sitelib}/%{npm_name} -type d -empty -delete cp -pfr node_modules/%{npm_name}/esm %{buildroot}%{nodejs_sitelib}/%{npm_name} cp -pfr node_modules/%{npm_name}/immutable.d.ts %{buildroot}%{nodejs_sitelib}/%{npm_name} cp -pfr node_modules/%{npm_name}/immutable.js %{buildroot}%{nodejs_sitelib}/%{npm_name} cp -pfr node_modules/%{npm_name}/index.d.ts %{buildroot}%{nodejs_sitelib}/%{npm_name} cp -pfr node_modules/%{npm_name}/lib %{buildroot}%{nodejs_sitelib}/%{npm_name} cp -pfr node_modules/%{npm_name}/package.json %{buildroot}%{nodejs_sitelib}/%{npm_name} cp -pfr node_modules/%{npm_name}/seamless-immutable.d.ts %{buildroot}%{nodejs_sitelib}/%{npm_name} cp -pfr node_modules/%{npm_name}/seamless-immutable.js %{buildroot}%{nodejs_sitelib}/%{npm_name} cp -pfr node_modules/%{npm_name}/umd %{buildroot}%{nodejs_sitelib}/%{npm_name} cp -pfr node_modules/%{npm_name}/webpack.config.js %{buildroot}%{nodejs_sitelib}/%{npm_name} %clean rm -rf %{buildroot} %{npm_cache_dir} %files %{nodejs_sitelib}/%{npm_name} %license node_modules/%{npm_name}/LICENSE.md %doc node_modules/%{npm_name}/ACKNOWLEDGE.md %doc node_modules/%{npm_name}/CODE_OF_CONDUCT.md %doc node_modules/%{npm_name}/FAQ.md %doc node_modules/%{npm_name}/README.md %changelog * Thu Jul 30 2026 Zach Huntington-Meath 6.6.1-3 - Update to 6.6.1 * Wed Jun 24 2026 Patrick Creech 6.6.1-2 - Update to 6.6.1 * Thu Jun 19 2025 MariaAga 6.6.1-1 - Add nodejs-connected-react-router generated by npm2rpm using the bundle strategy