Blame nodejs-compression.spec

6c25075
%{?nodejs_find_provides_and_requires}
6c25075
f02d39d
%global enable_tests 1
6c25075
6c25075
Name:       nodejs-compression
f02d39d
Version:    1.6.2
f02d39d
Release:    1%{?dist}
6c25075
Summary:    Compression middleware for Node.js and Connect
6c25075
License:    MIT
6c25075
URL:        https://github.com/expressjs/compression
f02d39d
Source0:    https://github.com/expressjs/compression/archive/%{version}/%{name}-%{version}.tar.gz
f02d39d
f02d39d
BuildArch:      noarch
f02d39d
ExclusiveArch:  %{nodejs_arches} noarch
6c25075
6c25075
BuildRequires:  nodejs-packaging
6c25075
f02d39d
BuildRequires:  npm(accepts)
6c25075
BuildRequires:  npm(bytes)
6c25075
BuildRequires:  npm(compressible)
f02d39d
BuildRequires:  npm(debug)
f02d39d
BuildRequires:  npm(on-headers)
f02d39d
BuildRequires:  npm(vary)
f02d39d
f02d39d
%if 0%{?enable_tests}
f02d39d
BuildRequires:  mocha
6c25075
BuildRequires:  npm(supertest)
6c25075
%endif
6c25075
f02d39d
6c25075
%description
6c25075
%{summary}.
6c25075
6c25075
6c25075
%prep
f02d39d
%autosetup -n compression-%{version}
6c25075
f02d39d
%nodejs_fixdep bytes '2.x'
6c25075
6c25075
6c25075
%build
6c25075
#nothing to do
6c25075
6c25075
6c25075
%install
6c25075
mkdir -p %{buildroot}%{nodejs_sitelib}/compression
6c25075
cp -pr package.json index.js \
6c25075
    %{buildroot}%{nodejs_sitelib}/compression
6c25075
6c25075
%nodejs_symlink_deps
6c25075
6c25075
6c25075
%check
6c25075
%nodejs_symlink_deps --check
f02d39d
%{__nodejs} -e 'require("./")'
f02d39d
f02d39d
%if 0%{?enable_tests}
f02d39d
mocha --check-leaks --reporter spec
6c25075
%endif
6c25075
6c25075
6c25075
%files
6c25075
%doc HISTORY.md README.md
f02d39d
%license LICENSE
6c25075
%{nodejs_sitelib}/compression
6c25075
6c25075
6c25075
%changelog
f02d39d
* Thu Mar 30 2017 Piotr Popieluch <piotr1212@gmail.com> - 1.6.2-1
f02d39d
- Update to 1.6.2
f02d39d
5f8a5eb
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-6
5f8a5eb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
5f8a5eb
2b0739d
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-5
2b0739d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
2b0739d
a5ca741
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-4
a5ca741
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
a5ca741
bdbb44b
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-3
bdbb44b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
bdbb44b
e438905
* Sun Apr 20 2014 Jamie Nguyen <jamielinux@fedoraproject.org> - 1.0.1-2
e438905
- fix version of npm(bytes) dependency
e438905
6c25075
* Wed Mar 12 2014 Jamie Nguyen <jamielinux@fedoraproject.org> - 1.0.1-1
6c25075
- update to upstream release 1.0.1
6c25075
6c25075
* Sat Mar 08 2014 Jamie Nguyen <jamielinux@fedoraproject.org> - 1.0.0-1
6c25075
- initial package