package init
This commit is contained in:
parent
8794ceee03
commit
94f0cede73
44
nodejs-set-immediate-shim.spec
Normal file
44
nodejs-set-immediate-shim.spec
Normal file
@ -0,0 +1,44 @@
|
||||
%{?nodejs_find_provides_and_requires}
|
||||
%global enable_tests 0
|
||||
%global srcname set-immediate-shim
|
||||
Name: nodejs-%{srcname}
|
||||
Version: 1.0.1
|
||||
Release: 1
|
||||
Summary: Simple setImmediate shim
|
||||
License: MIT
|
||||
URL: https://github.com/sindresorhus/set-immediate-shim
|
||||
Source0: https://github.com/sindresorhus/set-immediate-shim/archive/v%{version}/set-immediate-shim-%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
ExclusiveArch: %{nodejs_arches} noarch
|
||||
BuildRequires: nodejs-packaging
|
||||
%if 0%{?enable_tests}
|
||||
BuildRequires: npm(ava) npm(require-uncached)
|
||||
%endif
|
||||
%description
|
||||
%{summary}.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{srcname}-%{version}
|
||||
rm -rf node_modules/
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{nodejs_sitelib}/%{srcname}
|
||||
cp -pr index.js package.json %{buildroot}%{nodejs_sitelib}/%{srcname}
|
||||
%nodejs_symlink_deps
|
||||
%if 0%{?enable_tests}
|
||||
|
||||
%check
|
||||
%nodejs_symlink_deps --check
|
||||
node test.js
|
||||
%endif
|
||||
|
||||
%files
|
||||
%doc readme.md
|
||||
%license license
|
||||
%{nodejs_sitelib}/%{srcname}
|
||||
|
||||
%changelog
|
||||
* Fri Aug 21 2020 wangchong <wangchong56@huawei.com> - 1.0.1-1
|
||||
- package init
|
||||
4
nodejs-set-immediate-shim.yaml
Normal file
4
nodejs-set-immediate-shim.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version-control: github
|
||||
src_repo: sindresorhus/set-immediate-shim
|
||||
tag_prefix: ^v
|
||||
seperator: .
|
||||
BIN
set-immediate-shim-1.0.1.tar.gz
Normal file
BIN
set-immediate-shim-1.0.1.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user