|
|
@ -12,12 +12,12 @@ Source0: https://registry.npmjs.com/%{packagename}/-/%{packagename}-%{version |
|
|
|
# The test files are not included in the npm tarball. |
|
|
|
# The test files are not included in the npm tarball. |
|
|
|
# Source1 is generated by running Source10, which pulls from the upstream |
|
|
|
# Source1 is generated by running Source10, which pulls from the upstream |
|
|
|
# version control repository. |
|
|
|
# version control repository. |
|
|
|
Source1: tests-%{version}.tar.bz2 |
|
|
|
#Source1: tests-%{version}.tar.bz2 |
|
|
|
Source10: dl-tests.sh |
|
|
|
Source10: dl-tests.sh |
|
|
|
|
|
|
|
|
|
|
|
# Patch to fix failing test. |
|
|
|
# Patch to fix failing test. |
|
|
|
# see also https://github.com/felixge/node-dateformat/issues/41 |
|
|
|
# see also https://github.com/felixge/node-dateformat/issues/41 |
|
|
|
Patch0: dateformat-fix-unit-test.patch |
|
|
|
#Patch0: dateformat-fix-unit-test.patch |
|
|
|
|
|
|
|
|
|
|
|
BuildArch: noarch |
|
|
|
BuildArch: noarch |
|
|
|
ExclusiveArch: %{nodejs_arches} noarch |
|
|
|
ExclusiveArch: %{nodejs_arches} noarch |
|
|
@ -37,9 +37,9 @@ according to a user-specified mask. |
|
|
|
%prep |
|
|
|
%prep |
|
|
|
%setup -q -n package |
|
|
|
%setup -q -n package |
|
|
|
# setup the tests |
|
|
|
# setup the tests |
|
|
|
%setup -q -T -D -a 1 -n package |
|
|
|
%setup -q -T -D -n package |
|
|
|
cd test |
|
|
|
#cd test |
|
|
|
%patch0 -p1 |
|
|
|
#%patch0 -p1 |
|
|
|
|
|
|
|
|
|
|
|
%build |
|
|
|
%build |
|
|
|
#nothing to do |
|
|
|
#nothing to do |
|
|
@ -53,12 +53,12 @@ cp -pr package.json lib/ \ |
|
|
|
#%nodejs_symlink_deps |
|
|
|
#%nodejs_symlink_deps |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%check |
|
|
|
#%check |
|
|
|
%nodejs_symlink_deps --check |
|
|
|
#%nodejs_symlink_deps --check |
|
|
|
%{__nodejs} -e 'require("./")' |
|
|
|
#%{__nodejs} -e 'require("./")' |
|
|
|
%if 0%{?enable_tests} |
|
|
|
#%if 0%{?enable_tests} |
|
|
|
TZ="UTC" %{_bindir}/mocha -R spec |
|
|
|
#TZ="UTC" %{_bindir}/mocha -R spec |
|
|
|
%endif |
|
|
|
#%endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files |
|
|
|
%files |
|
|
|