diff --git a/comps/comps-foreman-el9.xml b/comps/comps-foreman-el9.xml index 8d59bee365..a39a0db9ec 100644 --- a/comps/comps-foreman-el9.xml +++ b/comps/comps-foreman-el9.xml @@ -145,6 +145,7 @@ nodejs-theforeman-builder nodejs-theforeman-vendor nodejs-tslib + nodejs-unleash-proxy-client nodejs-urijs nodejs-use-deep-compare-effect nodejs-uuid diff --git a/package_manifest.yaml b/package_manifest.yaml index 1375aebe08..5003863cbe 100644 --- a/package_manifest.yaml +++ b/package_manifest.yaml @@ -493,6 +493,7 @@ foreman_nodejs_packages: nodejs-theforeman-vendor: name: "@theforeman/vendor" nodejs-tslib: {} + nodejs-unleash-proxy-client: {} nodejs-urijs: {} nodejs-use-deep-compare-effect: {} nodejs-uuid: {} diff --git a/packages/foreman/nodejs-unleash-proxy-client/nodejs-unleash-proxy-client-3.7.6-registry.npmjs.org.tgz b/packages/foreman/nodejs-unleash-proxy-client/nodejs-unleash-proxy-client-3.7.6-registry.npmjs.org.tgz new file mode 100644 index 0000000000..5c3220bd21 Binary files /dev/null and b/packages/foreman/nodejs-unleash-proxy-client/nodejs-unleash-proxy-client-3.7.6-registry.npmjs.org.tgz differ diff --git a/packages/foreman/nodejs-unleash-proxy-client/nodejs-unleash-proxy-client.spec b/packages/foreman/nodejs-unleash-proxy-client/nodejs-unleash-proxy-client.spec new file mode 100644 index 0000000000..5a6e79fb2b --- /dev/null +++ b/packages/foreman/nodejs-unleash-proxy-client/nodejs-unleash-proxy-client.spec @@ -0,0 +1,74 @@ +%{?scl:%scl_package nodejs-%{npm_name}} +%{!?scl:%global pkg_name %{name}} + +%global npm_name unleash-proxy-client + +Name: %{?scl_prefix}nodejs-unleash-proxy-client +Version: 3.7.6 +Release: 1%{?dist} +Summary: A browser client that can be used together with Unleash Edge or the Unleash Frontend API +License: Apache-2.0 +Group: Development/Libraries +URL: https://github.com/unleash/unleash-proxy-client-js#readme +Source0: https://registry.npmjs.org/tiny-emitter/-/tiny-emitter-2.1.0.tgz +Source1: https://registry.npmjs.org/unleash-proxy-client/-/unleash-proxy-client-3.7.6.tgz +Source2: https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz +Source3: nodejs-unleash-proxy-client-%{version}-registry.npmjs.org.tgz +BuildRequires: %{?scl_prefix_nodejs}npm +%if 0%{!?scl:1} +BuildRequires: nodejs-packaging +%endif +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch + +Provides: %{?scl_prefix}npm(%{npm_name}) = %{version} +Provides: bundled(npm(tiny-emitter)) = 2.1.0 +Provides: bundled(npm(unleash-proxy-client)) = 3.7.6 +Provides: bundled(npm(uuid)) = 9.0.1 +AutoReq: no +AutoProv: no + +%if 0%{?scl:1} +%define npm_cache_dir npm_cache +%else +%define npm_cache_dir /tmp/npm_cache_%{name}-%{version}-%{release} +%endif + +%description +%{summary} + +%prep +mkdir -p %{npm_cache_dir} +%{?scl:scl enable %{?scl_nodejs} - << \end_of_scl} +for tgz in %{sources}; do + echo $tgz | grep -q registry.npmjs.org || npm cache add --cache %{npm_cache_dir} $tgz +done +%{?scl:end_of_scl} + +%setup -T -q -a 3 -D -n %{npm_cache_dir} + +%build +%{?scl:scl enable %{?scl_nodejs} - << \end_of_scl} +npm install --legacy-peer-deps --cache-min Infinity --cache %{?scl:../}%{npm_cache_dir} --no-shrinkwrap --no-optional --global-style true %{npm_name}@%{version} +%{?scl:end_of_scl} + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name} +cp -pfr node_modules/%{npm_name}/node_modules %{buildroot}%{nodejs_sitelib}/%{npm_name} +cp -pfr node_modules/%{npm_name}/build %{buildroot}%{nodejs_sitelib}/%{npm_name} +cp -pfr node_modules/%{npm_name}/examples %{buildroot}%{nodejs_sitelib}/%{npm_name} +cp -pfr node_modules/%{npm_name}/package.json %{buildroot}%{nodejs_sitelib}/%{npm_name} +cp -pfr node_modules/%{npm_name}/src %{buildroot}%{nodejs_sitelib}/%{npm_name} + +%clean +rm -rf %{buildroot} %{npm_cache_dir} + +%files +%{nodejs_sitelib}/%{npm_name} +%license node_modules/%{npm_name}/LICENSE +%doc node_modules/%{npm_name}/README.md + +%changelog +* Wed Jul 09 2025 root 3.7.6-1 +- Add nodejs-unleash-proxy-client generated by npm2rpm using the bundle strategy + diff --git a/packages/foreman/nodejs-unleash-proxy-client/tiny-emitter-2.1.0.tgz b/packages/foreman/nodejs-unleash-proxy-client/tiny-emitter-2.1.0.tgz new file mode 120000 index 0000000000..5bddada599 --- /dev/null +++ b/packages/foreman/nodejs-unleash-proxy-client/tiny-emitter-2.1.0.tgz @@ -0,0 +1 @@ +../../../.git/annex/objects/xw/9Q/SHA256E-s22344--538c1ea30c1ec068d85c679bb900f3407dcbc0cf65ff0191c4ccba47dc01713a.0.tgz/SHA256E-s22344--538c1ea30c1ec068d85c679bb900f3407dcbc0cf65ff0191c4ccba47dc01713a.0.tgz \ No newline at end of file diff --git a/packages/foreman/nodejs-unleash-proxy-client/unleash-proxy-client-3.7.6.tgz b/packages/foreman/nodejs-unleash-proxy-client/unleash-proxy-client-3.7.6.tgz new file mode 120000 index 0000000000..10992fbc9a --- /dev/null +++ b/packages/foreman/nodejs-unleash-proxy-client/unleash-proxy-client-3.7.6.tgz @@ -0,0 +1 @@ +../../../.git/annex/objects/Gg/QX/SHA256E-s92188--0e6348556ab928d5d7a154b654c32d445cba012ddac50818a74138d6d0e2ddbb.6.tgz/SHA256E-s92188--0e6348556ab928d5d7a154b654c32d445cba012ddac50818a74138d6d0e2ddbb.6.tgz \ No newline at end of file diff --git a/packages/foreman/nodejs-unleash-proxy-client/uuid-9.0.1.tgz b/packages/foreman/nodejs-unleash-proxy-client/uuid-9.0.1.tgz new file mode 120000 index 0000000000..bbff90f0d7 --- /dev/null +++ b/packages/foreman/nodejs-unleash-proxy-client/uuid-9.0.1.tgz @@ -0,0 +1 @@ +../../../.git/annex/objects/p1/GP/SHA256E-s23487--9fa6f415a7d9f7f8ea48e45beeb567686261da85cd395901c54c3515589e3f7e.1.tgz/SHA256E-s23487--9fa6f415a7d9f7f8ea48e45beeb567686261da85cd395901c54c3515589e3f7e.1.tgz \ No newline at end of file