From 63d2fb96943cea078a2b563e14c3432017827597 Mon Sep 17 00:00:00 2001 From: Jan Staněk Date: Aug 17 2020 14:25:01 +0000 Subject: Cache development dependencies to resolve FTBFS --- diff --git a/.gitignore b/.gitignore index 0df70f0..0f6a94e 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /char-spinner-1.0.1.tgz +/char-spinner-1.0.1-node_modules.tar.gz diff --git a/nodejs-char-spinner.spec b/nodejs-char-spinner.spec index f30ce09..d4501c1 100644 --- a/nodejs-char-spinner.spec +++ b/nodejs-char-spinner.spec @@ -2,28 +2,26 @@ %{!?scl:%global pkg_name %{name}} %{?nodejs_find_provides_and_requires} -%global enable_tests 1 - Name: %{?scl_prefix}nodejs-char-spinner Version: 1.0.1 -Release: 14%{?dist} +Release: 15%{?dist} Summary: Node.js char spinner License: ISC Url: https://github.com/isaacs/char-spinner -Source: http://registry.npmjs.org/char-spinner/-/char-spinner-%{version}.tgz -BuildRequires: nodejs-packaging +Source0: http://registry.npmjs.org/char-spinner/-/char-spinner-%{version}.tgz +# Cached development dependencies +# $ npm install --save-dev && tar -czf ../char-spinner-%%{version}-node_modules.tar.gz node_modules +Source1: char-spinner-%{version}-node_modules.tar.gz +BuildRequires: nodejs-packaging nodejs(engine) BuildArch: noarch ExclusiveArch: %{nodejs_arches} noarch -%if 0%{?enable_tests} -BuildRequires: npm(tap) -%endif - %description -Put a little spinner on process.stderr, as unobtrusively as possible. +Put a little spinner on process.stderr, as unobtrusively as possible. %prep -%setup -q -n package +%autosetup -n package +tar -xzf "%{SOURCE1}" %build @@ -34,11 +32,9 @@ cp -pr package.json spin.js \ %{nodejs_symlink_deps} -%if 0%{?enable_tests} %check %{nodejs_symlink_deps} --check -tap test/*.js -%endif +%{__nodejs} ./node_modules/tap/bin/tap.js test/*.js %files %doc README.md @@ -46,6 +42,9 @@ tap test/*.js %license LICENSE %changelog +* Mon Aug 17 2020 Jan Staněk - 1.0.1-15 +- Cache development dependencies to resolve FTBFS + * Sat Aug 01 2020 Fedora Release Engineering - 1.0.1-14 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild diff --git a/sources b/sources index c872d5d..80b67d7 100644 --- a/sources +++ b/sources @@ -1 +1,2 @@ -a61676ddeefc87f89f60f3160f4219bb char-spinner-1.0.1.tgz +SHA512 (char-spinner-1.0.1.tgz) = 69cbf8defa89d3e374ac3f94c37a431d2c4fdf4147af2c2ed8d3baff005a1c2849222ce90de05477a363aa1361cbd2c66840216405e7e3a4339a502f216775ea +SHA512 (char-spinner-1.0.1-node_modules.tar.gz) = d287cc9a2581c248b41c9f172a4c181d210976c59ec45b2060e507c1f33c89c7e9fa7c93746dee4d1153465b14897c10efc4c02bb168ed4845d1583dc997c439