| |
@@ -4,28 +4,26 @@
|
| |
|
| |
%{?nodejs_find_provides_and_requires}
|
| |
|
| |
- %global enable_tests 1
|
| |
+ # Disable tests due to missing npm(ava)
|
| |
+ %bcond_with tests
|
| |
|
| |
Name: nodejs-ansi-regex
|
| |
- Version: 2.0.0
|
| |
- Release: 12%{?dist}
|
| |
+ Version: 2.1.1
|
| |
+ Release: 1%{?dist}
|
| |
Summary: Regular expression for matching ANSI escape codes
|
| |
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
|
| |
+ Source1: https://raw.githubusercontent.com/chalk/ansi-regex/%{version}/test.js
|
| |
|
| |
License: MIT
|
| |
BuildArch: noarch
|
| |
ExclusiveArch: %{nodejs_arches} noarch
|
| |
|
| |
- BuildRequires: nodejs-packaging
|
| |
+ BuildRequires: nodejs
|
| |
|
| |
- %if 0%{?enable_tests}
|
| |
- BuildRequires: npm(mocha)
|
| |
+ %if %{with tests}
|
| |
+ BuildRequires: npm(ava)
|
| |
%endif
|
| |
|
| |
%description
|
| |
@@ -33,7 +31,7 @@
|
| |
|
| |
%prep
|
| |
%setup -q -n package
|
| |
- %setup -q -T -D -a 1 -n package
|
| |
+ cp -p %{SOURCE1} "${PWD}"
|
| |
|
| |
%build
|
| |
#nothing to do
|
| |
@@ -46,11 +44,11 @@
|
| |
|
| |
%{nodejs_symlink_deps}
|
| |
|
| |
- %if 0%{?enable_tests}
|
| |
%check
|
| |
%{nodejs_symlink_deps} --check
|
| |
%{__nodejs} -e 'require("./")'
|
| |
- %{_bindir}/mocha -R spec test/test.js
|
| |
+ %if %{with tests}
|
| |
+ %{_bindir}/ava --verbose
|
| |
%endif
|
| |
|
| |
%files
|
| |
@@ -60,6 +58,9 @@
|
| |
%license license
|
| |
|
| |
%changelog
|
| |
+ * Thu Aug 06 2020 Jan Staněk <jstanek@redhat.com> - 2.1.1-1
|
| |
+ - Upgrade to 2.1.1 to trim down dependencies
|
| |
+
|
| |
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-12
|
| |
- Second attempt - Rebuilt for
|
| |
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
| |
The way tests inclusion works was changed:
dl-tests.sh
script does not handle this case and I did not yet look up where to contribute to it. Since single raw file can be downloaded directly from GitHub, I switched to that for the time being (and to get things moving).ava
framework does not seem to be readily available in Fedora.This change should resolve the F33 FTBFS issue.