package init

This commit is contained in:
jackie_wu 2020-08-21 17:19:44 +08:00
parent 97659e468e
commit 0723c592cb
3 changed files with 48 additions and 0 deletions

Binary file not shown.

44
nodejs-multimatch.spec Normal file
View File

@ -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 <wutao61@huawei.com> - 2.1.0-1
- Package init

4
nodejs-multimatch.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: sindresorhus/multimatch
tag_prefix: "^v"
seperator: "."