diff --git a/.gitignore b/.gitignore index e04c1c9..48f7820 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /timed-out-2.0.0.tgz +/v3.0.0.tar.gz diff --git a/nodejs-timed-out.spec b/nodejs-timed-out.spec index 3c9619d..2ea4286 100644 --- a/nodejs-timed-out.spec +++ b/nodejs-timed-out.spec @@ -1,16 +1,15 @@ +# network tests not working in koji %global enable_tests 0 %global module_name timed-out Name: nodejs-%{module_name} -Version: 2.0.0 -Release: 4%{?dist} +Version: 3.0.0 +Release: 1%{?dist} Summary: Timeout HTTP/HTTPS requests License: MIT URL: https://github.com/floatdrop/timed-out -Source0: http://registry.npmjs.org/%{module_name}/-/%{module_name}-%{version}.tgz -Source1: https://raw.githubusercontent.com/floatdrop/timed-out/master/license -Source2: https://raw.githubusercontent.com/floatdrop/timed-out/master/test.js +Source0: https://github.com/floatdrop/timed-out/archive/v%{version}.tar.gz BuildArch: noarch ExclusiveArch: %{nodejs_arches} noarch @@ -25,11 +24,9 @@ Timeout HTTP/HTTPS requests. Emit Error object with code property equal ETIMEDOUT or ESOCKETTIMEDOUT when ClientRequest is hanged. %prep -%setup -q -n package +%autosetup -n %{module_name}-%{version} rm -rf node_modules -cp -p %{SOURCE1} %{SOURCE2} . - %build # nothing to build @@ -41,6 +38,7 @@ cp -pr package.json *.js %{buildroot}%{nodejs_sitelib}/%{module_name} %if 0%{?enable_tests} %check %nodejs_symlink_deps --check +%{__nodejs} -e 'require("./")' mocha %endif @@ -49,6 +47,9 @@ mocha %{nodejs_sitelib}/%{module_name} %changelog +* Mon Sep 19 2016 Parag Nemade - 3.0.0-1 +- Update to 3.0.0 + * Thu Feb 04 2016 Fedora Release Engineering - 2.0.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild diff --git a/sources b/sources index 97006cc..6beb36a 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -5f9001050e05ea2e3ef0d0398231e6a0 timed-out-2.0.0.tgz +4a71be2a5cd4ec04ad2bf2d759e54ce9 v3.0.0.tar.gz