diff --git a/minimist-1.2.0.tgz b/minimist-1.2.0.tgz new file mode 100644 index 0000000..49b822d Binary files /dev/null and b/minimist-1.2.0.tgz differ diff --git a/nodejs-minimist.spec b/nodejs-minimist.spec new file mode 100644 index 0000000..2a82569 --- /dev/null +++ b/nodejs-minimist.spec @@ -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 - 1.2.0-1 +- Package init diff --git a/nodejs-minimist.yaml b/nodejs-minimist.yaml new file mode 100644 index 0000000..64c372c --- /dev/null +++ b/nodejs-minimist.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: substack/minimist +tag_prefix: "^" +seperator: "."