T.C. Hollingsworth 189b1cb
%{?nodejs_find_provides_and_requires}
T.C. Hollingsworth 189b1cb
4a173b9
%global enable_tests 1
T.C. Hollingsworth 6032992
T.C. Hollingsworth 6032992
Name:           nodejs-runforcover
T.C. Hollingsworth 6032992
Version:        0.0.2
91a0cef
Release:        16%{?dist}
T.C. Hollingsworth 6032992
Summary:        Require plugin for JS code coverage
4a173b9
T.C. Hollingsworth 6032992
BuildArch:      noarch
4a173b9
%if 0%{?fedora} >= 19
4a173b9
ExclusiveArch: %{nodejs_arches} noarch
4a173b9
%else
4a173b9
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
4a173b9
%endif
T.C. Hollingsworth 6032992
T.C. Hollingsworth 6032992
#no license file included; "new BSD" indicated in package.json
T.C. Hollingsworth 6032992
License:        BSD
T.C. Hollingsworth 6032992
URL:            https://github.com/chrisdickinson/node-runforcover
00760f6
Source0:        https://registry.npmjs.org/runforcover/-/runforcover-%{version}.tgz
T.C. Hollingsworth 6032992
4a173b9
BuildRequires:  nodejs-packaging
T.C. Hollingsworth 6032992
T.C. Hollingsworth 6032992
%if 0%{?enable_tests}
T.C. Hollingsworth 6032992
BuildRequires:  npm(bunker)
T.C. Hollingsworth 6032992
%endif
T.C. Hollingsworth 6032992
T.C. Hollingsworth 6032992
%description
T.C. Hollingsworth 6032992
Runforcover hooks into the `require()` function and uses nodejs-bunker to
T.C. Hollingsworth 6032992
provide code coverage data for your unit test library, whatever it might be.
T.C. Hollingsworth 6032992
T.C. Hollingsworth 6032992
%prep
T.C. Hollingsworth 6032992
%setup -q -n package
T.C. Hollingsworth 6032992
T.C. Hollingsworth 6032992
%build
T.C. Hollingsworth 6032992
#nothing to do
T.C. Hollingsworth 6032992
T.C. Hollingsworth 6032992
%install
T.C. Hollingsworth 6032992
mkdir -p %{buildroot}%{nodejs_sitelib}/runforcover
T.C. Hollingsworth 6032992
cp -pr package.json index.js %{buildroot}%{nodejs_sitelib}/runforcover
T.C. Hollingsworth 6032992
T.C. Hollingsworth 6032992
%nodejs_symlink_deps
T.C. Hollingsworth 6032992
T.C. Hollingsworth 6032992
%if 0%{?enable_tests}
T.C. Hollingsworth 6032992
%check
4a173b9
%nodejs_symlink_deps --check
T.C. Hollingsworth 6032992
%__nodejs test/index.js
T.C. Hollingsworth 6032992
%endif
T.C. Hollingsworth 6032992
T.C. Hollingsworth 6032992
%files
T.C. Hollingsworth 6032992
%{nodejs_sitelib}/runforcover
T.C. Hollingsworth 6032992
%doc README.markdown
T.C. Hollingsworth 6032992
T.C. Hollingsworth 6032992
%changelog
91a0cef
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.2-16
91a0cef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
91a0cef
691bc14
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.2-15
691bc14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
691bc14
e8cd173
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.2-14
e8cd173
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
e8cd173
d20bcba
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.2-13
d20bcba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
d20bcba
f1de86a
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.2-12
f1de86a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
f1de86a
adba0ab
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.2-11
adba0ab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
adba0ab
1a8d8e5
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.2-10
1a8d8e5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
1a8d8e5
b724254
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.2-9
b724254
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
b724254
00760f6
* Sun Feb 07 2016 Piotr Popieluch <piotr1212@gmail.com> - 0.0.2-8
00760f6
- cleanup spec
00760f6
24e7083
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.2-7
24e7083
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
24e7083
dc8b8c5
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.2-6
dc8b8c5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
dc8b8c5
f37c633
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.2-5
f37c633
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
f37c633
4a173b9
* Sun Jul 28 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 0.0.2-4
4a173b9
- restrict to compatible arches
4a173b9
- enable tests
4a173b9
T.C. Hollingsworth 189b1cb
* Mon Apr 15 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.0.2-3
T.C. Hollingsworth 189b1cb
- add macro to enable dependency generation on EPEL6
T.C. Hollingsworth 189b1cb
T.C. Hollingsworth 6032992
* Wed Feb 13 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.0.2-2
T.C. Hollingsworth 6032992
- fix and conditionalize tests
T.C. Hollingsworth 6032992
T.C. Hollingsworth 6032992
* Tue Jan 08 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.0.2-1
T.C. Hollingsworth 6032992
- initial package generated by npm2rpm