1 %define pkg graceful-fs
2 Summary: 'fs' module with incremental back-off on EMFILE
7 Group: Development/Libraries
8 URL: https://github.com/isaacs/node-graceful-fs
9 Source0: http://registry.npmjs.org/graceful-fs/-/%{pkg}-%{version}.tgz
10 # Source0-md5: 2108e283f1d0813302c8536418803ef6
11 BuildRequires: rpmbuild(macros) >= 1.634
14 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17 Just like node.js' fs module, but it does an incremental back-off when
18 EMFILE is encountered. Useful in asynchronous situations where one
19 needs to try to open lots and lots of files.
26 rm -rf $RPM_BUILD_ROOT
28 install -d $RPM_BUILD_ROOT%{nodejs_libdir}/%{pkg}
29 cp -p %{pkg}.js package.json $RPM_BUILD_ROOT%{nodejs_libdir}/%{pkg}
32 rm -rf $RPM_BUILD_ROOT
35 %defattr(644,root,root,755)
37 %{nodejs_libdir}/%{pkg}