fuanan add package
This commit is contained in:
parent
79275f8dae
commit
0e284119c1
BIN
nodejs-glob-6.0.4.tar.gz
Normal file
BIN
nodejs-glob-6.0.4.tar.gz
Normal file
Binary file not shown.
46
nodejs-glob-tap.patch
Normal file
46
nodejs-glob-tap.patch
Normal file
@ -0,0 +1,46 @@
|
||||
commit 8829452ae5502eef21846d86609f15dc47c56044
|
||||
Author: Tom Hughes <tom@compton.nu>
|
||||
Date: Fri Jan 1 11:19:26 2016 +0000
|
||||
|
||||
Fix tests to work with older version of tap
|
||||
|
||||
diff --git a/test/global-leakage.js b/test/global-leakage.js
|
||||
index 238990c..7843495 100644
|
||||
--- a/test/global-leakage.js
|
||||
+++ b/test/global-leakage.js
|
||||
@@ -1,5 +1,5 @@
|
||||
if (require.main === module)
|
||||
- return require('tap').pass('ok')
|
||||
+ return require('tap').test('').pass('ok')
|
||||
|
||||
var before = Object.keys(global).sort().filter(function (t) {
|
||||
return t !== '__coverage__'
|
||||
diff --git a/test/multiple-weird-error.js b/test/multiple-weird-error.js
|
||||
index 4a9e45e..9285dfb 100644
|
||||
--- a/test/multiple-weird-error.js
|
||||
+++ b/test/multiple-weird-error.js
|
||||
@@ -1,4 +1,4 @@
|
||||
-var t = require('tap')
|
||||
+var tap = require('tap')
|
||||
var fs = require('fs')
|
||||
fs.readdir = function(path, cb) { cb(new Error('expected')) }
|
||||
var glob = require('../')
|
||||
@@ -6,10 +6,12 @@ var glob = require('../')
|
||||
// also test that silent:true is actually silent!
|
||||
console.error = function () { throw 'SILENCE, INSECT!' }
|
||||
|
||||
-t.plan(2)
|
||||
-glob('*', { silent: true }, function(err, files) {
|
||||
- t.ok(err, 'got first error')
|
||||
-})
|
||||
-glob('*', { silent: true }, function(err, files) {
|
||||
- t.ok(err, 'got second error')
|
||||
+tap.test("unexpected errors", function (t) {
|
||||
+ t.plan(2)
|
||||
+ glob('*', { silent: true }, function(err, files) {
|
||||
+ t.ok(err, 'got first error')
|
||||
+ })
|
||||
+ glob('*', { silent: true }, function(err, files) {
|
||||
+ t.ok(err, 'got second error')
|
||||
+ })
|
||||
})
|
||||
47
nodejs-glob.spec
Normal file
47
nodejs-glob.spec
Normal file
@ -0,0 +1,47 @@
|
||||
%{?nodejs_find_provides_and_requires}
|
||||
%global enable_tests 1
|
||||
Name: nodejs-glob
|
||||
Version: 6.0.4
|
||||
Release: 1
|
||||
Summary: A little globber for Node.js
|
||||
License: BSD
|
||||
URL: https://github.com/isaacs/node-glob
|
||||
Source0: https://github.com/isaacs/node-glob/archive/v%{version}/%{name}-%{version}.tar.gz
|
||||
Patch0: nodejs-glob-tap.patch
|
||||
BuildArch: noarch
|
||||
ExclusiveArch: %{nodejs_arches} noarch
|
||||
BuildRequires: nodejs-packaging
|
||||
%if 0%{?enable_tests}
|
||||
BuildRequires: npm(tap) npm(inflight) npm(path-is-absolute) npm(rimraf)
|
||||
%endif
|
||||
%description
|
||||
This is a glob implementation in pure JavaScript. It uses the minimatch library
|
||||
to do its matching.
|
||||
|
||||
%prep
|
||||
%autosetup -p 1 -n node-glob-%{version}
|
||||
%nodejs_fixdep once "^1.1.1"
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{nodejs_sitelib}/glob
|
||||
cp -pr package.json glob.js sync.js common.js \
|
||||
%{buildroot}%{nodejs_sitelib}/glob
|
||||
%nodejs_symlink_deps
|
||||
%if 0%{?enable_tests}
|
||||
|
||||
%check
|
||||
%nodejs_symlink_deps --check
|
||||
%tap test/*.js
|
||||
%endif
|
||||
|
||||
%files
|
||||
%{!?_licensedir:%global license %doc}
|
||||
%doc README.md examples
|
||||
%license LICENSE
|
||||
%{nodejs_sitelib}/glob
|
||||
|
||||
%changelog
|
||||
* Thu Aug 20 2020 Anan Fu <fuanan3@huawei.com> - 6.0.4-1
|
||||
- package init
|
||||
128
nodejs-glob.spec.old
Normal file
128
nodejs-glob.spec.old
Normal file
@ -0,0 +1,128 @@
|
||||
%{?nodejs_find_provides_and_requires}
|
||||
|
||||
%global enable_tests 1
|
||||
|
||||
Name: nodejs-glob
|
||||
Version: 6.0.4
|
||||
Release: 7%{?dist}
|
||||
Summary: A little globber for Node.js
|
||||
|
||||
License: BSD
|
||||
URL: https://github.com/isaacs/node-glob
|
||||
Source0: https://github.com/isaacs/node-glob/archive/v%{version}/%{name}-%{version}.tar.gz
|
||||
# Fix tests to work with older version of tap
|
||||
Patch0: nodejs-glob-tap.patch
|
||||
BuildArch: noarch
|
||||
ExclusiveArch: %{nodejs_arches} noarch
|
||||
|
||||
BuildRequires: nodejs-packaging
|
||||
|
||||
%if 0%{?enable_tests}
|
||||
BuildRequires: npm(tap)
|
||||
BuildRequires: npm(inflight)
|
||||
BuildRequires: npm(path-is-absolute)
|
||||
BuildRequires: npm(rimraf)
|
||||
%endif
|
||||
|
||||
|
||||
%description
|
||||
This is a glob implementation in pure JavaScript. It uses the minimatch library
|
||||
to do its matching.
|
||||
|
||||
|
||||
%prep
|
||||
%autosetup -p 1 -n node-glob-%{version}
|
||||
%nodejs_fixdep once "^1.1.1"
|
||||
|
||||
|
||||
%build
|
||||
#nothing to do
|
||||
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{nodejs_sitelib}/glob
|
||||
cp -pr package.json glob.js sync.js common.js \
|
||||
%{buildroot}%{nodejs_sitelib}/glob
|
||||
%nodejs_symlink_deps
|
||||
|
||||
|
||||
%if 0%{?enable_tests}
|
||||
%check
|
||||
%nodejs_symlink_deps --check
|
||||
%tap test/*.js
|
||||
%endif
|
||||
|
||||
|
||||
%files
|
||||
%{!?_licensedir:%global license %doc}
|
||||
%doc README.md examples
|
||||
%license LICENSE
|
||||
%{nodejs_sitelib}/glob
|
||||
|
||||
|
||||
%changelog
|
||||
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 6.0.4-7
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||
|
||||
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 6.0.4-6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 6.0.4-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||
|
||||
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 6.0.4-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||
|
||||
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 6.0.4-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||
|
||||
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 6.0.4-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||
|
||||
* Sat Jan 9 2016 Tom Hughes <tom@compton.nu> - 6.0.4-1
|
||||
- Update to 6.0.4 upstream release
|
||||
- Enable tests
|
||||
|
||||
* Fri Jan 1 2016 Tom Hughes <tom@compton.nu> - 6.0.3-1
|
||||
- Update to 6.0.3 upstream release
|
||||
|
||||
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.6-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
||||
|
||||
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.6-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
||||
|
||||
* Tue Jul 30 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 3.2.6-1
|
||||
- new upstream release 3.2.6
|
||||
|
||||
* Fri Jul 12 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 3.2.3-1
|
||||
- new upstream release 3.2.3
|
||||
|
||||
* Sat Jun 22 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 3.2.1-1
|
||||
- new upstream release 3.2.1
|
||||
|
||||
* Sat Jun 22 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 3.1.21-3
|
||||
- restrict to compatible arches
|
||||
|
||||
* Mon Apr 15 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 3.1.21-2
|
||||
- add macro for EPEL6 dependency generation
|
||||
|
||||
* Wed Mar 13 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 3.1.21-1
|
||||
- new upstream release 3.1.21
|
||||
|
||||
* Sat Feb 09 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 3.1.20-1
|
||||
- new upstream release 3.1.20
|
||||
|
||||
* Tue Jan 08 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 3.1.14-2
|
||||
- add missing build section
|
||||
- adjust summary/description slightly
|
||||
|
||||
* Mon Dec 31 2012 T.C. Hollingsworth <tchollingsworth@gmail.com> - 3.1.14-1
|
||||
- new upstream release 3.1.14
|
||||
- clean up for submission
|
||||
|
||||
* Thu Mar 22 2012 T.C. Hollingsworth <tchollingsworth@gmail.com> - 3.1.9-1
|
||||
- new upstream release 3.1.9
|
||||
|
||||
* Fri Mar 16 2012 T.C. Hollingsworth <tchollingsworth@gmail.com> - 3.1.6-1
|
||||
- initial package
|
||||
4
nodejs-glob.yaml
Normal file
4
nodejs-glob.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: github
|
||||
src_repo: isaacs/node-glob
|
||||
tag_prefix: "^"
|
||||
seperator: "."
|
||||
Loading…
x
Reference in New Issue
Block a user