diff --git a/.gitignore b/.gitignore index 98c9abd..dc52603 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ /async-0.2.9.tgz /tests-v0.2.5.tar.bz2 /async-0.2.10.tgz +/async-1.5.0.tar.gz diff --git a/dl-tests.sh b/dl-tests.sh deleted file mode 100755 index 0720366..0000000 --- a/dl-tests.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash - -tag=v0.2.5 - -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/caolan/async.git -cd async -git archive --prefix="test/" --format=tar tags/${tag}:test/ \ - | bzip2 > "$pwd"/tests-${tag}.tar.bz2 -popd diff --git a/nodejs-async.spec b/nodejs-async.spec index f0af16d..43972c4 100644 --- a/nodejs-async.spec +++ b/nodejs-async.spec @@ -1,28 +1,31 @@ %{?nodejs_find_provides_and_requires} +# native-promise-only and rsvp not packaged yet %global enable_tests 0 Name: nodejs-async -Version: 0.2.10 -Release: 3%{?dist} +Version: 1.5.0 +Release: 1%{?dist} Summary: Higher-order functions and common patterns for asynchronous code BuildArch: noarch ExclusiveArch: %{nodejs_arches} noarch Group: System Environment/Libraries License: MIT -URL: http://github.com/caolan/async/ -Source0: http://registry.npmjs.org/async/-/async-%{version}.tgz -# Source1 is generated by running Source10, which pulls from the upstream -# revision control repository. -Source1: tests-v0.2.5.tar.bz2 -Source10: dl-tests.sh +URL: https://github.com/caolan/async/ +Source0: https://github.com/caolan/async/archive/v%{version}/async-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: nodejs-devel %if 0%{?enable_tests} +BuildRequires: npm(mocha) BuildRequires: npm(nodeunit) +BuildRequires: npm(bluebird) +BuildRequires: npm(chai) +BuildRequires: npm(es6-promise) +BuildRequires: npm(native-promise-only) +BuildRequires: npm(rsvp) %endif %description @@ -37,8 +40,7 @@ functions assume you follow the Node.js convention of providing a single callback as the last argument of your async function. %prep -%setup -q -n package -%setup -q -T -D -a 1 -n package +%setup -q -n async-%{version} %build #nothing to do @@ -50,6 +52,8 @@ cp -pr package.json lib %{buildroot}%{nodejs_sitelib}/async %if 0%{?enable_tests} %check +%nodejs_symlink_deps --check +%{nodejs_sitelib}/mocha/bin/mocha mocha_test %{nodejs_sitelib}/nodeunit/bin/nodeunit test/test-async.js %endif @@ -58,10 +62,14 @@ rm -rf %buildroot %files %defattr(-,root,root,-) +%doc README.md CHANGELOG.md +%license LICENSE %{nodejs_sitelib}/async -%doc README.md LICENSE %changelog +* Sat Nov 21 2015 Tom Hughes - 1.5.0-1 +- update to 1.5.0 upstream release + * Wed Jun 17 2015 Fedora Release Engineering - 0.2.10-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild diff --git a/sources b/sources index eb15c38..8dfaf12 100644 --- a/sources +++ b/sources @@ -1,2 +1 @@ -fd313a0e8cc2343569719e80cd7a67ac async-0.2.10.tgz -a889209204ffb70d21aef8bf40490144 tests-v0.2.5.tar.bz2 +eddd9677e25272614e138f831ff3f911 async-1.5.0.tar.gz