Skip to content

Commit

Permalink
Add nodejs-js-cookie package
Browse files Browse the repository at this point in the history
  • Loading branch information
MariaAga committed Jul 22, 2024
1 parent dd9f765 commit fe946d2
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 0 deletions.
1 change: 1 addition & 0 deletions comps/comps-foreman-el8.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
<packagereq type="default">nodejs-intl</packagereq>
<packagereq type="default">nodejs-jed</packagereq>
<packagereq type="default">nodejs-jquery</packagereq>
<packagereq type="default">nodejs-js-cookie</packagereq>
<packagereq type="default">nodejs-js-tokens</packagereq>
<packagereq type="default">nodejs-lodash</packagereq>
<packagereq type="default">nodejs-module-federation-utilities</packagereq>
Expand Down
1 change: 1 addition & 0 deletions package_manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,7 @@ foreman_nodejs_packages:
nodejs-intl: {}
nodejs-jed: {}
nodejs-jquery: {}
nodejs-js-cookie: {}
nodejs-js-tokens: {}
nodejs-lodash: {}
nodejs-module-federation-utilities: {}
Expand Down
1 change: 1 addition & 0 deletions packages/foreman/nodejs-js-cookie/js-cookie-3.0.5.tgz
46 changes: 46 additions & 0 deletions packages/foreman/nodejs-js-cookie/nodejs-js-cookie.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
%{?scl:%scl_package nodejs-%{npm_name}}
%{!?scl:%global pkg_name %{name}}

%global npm_name js-cookie

Name: %{?scl_prefix}nodejs-js-cookie
Version: 3.0.5
Release: 1%{?dist}
Summary: A simple, lightweight JavaScript API for handling cookies
License: MIT
Group: Development/Libraries
URL: https://github.com/js-cookie/js-cookie#readme
Source0: https://registry.npmjs.org/js-cookie/-/js-cookie-%{version}.tgz
%if 0%{?!scl:1}
BuildRequires: nodejs-packaging
%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 dist %{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
* Mon Jul 22 2024 MariaAga <mariaaga@redhat.com> 3.0.5-1
- Add nodejs-js-cookie generated by npm2rpm using the single strategy

0 comments on commit fe946d2

Please sign in to comment.