package init
This commit is contained in:
parent
bb9791c03b
commit
ed5674f1c9
BIN
memoizee-0.3.9.tgz
Normal file
BIN
memoizee-0.3.9.tgz
Normal file
Binary file not shown.
48
nodejs-memoizee.spec
Normal file
48
nodejs-memoizee.spec
Normal file
@ -0,0 +1,48 @@
|
||||
%{?nodejs_find_provides_and_requires}
|
||||
%global packagename memoizee
|
||||
%global enable_tests 0
|
||||
Name: nodejs-memoizee
|
||||
Version: 0.3.9
|
||||
Release: 1
|
||||
Summary: Memoize/cache function results
|
||||
License: MIT
|
||||
URL: https://github.com/medikoo/memoizee
|
||||
Source0: https://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz
|
||||
BuildArch: noarch
|
||||
ExclusiveArch: %{nodejs_arches} noarch
|
||||
BuildRequires: nodejs-packaging
|
||||
%if 0%{?enable_tests}
|
||||
BuildRequires: npm(tad)
|
||||
%endif
|
||||
%description
|
||||
Memoize/cache function results
|
||||
|
||||
%prep
|
||||
%setup -q -n package
|
||||
%nodejs_fixdep es6-weak-map ~2.0.1
|
||||
%nodejs_fixdep d "<=2.0.0"
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename}
|
||||
cp -pr package.json *.js lib/ ext/ normalizers/ \
|
||||
%{buildroot}%{nodejs_sitelib}/%{packagename}
|
||||
%nodejs_symlink_deps
|
||||
%if 0%{?enable_tests}
|
||||
|
||||
%check
|
||||
%nodejs_symlink_deps --check
|
||||
%{__nodejs} -e 'require("./")'
|
||||
%{__nodejs} %{nodejs_sitelib}/tad/bin/tad
|
||||
%endif
|
||||
|
||||
%files
|
||||
%{!?_licensedir:%global license %doc}
|
||||
%doc *.md
|
||||
%license LICENSE
|
||||
%{nodejs_sitelib}/%{packagename}
|
||||
|
||||
%changelog
|
||||
* Mon Aug 17 2020 wutao <wutao61@huawei.com> - 0.3.9-1
|
||||
- Package init
|
||||
4
nodejs-memoizee.yaml
Normal file
4
nodejs-memoizee.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: github
|
||||
src_repo: medikoo/memoizee
|
||||
tag_prefix: "^v"
|
||||
seperator: "."
|
||||
Loading…
x
Reference in New Issue
Block a user