commit
27ba2946f1
BIN
nodejs-minimatch-3.0.4.tar.gz
Normal file
BIN
nodejs-minimatch-3.0.4.tar.gz
Normal file
Binary file not shown.
44
nodejs-minimatch.spec
Normal file
44
nodejs-minimatch.spec
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
%{?nodejs_find_provides_and_requires}
|
||||||
|
%global enable_tests 0
|
||||||
|
Name: nodejs-minimatch
|
||||||
|
Version: 3.0.4
|
||||||
|
Release: 1
|
||||||
|
Summary: JavaScript glob matcher
|
||||||
|
License: MIT
|
||||||
|
URL: https://github.com/isaacs/minimatch
|
||||||
|
Source0: https://github.com/isaacs/minimatch/archive/v%{version}/%{name}-%{version}.tar.gz
|
||||||
|
BuildArch: noarch
|
||||||
|
ExclusiveArch: %{nodejs_arches} noarch
|
||||||
|
BuildRequires: nodejs-packaging
|
||||||
|
BuildRequires: npm(tap) npm(brace-expansion)
|
||||||
|
%description
|
||||||
|
Converts glob expressions to JavaScript "RegExp" objects.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n minimatch-%{version}
|
||||||
|
|
||||||
|
%build
|
||||||
|
|
||||||
|
%install
|
||||||
|
mkdir -p %{buildroot}%{nodejs_sitelib}/minimatch
|
||||||
|
cp -p package.json minimatch.js %{buildroot}%{nodejs_sitelib}/minimatch
|
||||||
|
%nodejs_symlink_deps
|
||||||
|
|
||||||
|
%check
|
||||||
|
%nodejs_symlink_deps --check
|
||||||
|
%{__nodejs} -e 'require("./")'
|
||||||
|
%if 0%{?enable_tests}
|
||||||
|
%{_bindir}/tap test/*.js
|
||||||
|
%else
|
||||||
|
%{_bindir}/echo -e "\e[101m -=#=- Tests disabled -=#=- \e[0m"
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%files
|
||||||
|
%{!?_licensedir:%global license %doc}
|
||||||
|
%doc README.md
|
||||||
|
%license LICENSE
|
||||||
|
%{nodejs_sitelib}/minimatch
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Mon Aug 17 2020 wutao <wutao61@huawei.com> - 3.0.4-1
|
||||||
|
- Package init
|
||||||
4
nodejs-minimatch.yaml
Normal file
4
nodejs-minimatch.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: github
|
||||||
|
src_repo: isaacs/minimatch
|
||||||
|
tag_prefix: "^v"
|
||||||
|
seperator: "."
|
||||||
Loading…
x
Reference in New Issue
Block a user