ec29505
%{?nodejs_find_provides_and_requires}
ec29505
aed003d
%global enable_tests 1
ec29505
d6810ae
Name:           nodejs-tape
7e6c81f
Version:        4.9.0
8860358
Release:        5%{?dist}
d6810ae
Summary:        Tap-producing test harness for Node.js and browsers
d6810ae
d6810ae
License:        MIT
d6810ae
URL:            https://github.com/substack/tape
d6810ae
Source0:        http://registry.npmjs.org/tape/-/tape-%{version}.tgz
d6810ae
BuildArch:      noarch
d6810ae
ExclusiveArch:  %{nodejs_arches} noarch
ec29505
ec29505
BuildRequires:  nodejs-packaging
7e6c81f
BuildRequires:  npm(for-each)
ec29505
ec29505
%if 0%{?enable_tests}
dd4a26d
BuildRequires:  npm(concat-stream)
ec29505
BuildRequires:  npm(defined)
dd4a26d
BuildRequires:  npm(deep-equal) >= 0.2.1
aed003d
#BuildRequires:  npm(falafel)
f11f6d1
BuildRequires:  npm(function-bind)
f11f6d1
BuildRequires:  npm(has)
f11f6d1
BuildRequires:  npm(js-yaml)
ec29505
BuildRequires:  npm(jsonify)
aed003d
BuildRequires:  npm(minimist)
dd4a26d
BuildRequires:  npm(object-inspect)
3726658
BuildRequires:  npm(resolve)
dd4a26d
BuildRequires:  npm(resumer)
b7d74df
BuildRequires:  npm(string.prototype.trim)
ec29505
BuildRequires:  npm(tap)
f11f6d1
BuildRequires:  npm(tap-parser)
ec29505
BuildRequires:  npm(through)
ec29505
%endif
ec29505
ec29505
%description
ec29505
%{summary}.
ec29505
ec29505
ec29505
%prep
ec29505
%setup -q -n package
70f6671
%nodejs_fixdep glob "^6.0.4"
06d98fa
%nodejs_fixdep inherits "^2.0.1"
04cd696
%nodejs_fixdep object-inspect "^1.1.0"
7e6c81f
%nodejs_fixdep resolve "^1.7.1"
8860358
%nodejs_fixdep string.prototype.trim "^1.2.0"
ec29505
ec29505
ec29505
%build
ec29505
#nothing to do
ec29505
ec29505
ec29505
%install
ec29505
mkdir -p %{buildroot}%{nodejs_sitelib}/tape
ec29505
cp -pr package.json index.js lib/ \
ec29505
    %{buildroot}%{nodejs_sitelib}/tape
