33 lines
802 B
RPMSpec
33 lines
802 B
RPMSpec
|
|
%{?nodejs_find_provides_and_requires}
|
||
|
|
Name: nodejs-once
|
||
|
|
Version: 1.3.3
|
||
|
|
Release: 1
|
||
|
|
Summary: Run a function exactly one time
|
||
|
|
BuildArch: noarch
|
||
|
|
ExclusiveArch: %{nodejs_arches} noarch
|
||
|
|
License: BSD
|
||
|
|
URL: https://github.com/isaacs/once
|
||
|
|
Source0: https://registry.npmjs.org/once/-/once-%{version}.tgz
|
||
|
|
BuildRequires: nodejs-packaging
|
||
|
|
%description
|
||
|
|
Run a function exactly one time.
|
||
|
|
|
||
|
|
%prep
|
||
|
|
%setup -q -n package
|
||
|
|
|
||
|
|
%build
|
||
|
|
|
||
|
|
%install
|
||
|
|
mkdir -p %{buildroot}%{nodejs_sitelib}/once
|
||
|
|
cp -pr package.json once.js %{buildroot}%{nodejs_sitelib}/once
|
||
|
|
%nodejs_symlink_deps
|
||
|
|
|
||
|
|
%files
|
||
|
|
%{nodejs_sitelib}/once
|
||
|
|
%doc README.md
|
||
|
|
%license LICENSE
|
||
|
|
|
||
|
|
%changelog
|
||
|
|
* Mon Aug 17 2020 wutao <wutao61@huawei.com> - 1.3.3-1
|
||
|
|
- Package init
|