diff --git a/nodejs-which.spec b/nodejs-which.spec index cd12e67..56b6b02 100644 --- a/nodejs-which.spec +++ b/nodejs-which.spec @@ -8,16 +8,9 @@ Release: 1 Summary: A JavaScript implementation of the 'which' command License: MIT URL: https://github.com/isaacs/node-which -Source0: https://registry.npmjs.org/which/-/which-%{version}.tgz -#git clone git://github.com/npm/node-which.git -#cd node-which -#git archive --prefix="test/" --format=tar tags/${tag}:test/ -# | bzip2 > "$pwd"/tests-${tag}.tar.bz2 -Source1: tests-%{version}.tar.bz2 - +Source0: https://github.com/isaacs/node-which/archive/v%{version}.tar.gz BuildArch: noarch ExclusiveArch: %{nodejs_arches} noarch - BuildRequires: nodejs-packaging npm(isexe) %if 0%{?enable_tests} @@ -29,9 +22,7 @@ BuildRequires: npm(tap) npm(mkdirp) npm(rimraf) %prep -%setup -q -n package -# setup the tests -%setup -q -T -D -a 1 -n package +%autosetup -n node-which-%{version} %build diff --git a/tests-1.3.0.tar.bz2 b/tests-1.3.0.tar.bz2 deleted file mode 100644 index 12be00b..0000000 Binary files a/tests-1.3.0.tar.bz2 and /dev/null differ diff --git a/v1.3.0.tar.gz b/v1.3.0.tar.gz new file mode 100644 index 0000000..fe20559 Binary files /dev/null and b/v1.3.0.tar.gz differ diff --git a/which-1.3.0.tgz b/which-1.3.0.tgz deleted file mode 100644 index 2b704d2..0000000 Binary files a/which-1.3.0.tgz and /dev/null differ