diff --git a/1.2.0.tar.gz b/1.2.0.tar.gz new file mode 100644 index 0000000..86a4f7f Binary files /dev/null and b/1.2.0.tar.gz differ diff --git a/character-parser-1.2.0.tgz b/character-parser-1.2.0.tgz deleted file mode 100644 index 247a53a..0000000 Binary files a/character-parser-1.2.0.tgz and /dev/null differ diff --git a/dl-tests.sh b/dl-tests.sh deleted file mode 100644 index a8d96bd..0000000 --- a/dl-tests.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash - -tag=1.2.0 - -set -e - -tmp=$(mktemp -d) - -trap cleanup EXIT -cleanup() { - set +e - [ -z "$tmp" -o ! -d "$tmp" ] || rm -rf "$tmp" -} - -unset CDPATH -pwd=$(pwd) - -pushd "$tmp" -git clone git://github.com/ForbesLindesay/character-parser.git -cd character-parser -git archive --prefix="test/" --format=tar tags/${tag}:test/ \ - | bzip2 > "$pwd"/tests-${tag}.tar.bz2 -popd diff --git a/nodejs-character-parser.spec b/nodejs-character-parser.spec index bbe39df..63db797 100644 --- a/nodejs-character-parser.spec +++ b/nodejs-character-parser.spec @@ -6,12 +6,7 @@ Release: 1 Summary: Parse JavaScript one character at a time to look for snippets in templates License: MIT URL: https://github.com/ForbesLindesay/character-parser -Source0: http://registry.npmjs.org/character-parser/-/character-parser-%{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/ForbesLindesay/character-parser/archive/%{version}.tar.gz BuildArch: noarch ExclusiveArch: %{nodejs_arches} noarch BuildRequires: nodejs-packaging @@ -26,8 +21,7 @@ This is not a validator, it's just designed to allow you to have sections of JavaScript delimited by brackets robustly. %prep -%setup -q -n package -%setup -q -T -D -a 1 -n package +%autosetup -n character-parser-%{version} for i in LICENSE README.md; do sed -i -e 's/\r$//' "${i}" done diff --git a/tests-1.2.0.tar.bz2 b/tests-1.2.0.tar.bz2 deleted file mode 100644 index 399dad6..0000000 Binary files a/tests-1.2.0.tar.bz2 and /dev/null differ