diff --git a/nodejs-minimatch-3.0.4.tar.gz b/nodejs-minimatch-3.0.4.tar.gz new file mode 100644 index 0000000..d3442ba Binary files /dev/null and b/nodejs-minimatch-3.0.4.tar.gz differ diff --git a/nodejs-minimatch.spec b/nodejs-minimatch.spec new file mode 100644 index 0000000..7c0e8c3 --- /dev/null +++ b/nodejs-minimatch.spec @@ -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 - 3.0.4-1 +- Package init diff --git a/nodejs-minimatch.yaml b/nodejs-minimatch.yaml new file mode 100644 index 0000000..2526c05 --- /dev/null +++ b/nodejs-minimatch.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: isaacs/minimatch +tag_prefix: "^v" +seperator: "."