1 Summary: A little globber
6 Group: Development/Libraries
7 Source0: http://registry.npmjs.org/glob/-/glob-%{version}.tgz
8 # Source0-md5: bca4be8504515a5d01d0205a20f9f8d6
9 URL: https://github.com/isaacs/node-glob
10 BuildRequires: rpmbuild(macros) >= 1.634
12 Requires: nodejs-inherits < 3
13 Requires: nodejs-inherits >= 2
14 Requires: nodejs-minimatch < 2
15 Requires: nodejs-minimatch >= 1.0.0
16 Requires: nodejs-once < 2
17 Requires: nodejs-once >= 1.3.0
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 This is a glob implementation in JavaScript. It uses the minimatch
23 library to do its matching.
30 rm -rf $RPM_BUILD_ROOT
31 install -d $RPM_BUILD_ROOT%{nodejs_libdir}/glob
32 cp -pr glob.js package.json $RPM_BUILD_ROOT%{nodejs_libdir}/glob
34 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
35 cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
38 rm -rf $RPM_BUILD_ROOT
41 %defattr(644,root,root,755)
44 %{_examplesdir}/%{name}-%{version}