diff --git a/nodejs-string-dot-prototype-dot-repeat.spec b/nodejs-string-dot-prototype-dot-repeat.spec index c0339d7..18c8bfb 100644 --- a/nodejs-string-dot-prototype-dot-repeat.spec +++ b/nodejs-string-dot-prototype-dot-repeat.spec @@ -7,11 +7,7 @@ Release: 1 Summary: A robust & optimized `String.prototype.repeat` polyfill License: MIT URL: https://github.com/mathiasbynens/String.prototype.repeat.git -Source0: https://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz -#git clone https://github.com/mathiasbynens/String.prototype.repeat.git -#cd String.prototype.repeat -#git archive --prefix='tests/' --format=tar v%{version}:tests/| bzip2 >tests-0.2.0.tar.bz2 -Source1: tests-%{version}.tar.bz2 +Source0: https://github.com/mathiasbynens/String.prototype.repeat/archive/v%{version}.tar.gz BuildArch: noarch ExclusiveArch: %{nodejs_arches} noarch BuildRequires: nodejs-packaging @@ -23,8 +19,7 @@ A robust & optimized `String.prototype.repeat` polyfill, based on the ECMAScript 6 specification. %prep -%setup -q -n package -%setup -q -T -D -a 1 -n package +%autosetup -n String.prototype.repeat-%{version} %build diff --git a/string.prototype.repeat-0.2.0.tgz b/string.prototype.repeat-0.2.0.tgz deleted file mode 100644 index 2649e4f..0000000 Binary files a/string.prototype.repeat-0.2.0.tgz and /dev/null differ diff --git a/tests-0.2.0.tar.bz2 b/tests-0.2.0.tar.bz2 deleted file mode 100644 index f71ac87..0000000 Binary files a/tests-0.2.0.tar.bz2 and /dev/null differ diff --git a/v0.2.0.tar.gz b/v0.2.0.tar.gz new file mode 100644 index 0000000..9f64f02 Binary files /dev/null and b/v0.2.0.tar.gz differ