commit
58580eb698
BIN
next-tick-0.2.2.tgz
Normal file
BIN
next-tick-0.2.2.tgz
Normal file
Binary file not shown.
48
nodejs-next-tick.spec
Normal file
48
nodejs-next-tick.spec
Normal file
@ -0,0 +1,48 @@
|
||||
%{?nodejs_find_provides_and_requires}
|
||||
%global packagename next-tick
|
||||
%global enable_tests 0
|
||||
Name: nodejs-next-tick
|
||||
Version: 0.2.2
|
||||
Release: 1
|
||||
Summary: Environment agnostic nextTick polyfill
|
||||
License: MIT
|
||||
URL: https://github.com/medikoo/next-tick.git
|
||||
Source0: https://registry.npmjs.org/next-tick/-/next-tick-%{version}.tgz
|
||||
BuildArch: noarch
|
||||
ExclusiveArch: %{nodejs_arches} noarch
|
||||
BuildRequires: nodejs-packaging
|
||||
%if 0%{?enable_tests}
|
||||
BuildRequires: npm(tad)
|
||||
%endif
|
||||
%description
|
||||
Environment agnostic nextTick polyfill
|
||||
|
||||
%prep
|
||||
%setup -q -n package
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename}
|
||||
cp -pr package.json *.js \
|
||||
%{buildroot}%{nodejs_sitelib}/%{packagename}
|
||||
%nodejs_symlink_deps
|
||||
|
||||
%check
|
||||
%nodejs_symlink_deps --check
|
||||
%{__nodejs} -e 'require("./")'
|
||||
%if 0%{?enable_tests}
|
||||
%{__nodejs} %{nodejs_sitelib}/tad/bin/tad
|
||||
%else
|
||||
echo "Tests disabled..."
|
||||
%endif
|
||||
|
||||
%files
|
||||
%{!?_licensedir:%global license %doc}
|
||||
%doc *.md
|
||||
%license LICENCE
|
||||
%{nodejs_sitelib}/%{packagename}
|
||||
|
||||
%changelog
|
||||
* Thu Aug 20 2020 wangchong <wangchong56@huawei.com> - 0.2.2-1
|
||||
- package init
|
||||
4
nodejs-next-tick.yaml
Normal file
4
nodejs-next-tick.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: github
|
||||
src_repo: medikoo/next-tick
|
||||
tag_prefix: ^v
|
||||
seperator: .
|
||||
Loading…
x
Reference in New Issue
Block a user