From f02d39d8052736084ca81d9b1801c19f98acb0e2 Mon Sep 17 00:00:00 2001 From: Piotr Popieluch Date: Mar 30 2017 20:42:57 +0000 Subject: Update to 1.6.2 --- diff --git a/.gitignore b/.gitignore index 4243830..7ee20cd 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /compression-1.0.1.tgz +/compression-1.6.2.tgz diff --git a/nodejs-compression.spec b/nodejs-compression.spec index 6052797..bee2449 100644 --- a/nodejs-compression.spec +++ b/nodejs-compression.spec @@ -1,48 +1,41 @@ %{?nodejs_find_provides_and_requires} -%global enable_tests 0 +%global enable_tests 1 Name: nodejs-compression -Version: 1.0.1 -Release: 6%{?dist} +Version: 1.6.2 +Release: 1%{?dist} Summary: Compression middleware for Node.js and Connect License: MIT -Group: System Environment/Libraries URL: https://github.com/expressjs/compression -Source0: http://registry.npmjs.org/compression/-/compression-%{version}.tgz -# The test file is missing from the NPM tarball. -Source1: https://raw.github.com/expressjs/compression/ff7df439670a89129ce4d738ca5d0c72ce663b2a/test.js - -BuildArch: noarch -%if 0%{?fedora} >= 19 -ExclusiveArch: %{nodejs_arches} noarch -%else -ExclusiveArch: %{ix86} x86_64 %{arm} noarch -%endif +Source0: https://github.com/expressjs/compression/archive/%{version}/%{name}-%{version}.tar.gz + +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch BuildRequires: nodejs-packaging -%if 0%{?enable_tests} +BuildRequires: npm(accepts) BuildRequires: npm(bytes) BuildRequires: npm(compressible) -BuildRequires: npm(connect) -BuildRequires: npm(mocha) -BuildRequires: npm(negotiator) -BuildRequires: npm(should) +BuildRequires: npm(debug) +BuildRequires: npm(on-headers) +BuildRequires: npm(vary) + +%if 0%{?enable_tests} +BuildRequires: mocha BuildRequires: npm(supertest) %endif + %description %{summary}. %prep -%setup -q -n package -cp -p %{SOURCE1} . +%autosetup -n compression-%{version} -%nodejs_fixdep bytes '~0.3' -%nodejs_fixdep compressible '~1.0.0' -%nodejs_fixdep negotiator '~0.4.2' +%nodejs_fixdep bytes '2.x' %build @@ -57,19 +50,25 @@ cp -pr package.json index.js \ %nodejs_symlink_deps -%if 0%{?enable_tests} %check %nodejs_symlink_deps --check -/usr/bin/mocha --require should --reporter spec +%{__nodejs} -e 'require("./")' + +%if 0%{?enable_tests} +mocha --check-leaks --reporter spec %endif %files %doc HISTORY.md README.md +%license LICENSE %{nodejs_sitelib}/compression %changelog +* Thu Mar 30 2017 Piotr Popieluch - 1.6.2-1 +- Update to 1.6.2 + * Fri Feb 10 2017 Fedora Release Engineering - 1.0.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild diff --git a/sources b/sources index 19405b7..3ce065a 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -c5a05a4de0a6931cf88e12f9ac69261d compression-1.0.1.tgz +SHA512 (compression-1.6.2.tgz) = 52872787968d914564acbd2047dc359fd90937c7e158bfe167414a67b1402690682ee3d628c8b1297338437e375966613fad5758acaa4dd4a6a9a4a9eb8398af