nodejs-multimatch/nodejs-multimatch.spec

45 lines
1.1 KiB
RPMSpec
Raw Permalink Normal View History

2020-08-21 17:19:44 +08:00
%{?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