package init
This commit is contained in:
parent
397600531e
commit
8aaba228c8
BIN
minimist-1.2.0.tgz
Normal file
BIN
minimist-1.2.0.tgz
Normal file
Binary file not shown.
43
nodejs-minimist.spec
Normal file
43
nodejs-minimist.spec
Normal file
@ -0,0 +1,43 @@
|
||||
%{?nodejs_find_provides_and_requires}
|
||||
%global enable_tests 1
|
||||
Name: nodejs-minimist
|
||||
Version: 1.2.0
|
||||
Release: 1
|
||||
Summary: Parse argument options in Node.js
|
||||
License: MIT
|
||||
URL: https://github.com/substack/minimist
|
||||
Source0: https://registry.npmjs.org/minimist/-/minimist-%{version}.tgz
|
||||
BuildArch: noarch
|
||||
ExclusiveArch: %{nodejs_arches} noarch
|
||||
BuildRequires: nodejs-packaging
|
||||
%if 0%{?enable_tests}
|
||||
BuildRequires: npm(tap) npm(tape)
|
||||
%endif
|
||||
%description
|
||||
%{summary}.
|
||||
This module is the guts of nodejs-optimist's argument parser without all the
|
||||
fanciful decoration.
|
||||
|
||||
%prep
|
||||
%setup -q -n package
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{nodejs_sitelib}/minimist
|
||||
cp -pr package.json index.js %{buildroot}%{nodejs_sitelib}/minimist
|
||||
|
||||
%check
|
||||
%if 0%{?enable_tests}
|
||||
%nodejs_symlink_deps --check
|
||||
%tap test/*.js
|
||||
%endif
|
||||
|
||||
%files
|
||||
%{nodejs_sitelib}/minimist
|
||||
%doc readme.markdown example
|
||||
%license LICENSE
|
||||
|
||||
%changelog
|
||||
* Mon Aug 17 2020 wutao <wutao61@huawei.com> - 1.2.0-1
|
||||
- Package init
|
||||
4
nodejs-minimist.yaml
Normal file
4
nodejs-minimist.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: github
|
||||
src_repo: substack/minimist
|
||||
tag_prefix: "^"
|
||||
seperator: "."
|
||||
Loading…
x
Reference in New Issue
Block a user