diff --git a/nodejs-multimatch-2.1.0.tar.gz b/nodejs-multimatch-2.1.0.tar.gz new file mode 100644 index 0000000..f3f303c Binary files /dev/null and b/nodejs-multimatch-2.1.0.tar.gz differ diff --git a/nodejs-multimatch.spec b/nodejs-multimatch.spec new file mode 100644 index 0000000..c755291 --- /dev/null +++ b/nodejs-multimatch.spec @@ -0,0 +1,44 @@ +%{?nodejs_find_provides_and_requires} +%global enable_tests 1 +Name: nodejs-multimatch +Version: 2.1.0 +Release: 1 +Summary: Adds multiple patterns support to minimatch.match() +License: MIT +URL: https://github.com/sindresorhus/multimatch +Source0: https://github.com/sindresorhus/multimatch/archive/v%{version}/%{name}-%{version}.tar.gz +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch +BuildRequires: nodejs-packaging +%if 0%{?enable_tests} +BuildRequires: npm(array-differ) npm(array-union) npm(arrify) npm(chai) npm(minimatch) +BuildRequires: npm(mocha) +%endif +%description +%{summary}. + +%prep +%autosetup -n multimatch-%{version} + +%build + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/multimatch +cp -pr package.json index.js \ + %{buildroot}%{nodejs_sitelib}/multimatch +%nodejs_symlink_deps +%if 0%{?enable_tests} + +%check +%nodejs_symlink_deps --check +%{_bindir}/mocha --reporter spec +%endif + +%files +%doc readme.md +%license license +%{nodejs_sitelib}/multimatch + +%changelog +* Mon Aug 17 2020 wutao - 2.1.0-1 +- Package init diff --git a/nodejs-multimatch.yaml b/nodejs-multimatch.yaml new file mode 100644 index 0000000..0a4b591 --- /dev/null +++ b/nodejs-multimatch.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: sindresorhus/multimatch +tag_prefix: "^v" +seperator: "."