Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions comps/comps-foreman-el9.xml
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@
<packagereq type="default">nodejs-theforeman-builder</packagereq>
<packagereq type="default">nodejs-theforeman-vendor</packagereq>
<packagereq type="default">nodejs-tslib</packagereq>
<packagereq type="default">nodejs-unleash-proxy-client</packagereq>
<packagereq type="default">nodejs-urijs</packagereq>
<packagereq type="default">nodejs-use-deep-compare-effect</packagereq>
<packagereq type="default">nodejs-uuid</packagereq>
Expand Down
1 change: 1 addition & 0 deletions package_manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: {}
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -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 <root> 3.7.6-1
- Add nodejs-unleash-proxy-client generated by npm2rpm using the bundle strategy