ec29505
ec29505
mkdir -p %{buildroot}%{nodejs_sitelib}/tape/bin
ec29505
install -p -D -m0755 bin/tape %{buildroot}%{nodejs_sitelib}/tape/bin/tape
ec29505
mkdir -p %{buildroot}%{_bindir}
ec29505
ln -sf %{nodejs_sitelib}/tape/bin/tape %{buildroot}%{_bindir}/tape
ec29505
ec29505
%nodejs_symlink_deps
ec29505
ec29505
ec29505
%check
ec29505
%nodejs_symlink_deps --check
aed003d
%__nodejs -e "require('./')"
aed003d
%if 0%{?enable_tests}
aed003d
# remove tests which need nodejs-falafel
aed003d
rm test/array.js test/exit.js test/fail.js test/nested.js test/too_many.js
aed003d
# remove tests which need newer tap
aed003d
rm test/require.js
ec29505
%tap test/*.js
ec29505
%endif
ec29505
ec29505
ec29505
%files
f11f6d1
%doc readme.markdown
f11f6d1
%license LICENSE
ec29505
%{nodejs_sitelib}/tape
ec29505
%{_bindir}/tape
ec29505
ec29505
ec29505
%changelog
8860358
* Fri Aug 16 2019 Tom Hughes <tom@compton.nu> - 4.9.0-5
8860358
- Update npm(string.prototype.trim) dependency
8860358
a699810
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.9.0-4
a699810
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
a699810
e3c025a
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.9.0-3
e3c025a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
e3c025a
c86b055
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.9.0-2
c86b055
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
c86b055
7e6c81f
* Thu May 31 2018 Jared K. Smith <jsmith@fedoraproject.org> - 4.9.0-1
7e6c81f
- Update to upstream 4.9.0 release
7e6c81f
b17c7ed
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.6.2-4
b17c7ed
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
b17c7ed
ef82d15
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.6.2-3
ef82d15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
ef82d15
517c20e
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.6.2-2
517c20e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
517c20e
2c66d5f
* Sun Oct  2 2016 Tom Hughes <tom@compton.nu> - 4.6.2-1
2c66d5f
- Update to 4.6.2 upstream release
2c66d5f
06d98fa
* Fri Sep 30 2016 Tom Hughes <tom@compton.nu> - 4.6.1-2
06d98fa
- Patch npm(inherits) dependency
06d98fa
2c56206
* Fri Sep 30 2016 Tom Hughes <tom@compton.nu> - 4.6.1-1
2c56206
- Update to 4.6.1 upstream release
2c56206
d6810ae
* Mon Jun 20 2016 Tom Hughes <tom@compton.nu> - 4.6.0-1
d6810ae
- Update to 4.6.0 upstream release
d6810ae
04cd696
* Sun Apr 10 2016 Tom Hughes <tom@compton.nu> - 4.5.1-2
04cd696
- Update npm(object-inspect) dependency
04cd696
70f6671
* Mon Mar  7 2016 Tom Hughes <tom@compton.nu> - 4.5.1-1
70f6671
- Update to 4.5.1 upstream release
70f6671
66171eb
* Fri Mar  4 2016 Tom Hughes <tom@compton.nu> - 4.5.0-3
66171eb
- Update npm(through) dependency
66171eb
e0646e2
* Thu Mar  3 2016 Tom Hughes <tom@compton.nu> - 4.5.0-2
e0646e2
- Update npm(resolve) dependency
e0646e2
aed003d
* Thu Mar  3 2016 Tom Hughes <tom@compton.nu> - 4.5.0-1
aed003d
- Update to 4.5.0 upstream release
aed003d
- Enable as many tests as possible.
aed003d
7d4878b
* Sun Feb 14 2016 Tom Hughes <tom@compton.nu> - 4.4.0-3
7d4878b
- Update npm(function-bind) dependency
7d4878b
997921c
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.0-2
997921c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
997921c
3726658
* Fri Jan  8 2016 Tom Hughes <tom@compton.nu> - 4.4.0-1
3726658
- Update to 4.4.0 upstream release
3726658
b7d74df
* Fri Jan  1 2016 Tom Hughes <tom@compton.nu> - 4.2.2-2
b7d74df
- Update npm(glob) dependency
b7d74df
85c317f
* Wed Oct 21 2015 Tom Hughes <tom@compton.nu> - 4.2.2-1
85c317f
- Update to 4.2.2 upstream release
85c317f
f11f6d1
* Sun Sep  6 2015 Tom Hughes <tom@compton.nu> - 4.2.0-1
f11f6d1
- update to upstream release 4.2.0
f11f6d1
- move LICENSE file to %%license
f11f6d1
b3c0070
* Fri Sep  4 2015 Tom Hughes <tom@compton.nu> - 3.0.1-4
b3c0070
- Fix deep-equal dependency
b3c0070
519081c
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.1-3
519081c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
519081c
b202551
* Sun Oct 26 2014 Jamie Nguyen <jamielinux@fedoraproject.org> - 3.0.1-2
b202551
- fix dependency versions
b202551
dd4a26d
* Sun Oct 26 2014 Tom Hughes <tom@compton.nu> - 3.0.1-1
dd4a26d
- update to upstream release 3.0.1
dd4a26d
649e52e
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.4-2
649e52e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
649e52e
de35555
* Mon Aug 05 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.0.4-1
de35555
- new upstream release 1.0.4
220d4a6
- conditionalize ExclusiveArch
de35555
ec29505
* Wed May 29 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 1.0.2-1
ec29505
- initial package