%{?nodejs_find_provides_and_requires} %global enable_tests 0 # tests disabled to bootstrap new supertest Name: nodejs-serve-static Version: 1.10.0 Release: 2%{?dist} Summary: Middleware for serving static files for Node.js and Connect License: MIT Group: System Environment/Libraries URL: https://github.com/expressjs/serve-static Source0: http://registry.npmjs.org/serve-static/-/serve-static-%{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 BuildArch: noarch %if 0%{?fedora} >= 19 ExclusiveArch: %{nodejs_arches} noarch %else ExclusiveArch: %{ix86} x86_64 %{arm} noarch %endif BuildRequires: nodejs-packaging %if 0%{?enable_tests} BuildRequires: npm(connect) BuildRequires: npm(mocha) BuildRequires: npm(parseurl) BuildRequires: npm(send) BuildRequires: npm(should) BuildRequires: npm(supertest) %endif %description %{summary}. %prep %setup -q -n package %setup -q -T -D -a 1 -n package %nodejs_fixdep escape-html '^1.0.3' %build #nothing to do %install mkdir -p %{buildroot}%{nodejs_sitelib}/serve-static cp -pr package.json index.js \ %{buildroot}%{nodejs_sitelib}/serve-static %nodejs_symlink_deps %if 0%{?enable_tests} %check %nodejs_symlink_deps --check /usr/bin/mocha --require should --reporter spec %endif %files %{!?_licensedir:%global license %doc} %doc HISTORY.md README.md %license LICENSE %{nodejs_sitelib}/serve-static %changelog * Fri Nov 06 2015 Jared Smith - 1.10.0-2 - Fix build dependency on npm(escape-html) * Thu Nov 05 2015 Jared Smith - 1.10.0-1 - Update to upstream 1.10.0 release * Wed Jun 17 2015 Fedora Release Engineering - 1.1.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 1.1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Fri Apr 25 2014 Jamie Nguyen - 1.1.0-1 - update to upstream release 1.1.0 * Sun Apr 20 2014 Jamie Nguyen - 1.0.4-1 - update to upstream release 1.0.4 * Mon Mar 10 2014 Jamie Nguyen - 1.0.2-1 - initial package