diff --git a/nodejs-ansi-regex.spec b/nodejs-ansi-regex.spec index 1b5fe15..ce86c19 100644 --- a/nodejs-ansi-regex.spec +++ b/nodejs-ansi-regex.spec @@ -1,8 +1,5 @@ # spec file for package nodejs-nodejs-ansi-regex -%global commit 47fb974630af70998157b30fad6eb5e5bd7c7cd6 -%global shortcommit %(c=%{commit}; echo ${c:0:7}) - %global npm_name ansi-regex %{?nodejs_find_provides_and_requires} @@ -10,11 +7,17 @@ %global enable_tests 1 Name: nodejs-ansi-regex -Version: 1.1.1 -Release: 2%{?dist} +Version: 2.0.0 +Release: 1%{?dist} Summary: Regular expression for matching ANSI escape codes -Url: https://github.com/sindresorhus/ansi-regex -Source0: https://github.com/sindresorhus/ansi-regex/archive/%{commit}/ansi-regex-%{commit}.tar.gz +URL: https://github.com/sindresorhus/ansi-regex +Source0: https://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{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 + License: MIT BuildArch: noarch ExclusiveArch: %{nodejs_arches} noarch @@ -30,7 +33,8 @@ BuildRequires: npm(mocha) Regular expression for matching ANSI escape codes %prep -%setup -q -n %{npm_name}-%{commit} +%setup -q -n package +%setup -q -T -D -a 1 -n package %build #nothing to do @@ -46,8 +50,8 @@ cp -pr package.json index.js \ %if 0%{?enable_tests} %check %{nodejs_symlink_deps} --check -mocha test/test.js -#node test/viewCodes.js +%{__nodejs} -e 'require("./")' +%{_bindir}/mocha -R spec test/test.js %endif %files @@ -57,6 +61,9 @@ mocha test/test.js %license license %changelog +* Thu Oct 22 2015 Jared Smith - 2.0.0-1 +- Update to upstream 2.0.0 release + * Wed Jun 17 2015 Fedora Release Engineering - 1.1.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild