070ea7a
%global macrosdir %(d=%{_rpmconfigdir}/macros.d; [ -d $d ] || d=%{_sysconfdir}/rpm; echo $d)
T.C. Hollingsworth 519b4ed
%global enable_tests 1
T.C. Hollingsworth 519b4ed
T.C. Hollingsworth fd284ff
Name:           nodejs-tap
Jared K. Smith 0b6c7e2
Version:        0.7.1
757c9d0
Release:        8%{?dist}
T.C. Hollingsworth fd284ff
Summary:        A Test Anything Protocol library
T.C. Hollingsworth fd284ff
T.C. Hollingsworth fd284ff
License:        MIT
T.C. Hollingsworth fd284ff
URL:            https://github.com/isaacs/node-tap
469d24a
Source0:        https://registry.npmjs.org/tap/-/tap-%{version}.tgz
T.C. Hollingsworth fd284ff
Source1:        macros.nodejs-tap
T.C. Hollingsworth fd284ff
46e0014
BuildArch:  noarch
46e0014
ExclusiveArch: %{nodejs_arches} noarch
46e0014
46e0014
BuildRequires:  nodejs-packaging
T.C. Hollingsworth fd284ff
T.C. Hollingsworth 3c0e24d
%if 0%{?enable_tests}
T.C. Hollingsworth fd284ff
# we need to replicate the dependencies of this package for it to be able to
T.C. Hollingsworth fd284ff
# test itself
ece35a3
BuildRequires:  gcc
T.C. Hollingsworth fd284ff
BuildRequires:  npm(buffer-equal)
e7c9efd
BuildRequires:  npm(deep-equal)
e7c9efd
BuildRequires:  npm(difflet)
T.C. Hollingsworth fd284ff
BuildRequires:  npm(glob)
ff15a94
BuildRequires:  npm(inherits) = 1.0.0
e7c9efd
BuildRequires:  npm(mkdirp)
e7c9efd
BuildRequires:  npm(nopt)
e7c9efd
BuildRequires:  npm(runforcover)
e7c9efd
BuildRequires:  npm(slide)
e7c9efd
BuildRequires:  npm(yamlish)
T.C. Hollingsworth 3c0e24d
%endif
T.C. Hollingsworth fd284ff
T.C. Hollingsworth fd284ff
%description
T.C. Hollingsworth fd284ff
This is a mix-and-match set of utilities that you can use to write test
T.C. Hollingsworth fd284ff
harnesses and frameworks that communicate with one another using the
T.C. Hollingsworth fd284ff
Test Anything Protocol.
T.C. Hollingsworth fd284ff
T.C. Hollingsworth fd284ff
%prep
T.C. Hollingsworth fd284ff
%setup -q -n package
46e0014
#%%patch1 -p1
T.C. Hollingsworth fd284ff
dbd1de2
%nodejs_fixdep deep-equal '^1.0.1'
00fa63b
%nodejs_fixdep glob '^6.0.3'
T.C. Hollingsworth d61cb25
%nodejs_fixdep inherits 1
7f7a519
%nodejs_fixdep nopt '^3.0.6'
T.C. Hollingsworth c33dee0
T.C. Hollingsworth fd284ff
#remove bundled modules
T.C. Hollingsworth fd284ff
rm -rf node_modules
T.C. Hollingsworth fd284ff
T.C. Hollingsworth fd284ff
%build
T.C. Hollingsworth fd284ff
#nothing to do
T.C. Hollingsworth fd284ff
T.C. Hollingsworth fd284ff
%install
T.C. Hollingsworth fd284ff
mkdir -p %{buildroot}%{nodejs_sitelib}/tap
T.C. Hollingsworth fd284ff
cp -pr bin lib package.json %{buildroot}%{nodejs_sitelib}/tap
T.C. Hollingsworth fd284ff
T.C. Hollingsworth fd284ff
mkdir -p %{buildroot}%{_bindir}
T.C. Hollingsworth fd284ff
ln -sf ../lib/node_modules/tap/bin/tap.js %{buildroot}%{_bindir}/tap
T.C. Hollingsworth fd284ff
T.C. Hollingsworth fd284ff
#install some macros for use in RPM %%check sections
070ea7a
install -Dpm0644 %{SOURCE1} %{buildroot}%{macrosdir}/macros.tap
T.C. Hollingsworth fd284ff
T.C. Hollingsworth fd284ff
#make secondary scripts executable
T.C. Hollingsworth fd284ff
chmod 0755 %{buildroot}%{nodejs_sitelib}/tap/bin/*
T.C. Hollingsworth fd284ff
T.C. Hollingsworth fd284ff
%nodejs_symlink_deps
T.C. Hollingsworth fd284ff
T.C. Hollingsworth fd284ff
%check
e7c9efd
%nodejs_symlink_deps --check
Jeroen van Meeuwen (Kolab Systems) 0ef2f22
%if 0%{?enable_tests}
e7c9efd
%{__nodejs} -e 'require("./")'
e7c9efd
c5bb424
# Temporarily disable test/segv.js
e7c9efd
rm -f test/debug-test.js
c5bb424
T.C. Hollingsworth fd284ff
%__nodejs %{buildroot}%{nodejs_sitelib}/tap/bin/tap.js test/*.js
T.C. Hollingsworth 3c0e24d
%endif
T.C. Hollingsworth fd284ff
T.C. Hollingsworth fd284ff
%files
T.C. Hollingsworth fd284ff
%{nodejs_sitelib}/tap
T.C. Hollingsworth fd284ff
%{_bindir}/tap
070ea7a
%{macrosdir}/macros.tap
T.C. Hollingsworth fd284ff
%doc coverage-example example README.md AUTHORS LICENSE
T.C. Hollingsworth fd284ff
T.C. Hollingsworth fd284ff
%changelog
757c9d0
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1-8
757c9d0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
757c9d0
e82a10b
* Sat Feb 09 2019 Jared K. Smith <jsmith@fedoraproject.org> - 0.7.1-7
e82a10b
- Rebuild to fix some testing
e82a10b
764dce0
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1-6
764dce0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
764dce0
fe45084
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1-5
fe45084
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
fe45084
9d03aad
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1-4
9d03aad
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
9d03aad
c58ba5f
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1-3
c58ba5f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
c58ba5f
0771703
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1-2
0771703
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
0771703
Jared K. Smith 0b6c7e2
* Wed Jul 13 2016 Jared Smith <jsmith@fedoraproject.org> - 0.7.1-1
Jared K. Smith 0b6c7e2
- -Update to upstream 0.7.1 release
Jared K. Smith 0b6c7e2
469d24a
* Sun Feb 07 2016 Piotr Popieluch <piotr1212@gmail.com> - 0.4.4-10
469d24a
- cleanup spec
469d24a
56a346e
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.4-9
56a346e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
56a346e
7f7a519
* Sun Jan 17 2016 Tom Hughes <tom@compton.nu> - 0.4.4-8
7f7a519
- Update npm(nopt) dependency
7f7a519
00fa63b
* Fri Jan  1 2016 Tom Hughes <tom@compton.nu> - 0.4.4-7
00fa63b
- Update npm(glob) dependency
00fa63b
dbd1de2
* Fri Sep  4 2015 Tom Hughes <tom@compton.nu> - 0.4.4-6
dbd1de2
- Fix deep-equal dependency
dbd1de2
8172f90
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.4-5
8172f90
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
8172f90
070ea7a
* Wed Mar  4 2015 Ville Skyttä <ville.skytta@iki.fi> - 0.4.4-4
070ea7a
- Install macros in %%{_rpmconfigdir}/macros.d where available (#1074280)
070ea7a
c78bbbc
* Wed Oct 29 2014 Jamie Nguyen <jamielinux@fedoraproject.org> - 0.4.4-3
c78bbbc
- fix version of npm(deep-equal) dependency
c78bbbc
16a5a8b
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.4-2
16a5a8b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
16a5a8b
46e0014
* Tue Sep 03 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 0.4.4-1
46e0014
- update to upstream release 0.4.4
46e0014
T.C. Hollingsworth 79b595b
* Sat Aug 03 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.4.1-7
T.C. Hollingsworth 79b595b
- BuildRequire the correct version of inherits
T.C. Hollingsworth 79b595b
7c54c4c
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.1-7
7c54c4c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
7c54c4c
c5bb424
* Thu Jul 11 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 0.4.1-6
c5bb424
- temporarily disable test/segv.js, as in local mock the test receives SIGSEGV
c5bb424
  but in koji it receives SIGTERM instead
c5bb424
T.C. Hollingsworth 519b4ed
* Wed Jul 10 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.4.1-5
T.C. Hollingsworth 519b4ed
- enable tests
T.C. Hollingsworth d61cb25
- force the use inherits@1 since this module is incompatible with inherits@2
T.C. Hollingsworth 519b4ed
T.C. Hollingsworth c33dee0
* Mon Jun 24 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.4.1-4
T.C. Hollingsworth c33dee0
- fix glob dep
T.C. Hollingsworth c33dee0
86d57e1
* Sat Jun 22 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 0.4.1-3
86d57e1
- add macro for EPEL6 dependency generation
86d57e1
T.C. Hollingsworth 8c6da92
* Fri Jun 14 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.4.1-2.1
T.C. Hollingsworth 8c6da92
- rebuild for missing npm(tap) provides
T.C. Hollingsworth 3c0e24d
- temporarily disable tests to more easily fix above breakage
T.C. Hollingsworth 8c6da92
T.C. Hollingsworth fd284ff
* Tue Apr 23 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.4.1-2
T.C. Hollingsworth fd284ff
- fix rpmlint warnings
T.C. Hollingsworth fd284ff
T.C. Hollingsworth fd284ff
* Tue Apr 23 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.4.1-1
T.C. Hollingsworth fd284ff
- new upstream release 0.4.1
T.C. Hollingsworth fd284ff
- fix tests
T.C. Hollingsworth fd284ff
T.C. Hollingsworth fd284ff
* Tue Jan 15 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.3.3-2
T.C. Hollingsworth fd284ff
- rename from tap to nodejs-tap
T.C. Hollingsworth fd284ff
- remove bootstrap logic that didn't work
T.C. Hollingsworth fd284ff
- instead we use ourself and BuildRequire everything we need
T.C. Hollingsworth fd284ff
T.C. Hollingsworth fd284ff
* Tue Jan 08 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.3.3-1
T.C. Hollingsworth fd284ff
- initial package generated by npm2rpm