Modify Source
This commit is contained in:
parent
c495b25111
commit
13587f0434
BIN
1.2.0.tar.gz
Normal file
BIN
1.2.0.tar.gz
Normal file
Binary file not shown.
Binary file not shown.
23
dl-tests.sh
23
dl-tests.sh
@ -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
|
||||
@ -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
|
||||
|
||||
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user