%{?nodejs_find_provides_and_requires}
%global enable_tests 0
Name: nodejs-serve-static
Version: 1.1.0
Release: 3%{?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-v%{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 parseurl '~1.0'
%nodejs_fixdep send '~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
%doc History.md LICENSE Readme.md
%{nodejs_sitelib}/serve-static
%changelog
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Fri Apr 25 2014 Jamie Nguyen <jamielinux@fedoraproject.org> - 1.1.0-1
- update to upstream release 1.1.0
* Sun Apr 20 2014 Jamie Nguyen <jamielinux@fedoraproject.org> - 1.0.4-1
- update to upstream release 1.0.4
* Mon Mar 10 2014 Jamie Nguyen <jamielinux@fedoraproject.org> - 1.0.2-1
- initial package