%{?nodejs_find_provides_and_requires} %global enable_tests 1 Name: nodejs-graceful-fs Version: 4.1.2 Release: 2%{?dist} Summary: 'fs' module with incremental back-off on EMFILE License: BSD Group: Development/Libraries URL: https://github.com/isaacs/node-graceful-fs Source0: http://registry.npmjs.org/graceful-fs/-/graceful-fs-%{version}.tgz # The test files are not included in the npm tarball. # Source1 is generated by running Source10, which pulls from the upstream # version control repository. Source1: tests-%{version}.tar.bz2 Source10: dl-tests.sh BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch ExclusiveArch: %{nodejs_arches} noarch BuildRequires: nodejs-packaging %if 0%{?enable_tests} BuildRequires: npm(tap) BuildRequires: npm(test) BuildRequires: npm(rimraf) BuildRequires: npm(mkdirp) %endif %description Just like node.js' fs module, but it does an incremental back-off when EMFILE is encountered. Useful in asynchronous situations where one needs to try to open lots and lots of files. %prep %setup -q -n package # setup the tests %setup -q -T -D -a 1 -n package %build #nothing to do %install rm -rf %{buildroot} mkdir -p %{buildroot}%{nodejs_sitelib}/graceful-fs cp -p *.json *.js \ %{buildroot}%{nodejs_sitelib}/graceful-fs %nodejs_symlink_deps %clean rm -rf %{buildroot} %if 0%{?enable_tests} %check %nodejs_symlink_deps --check %__tap test/*.js %endif %files %defattr(-,root,root,-) %{nodejs_sitelib}/graceful-fs %doc README.md LICENSE %changelog * Thu Oct 22 2015 Jared Smith - 4.1.2-2 - Fix missing 'fs.js' file * Tue Oct 20 2015 Jared Smith - 4.1.2-1 - Update to upstream 4.1.2 release * Wed Jun 17 2015 Fedora Release Engineering - 2.0.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 2.0.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sat Aug 03 2013 Fedora Release Engineering - 2.0.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Fri Jul 12 2013 Jamie Nguyen - 2.0.0-2 - include missing polyfills.js file * Fri Jul 12 2013 T.C. Hollingsworth - 2.0.0-1 - new upstream release 2.0.0 - license file now updated upstream * Sat Jun 22 2013 T.C. Hollingsworth - 1.2.2-1 - new upstream release 1.2.2 * Sat Jun 22 2013 T.C. Hollingsworth - 1.2.1-3 - restrict to compatible arches * Mon May 27 2013 Jamie Nguyen - 1.2.1-2 - the LICENSE file previously contained the wrong license (MIT), but now upstream have fixed it to contain the correct license (BSD) (#967442) * Sat May 25 2013 Jamie Nguyen - 1.2.1-1 - update to upstream release 1.2.1 * Mon Apr 15 2013 T.C. Hollingsworth - 1.2.0-2 - add macro for EPEL6 dependency generation * Sat Feb 09 2013 T.C. Hollingsworth - 1.2.0-1 - new upstream release 1.2.0 * Tue Jan 08 2013 T.C. Hollingsworth - 1.1.14-2 - add missing build section * Mon Dec 31 2012 T.C. Hollingsworth - 1.1.14-1 - new upstream release 1.1.14 - clean up for submission * Fri Apr 27 2012 T.C. Hollingsworth - 1.1.8-2 - guard Requires for F17 automatic depedency generation * Thu Mar 22 2012 T.C. Hollingsworth - 1.1.8-1 - new upstream release 1.1.8 * Sun Jan 29 2012 T.C. Hollingsworth - 1.1.5-1 - new upstream release 1.1.5 * Sat Jan 21 2012 T.C. Hollingsworth - 1.1.4-2 - missing Group field for EL5 * Sat Jan 21 2012 T.C. Hollingsworth - 1.1.4-1 - new upstream release 1.1.4 * Thu Nov 10 2011 T.C. Hollingsworth - 1.0.2-0.1.20111109git33dee97 - new upstream release - Node v0.6.0 compatibility fixes * Tue Oct 25 2011 T.C. Hollingsworth - 1.0.1-1 - new upstream release * Mon Aug 22 2011 T.C. Hollingsworth - 1.0.0-1 - initial package