diff --git a/2.4.0.tar.gz b/2.4.0.tar.gz new file mode 100644 index 0000000..0957f12 Binary files /dev/null and b/2.4.0.tar.gz differ diff --git a/bytes-2.4.0.tgz b/bytes-2.4.0.tgz deleted file mode 100644 index b27d746..0000000 Binary files a/bytes-2.4.0.tgz and /dev/null differ diff --git a/nodejs-bytes.spec b/nodejs-bytes.spec index 64a2a48..df79faa 100644 --- a/nodejs-bytes.spec +++ b/nodejs-bytes.spec @@ -6,12 +6,7 @@ Release: 1 Summary: Utility to parse a string bytes to bytes and vice-versa License: MIT URL: https://github.com/visionmedia/bytes.js -Source0: http://registry.npmjs.org/bytes/-/bytes-%{version}.tgz -# The test files are not included in the npm tarball. -# Source1 is generated by running Source10, which pulls from the upstream -# version control repository. -Source1: tests-%{version}.tar.bz2 -Source10: dl-tests.sh +Source0: https://github.com/visionmedia/bytes.js/archive/%{version}.tar.gz BuildArch: noarch ExclusiveArch: %{nodejs_arches} noarch BuildRequires: nodejs-packaging @@ -22,8 +17,7 @@ BuildRequires: npm(mocha) %summary %prep -%setup -q -n package -%setup -T -D -a 1 -q -n package +%autosetup -n bytes.js-%{version} %build diff --git a/tests-2.4.0.tar.bz2 b/tests-2.4.0.tar.bz2 deleted file mode 100644 index 00d948a..0000000 Binary files a/tests-2.4.0.tar.bz2 and /dev/null differ