|
Jared K. Smith |
0c7ee8b |
%{?nodejs_find_provides_and_requires}
|
|
Jared K. Smith |
0c7ee8b |
|
|
Jared K. Smith |
0c7ee8b |
%global packagename coveralls
|
|
Jared K. Smith |
0c7ee8b |
%global enable_tests 0
|
|
Jared K. Smith |
0c7ee8b |
# tests disabled due to failing git tests, despite the patch to fix some of them
|
|
Jared K. Smith |
0c7ee8b |
|
|
Jared K. Smith |
0c7ee8b |
Name: nodejs-coveralls
|
|
Jared K. Smith |
0c7ee8b |
Version: 2.11.6
|
|
|
a2b2e7d |
Release: 7%{?dist}
|
|
Jared K. Smith |
0c7ee8b |
Summary: Takes json-cov output into stdin and POSTs to coveralls.io
|
|
Jared K. Smith |
0c7ee8b |
|
|
Jared K. Smith |
0c7ee8b |
License: BSD
|
|
Jared K. Smith |
0c7ee8b |
URL: https://github.com/nickmerwin/node-coveralls.git
|
|
Jared K. Smith |
0c7ee8b |
Source0: https://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz
|
|
Jared K. Smith |
0c7ee8b |
|
|
Jared K. Smith |
0c7ee8b |
# Add a patch to fix syntax of the 'should' module. It has changed from
|
|
Jared K. Smith |
0c7ee8b |
# should.be.a.("string") to should.be.a.String()
|
|
Jared K. Smith |
0c7ee8b |
Patch0: coveralls-2.11.4-fix-should-syntax.patch
|
|
Jared K. Smith |
0c7ee8b |
|
|
Jared K. Smith |
0c7ee8b |
|
|
Jared K. Smith |
0c7ee8b |
ExclusiveArch: %{nodejs_arches} noarch
|
|
Jared K. Smith |
0c7ee8b |
BuildArch: noarch
|
|
Jared K. Smith |
0c7ee8b |
|
|
Jared K. Smith |
0c7ee8b |
BuildRequires: nodejs-packaging
|
|
Jared K. Smith |
0ec605a |
BuildRequires: npm(js-yaml)
|
|
Jared K. Smith |
ac6c33c |
BuildRequires: npm(minimist)
|
|
Jared K. Smith |
0c7ee8b |
BuildRequires: npm(lcov-parse)
|
|
Jared K. Smith |
0c7ee8b |
BuildRequires: npm(log-driver)
|
|
Jared K. Smith |
0ec605a |
BuildRequires: npm(request)
|
|
Jared K. Smith |
ac6c33c |
%if 0%{?enable_tests}
|
|
Jared K. Smith |
ac6c33c |
BuildRequires: mocha
|
|
Jared K. Smith |
0c7ee8b |
BuildRequires: npm(sinon-restore)
|
|
Jared K. Smith |
0c7ee8b |
%endif
|
|
Jared K. Smith |
0c7ee8b |
|
|
Jared K. Smith |
0c7ee8b |
Requires: nodejs
|
|
Jared K. Smith |
0c7ee8b |
|
|
Jared K. Smith |
0c7ee8b |
%description
|
|
Jared K. Smith |
0c7ee8b |
takes json-cov output into stdin and POSTs to coveralls.io
|
|
Jared K. Smith |
0c7ee8b |
|
|
Jared K. Smith |
0c7ee8b |
|
|
Jared K. Smith |
0c7ee8b |
%prep
|
|
Jared K. Smith |
0c7ee8b |
%setup -q -n package
|
|
Jared K. Smith |
0c7ee8b |
%patch0 -p1
|
|
Jared K. Smith |
0c7ee8b |
|
|
Jared K. Smith |
0c7ee8b |
%nodejs_fixdep js-yaml
|
|
Jared K. Smith |
0c7ee8b |
%nodejs_fixdep lcov-parse '~0.0.6'
|
|
Jared K. Smith |
0c7ee8b |
%nodejs_fixdep log-driver '~1.2.4'
|
|
Jared K. Smith |
0c7ee8b |
%nodejs_fixdep request '^2.40.0'
|
|
Jared K. Smith |
0c7ee8b |
|
|
Jared K. Smith |
0c7ee8b |
%build
|
|
Jared K. Smith |
0c7ee8b |
# nothing to do!
|
|
Jared K. Smith |
0c7ee8b |
|
|
Jared K. Smith |
0c7ee8b |
%install
|
|
Jared K. Smith |
0c7ee8b |
mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename}
|
|
Jared K. Smith |
0c7ee8b |
cp -pr package.json *.js fixtures/ lib/ test/ \
|
|
Jared K. Smith |
0c7ee8b |
%{buildroot}%{nodejs_sitelib}/%{packagename}
|
|
Jared K. Smith |
0c7ee8b |
|
|
Jared K. Smith |
0c7ee8b |
mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename}/bin
|
|
Jared K. Smith |
0c7ee8b |
install -p -D -m0755 bin/coveralls.js \
|
|
Jared K. Smith |
0c7ee8b |
%{buildroot}%{nodejs_sitelib}/%{packagename}/bin/coveralls.js
|
|
Jared K. Smith |
0c7ee8b |
|
|
Jared K. Smith |
0c7ee8b |
mkdir -p %{buildroot}%{_bindir}
|
|
Jared K. Smith |
0c7ee8b |
ln -sf %{nodejs_sitelib}/%{packagename}/bin/coveralls.js \
|
|
Jared K. Smith |
0c7ee8b |
%{buildroot}%{_bindir}/coveralls
|
|
Jared K. Smith |
0c7ee8b |
|
|
Jared K. Smith |
0c7ee8b |
|
|
Jared K. Smith |
0c7ee8b |
%nodejs_symlink_deps
|
|
Jared K. Smith |
0c7ee8b |
|
|
Jared K. Smith |
0c7ee8b |
%check
|
|
Jared K. Smith |
0c7ee8b |
%nodejs_symlink_deps --check
|
|
Jared K. Smith |
0c7ee8b |
%{__nodejs} -e 'require("./")'
|
|
Jared K. Smith |
0c7ee8b |
%if 0%{?enable_tests}
|
|
Jared K. Smith |
0c7ee8b |
/usr/bin/mocha -R spec
|
|
Jared K. Smith |
0c7ee8b |
%else
|
|
Jared K. Smith |
ac6c33c |
%{_bindir}/echo -e "\e[101m -=#=- Tests disabled -=#=- \e[0m"
|
|
Jared K. Smith |
0c7ee8b |
%endif
|
|
Jared K. Smith |
0c7ee8b |
|
|
Jared K. Smith |
0c7ee8b |
|
|
Jared K. Smith |
0c7ee8b |
%files
|
|
Jared K. Smith |
0c7ee8b |
%{!?_licensedir:%global license %doc}
|
|
Jared K. Smith |
0c7ee8b |
%doc *.md
|
|
Jared K. Smith |
0c7ee8b |
%{nodejs_sitelib}/%{packagename}
|
|
Jared K. Smith |
0c7ee8b |
%{_bindir}/coveralls
|
|
Jared K. Smith |
0c7ee8b |
|
|
Jared K. Smith |
0c7ee8b |
|
|
Jared K. Smith |
0c7ee8b |
|
|
Jared K. Smith |
0c7ee8b |
%changelog
|
|
|
a2b2e7d |
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.11.6-7
|
|
|
a2b2e7d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
a2b2e7d |
|
|
|
f6e8e71 |
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.11.6-6
|
|
|
f6e8e71 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
f6e8e71 |
|
|
|
c15d750 |
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.11.6-5
|
|
|
c15d750 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
c15d750 |
|
|
|
1b34965 |
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.11.6-4
|
|
|
1b34965 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
1b34965 |
|
|
|
bd02508 |
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.11.6-3
|
|
|
bd02508 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
bd02508 |
|
|
|
4dc5948 |
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.11.6-2
|
|
|
4dc5948 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
4dc5948 |
|
|
Jared K. Smith |
0c7ee8b |
* Wed Feb 03 2016 Jared Smith <jsmith@fedoraproject.org> - 2.11.6-1
|
|
Jared K. Smith |
0c7ee8b |
- Update to upstream 2.11.6 release
|
|
Jared K. Smith |
0c7ee8b |
|
|
Jared K. Smith |
0c7ee8b |
* Sat Oct 31 2015 Jared Smith <jsmith@fedoraproject.org> - 2.11.4-2
|
|
Jared K. Smith |
0c7ee8b |
- Fixup dependency versions
|
|
Jared K. Smith |
0c7ee8b |
|
|
Jared K. Smith |
0c7ee8b |
* Thu Oct 15 2015 Jared Smith <jsmith@fedoraproject.org> - 2.11.4-1
|
|
Jared K. Smith |
0c7ee8b |
- Initial packaging
|