diff --git a/.gitignore b/.gitignore index 047ac44..8921222 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /nodejs-tar-stream-tests-v1.1.1.tar.bz2 /tar-stream-1.1.1.tgz +/tar-stream-1.1.2.tar.gz diff --git a/nodejs-tar-stream-dl-tests.sh b/nodejs-tar-stream-dl-tests.sh deleted file mode 100744 index bf1842b..0000000 --- a/nodejs-tar-stream-dl-tests.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash - -tag=v1.1.1 - -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 https://github.com/mafintosh/tar-stream.git -cd tar-stream -git archive --format=tar tags/${tag} test/ \ - | bzip2 > "$pwd"/nodejs-tar-stream-tests-${tag}.tar.bz2 -popd diff --git a/nodejs-tar-stream.spec b/nodejs-tar-stream.spec index dcf28c6..bb233f5 100644 --- a/nodejs-tar-stream.spec +++ b/nodejs-tar-stream.spec @@ -2,17 +2,12 @@ %global srcname tar-stream Name: nodejs-%{srcname} -Version: 1.1.1 +Version: 1.1.2 Release: 1%{?dist} Summary: A streaming tar parser and generator License: MIT URL: https://github.com/mafintosh/tar-stream -Source0: https://registry.npmjs.org/%{srcname}/-/%{srcname}-%{version}.tgz -# The test files are missing from the NPM tarball. -# Source1 is generated by running Source10, which pulls from the upstream -# version control repository. -Source1: %{name}-tests-v%{version}.tar.bz2 -Source10: %{name}-dl-tests.sh +Source0: https://github.com/mafintosh/%{srcname}/archive/v%{version}/%{srcname}-%{version}.tar.gz BuildArch: noarch ExclusiveArch: %{nodejs_arches} noarch @@ -35,8 +30,7 @@ extract/parse tarballs without ever hitting the file system. %prep -%setup -q -n package -%setup -q -T -D -a 1 -n package +%setup -q -n %{srcname}-%{version} rm -rf node_modules/ @@ -58,10 +52,14 @@ tape test/*.js %files -%doc README.md LICENSE +%doc README.md +%license LICENSE %{nodejs_sitelib}/%{srcname} %changelog +* Sun Feb 8 2015 Piotr Popieluch - 1.1.2-1 +- update to 1.1.2 + * Mon Dec 22 2014 Piotr Popieluch - 1.1.1-1 - Initial package diff --git a/sources b/sources index 9563185..3c37d31 100644 --- a/sources +++ b/sources @@ -1,2 +1 @@ -84aad6f46fc115bc2b3bb82f1ec8402a nodejs-tar-stream-tests-v1.1.1.tar.bz2 -4f50a8ebadd7b67a47a1966996a1de43 tar-stream-1.1.1.tgz +d10c8f81dd0ad8dfb6da718f0dbfe9e9 tar-stream-1.1.2.tar.gz