|
|
39dfd52 |
%global gem_name coveralls
|
|
|
39dfd52 |
|
|
|
39dfd52 |
Summary: A Ruby implementation of the Coveralls API
|
|
|
39dfd52 |
Name: rubygem-%{gem_name}
|
|
|
f70e769 |
Version: 0.8.13
|
|
|
acadcad |
Release: 8%{?dist}
|
|
|
39dfd52 |
License: MIT
|
|
|
39dfd52 |
URL: https://coveralls.io
|
|
|
39dfd52 |
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|
|
aa871ef |
BuildRequires: git
|
|
|
39dfd52 |
BuildRequires: ruby(release)
|
|
|
39dfd52 |
BuildRequires: rubygems-devel
|
|
|
ccd2408 |
BuildRequires: rubygem(bigdecimal)
|
|
|
39dfd52 |
BuildRequires: rubygem(multi_json)
|
|
|
ccd2408 |
BuildRequires: rubygem(pry)
|
|
|
39dfd52 |
BuildRequires: rubygem(rake)
|
|
|
39dfd52 |
BuildRequires: rubygem(rest-client)
|
|
|
39dfd52 |
BuildRequires: rubygem(rspec)
|
|
|
39dfd52 |
BuildRequires: rubygem(simplecov)
|
|
|
39dfd52 |
BuildRequires: rubygem(term-ansicolor)
|
|
|
39dfd52 |
BuildRequires: rubygem(thor)
|
|
|
39dfd52 |
BuildRequires: rubygem(vcr)
|
|
|
39dfd52 |
BuildRequires: rubygem(webmock)
|
|
|
39dfd52 |
BuildRequires: txt2man
|
|
|
39dfd52 |
BuildArch: noarch
|
|
|
39dfd52 |
|
|
|
39dfd52 |
%description
|
|
|
39dfd52 |
Coveralls works with your continuous integration
|
|
|
39dfd52 |
server to give you test coverage history and statistics.
|
|
|
39dfd52 |
|
|
|
39dfd52 |
This package is a Ruby implementation of the Coveralls API.
|
|
|
39dfd52 |
|
|
|
39dfd52 |
%package doc
|
|
|
39dfd52 |
Summary: Documentation for %{name}
|
|
|
39dfd52 |
Requires: %{name} = %{version}-%{release}
|
|
|
39dfd52 |
BuildArch: noarch
|
|
|
39dfd52 |
|
|
|
39dfd52 |
%description doc
|
|
|
39dfd52 |
Documentation for %{name}
|
|
|
39dfd52 |
|
|
|
39dfd52 |
%prep
|
|
|
acadcad |
%setup -q -n %{gem_name}-%{version}
|
|
|
ec6bc7b |
|
|
|
dd655bd |
# Work around until tins gets updated in Fedora
|
|
|
ec6bc7b |
%gemspec_remove_dep -g tins "~> 1.6.0"
|
|
|
ec6bc7b |
%gemspec_add_dep -g tins ">= 1.0.0"
|
|
|
ec6bc7b |
|
|
|
ec6bc7b |
# Relax JSON and SimpleCov dependency.
|
|
|
ec6bc7b |
# https://github.com/lemurheavy/coveralls-ruby/commit/ddf7ae7c269016b06dfe6800f786a87c3c771ac6
|
|
|
ec6bc7b |
%gemspec_remove_dep -g json "~> 1.8"
|
|
|
ec6bc7b |
%gemspec_add_dep -g json [">= 1.8", "< 3"]
|
|
|
ec6bc7b |
%gemspec_remove_dep -g simplecov "~> 0.11.0"
|
|
|
ec6bc7b |
%gemspec_add_dep -g simplecov "~> 0.11"
|
|
|
39dfd52 |
|
|
|
39dfd52 |
%build
|
|
|
acadcad |
gem build ../%{gem_name}-%{version}.gemspec
|
|
|
39dfd52 |
%gem_install
|
|
|
39dfd52 |
|
|
|
39dfd52 |
%install
|
|
|
39dfd52 |
mkdir -p %{buildroot}%{gem_dir}
|
|
|
39dfd52 |
cp -a ./%{gem_dir}/* %{buildroot}%{gem_dir}/
|
|
|
39dfd52 |
|
|
|
39dfd52 |
mkdir -p %{buildroot}%{_bindir}
|
|
|
39dfd52 |
cp -a ./%{_bindir}/* %{buildroot}%{_bindir}
|
|
|
39dfd52 |
|
|
|
39dfd52 |
chmod 755 %{buildroot}%{gem_instdir}/Rakefile
|
|
|
39dfd52 |
find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
|
|
|
39dfd52 |
find %{buildroot}%{gem_instdir}/spec -name *.rb | xargs chmod a-x
|
|
|
39dfd52 |
|
|
|
39dfd52 |
# Create man pages
|
|
|
39dfd52 |
mkdir -p %{buildroot}%{_mandir}/man1
|
|
|
39dfd52 |
%{buildroot}%{gem_instdir}/bin/coveralls help > helpfile
|
|
|
39dfd52 |
txt2man -P coveralls -t coveralls -r %{version} helpfile > %{buildroot}%{_mandir}/man1/coveralls.1
|
|
|
39dfd52 |
rm -f helpfile
|
|
|
39dfd52 |
|
|
|
39dfd52 |
# Remove build leftovers.
|
|
|
39dfd52 |
rm -rf %{buildroot}%{gem_instdir}/{.gitignore,.rspec,.ruby-version,.travis.yml,.yard*}
|
|
|
39dfd52 |
rm -f %{buildroot}%{gem_instdir}/{Gemfile,coveralls-ruby.gemspec}
|
|
|
39dfd52 |
|
|
|
39dfd52 |
%check
|
|
|
39dfd52 |
pushd ./%{gem_instdir}
|
|
|
6a72e1c |
# Two tests are not working in koji, but do by hand, skip them
|
|
|
6a72e1c |
rspec -Ilib --tag ~if spec
|
|
|
39dfd52 |
popd
|
|
|
39dfd52 |
|
|
|
39dfd52 |
%files
|
|
|
ccd2408 |
%license %{gem_instdir}/LICENSE
|
|
|
39dfd52 |
%dir %{gem_instdir}
|
|
|
39dfd52 |
%{_bindir}/coveralls
|
|
|
39dfd52 |
%{gem_instdir}/bin
|
|
|
39dfd52 |
%{gem_libdir}
|
|
|
39dfd52 |
%exclude %{gem_cache}
|
|
|
39dfd52 |
%{gem_spec}
|
|
|
39dfd52 |
%{_mandir}/man1/*
|
|
|
39dfd52 |
|
|
|
39dfd52 |
%files doc
|
|
|
39dfd52 |
%doc %{gem_docdir}
|
|
|
39dfd52 |
%doc %{gem_instdir}/CHANGELOG.md
|
|
|
39dfd52 |
%doc %{gem_instdir}/README.md
|
|
|
39dfd52 |
%{gem_instdir}/Rakefile
|
|
|
39dfd52 |
%{gem_instdir}/spec
|
|
|
39dfd52 |
|
|
|
39dfd52 |
%changelog
|
|
|
acadcad |
* Fri Feb 15 2019 Troy Dawson <tdawson@redhat.com> - 0.8.13-8
|
|
|
acadcad |
- Fix FTBFS (#1606179) (#1675910)
|
|
|
acadcad |
|
|
|
b536b13 |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.13-7
|
|
|
b536b13 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
b536b13 |
|
|
|
04fbdac |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.13-6
|
|
|
04fbdac |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
04fbdac |
|
|
|
a3d69e4 |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.13-5
|
|
|
a3d69e4 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
a3d69e4 |
|
|
|
bcdb836 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.13-4
|
|
|
bcdb836 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
bcdb836 |
|
|
|
bb1ab6d |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.13-3
|
|
|
bb1ab6d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
bb1ab6d |
|
|
|
ec6bc7b |
* Thu Jan 26 2017 Vít Ondruch <vondruch@redhat.com> - 0.8.13-2
|
|
|
ec6bc7b |
- Relax JSON and SimpleCov dependency.
|
|
|
ec6bc7b |
|
|
|
f70e769 |
* Tue Mar 08 2016 Troy Dawson <tdawson@redhat.com> - 0.8.13-1
|
|
|
f70e769 |
- Updated to version 0.8.13
|
|
|
f70e769 |
|
|
|
dd655bd |
* Tue Feb 23 2016 Troy Dawson <tdawson@redhat.com> - 0.8.11-1
|
|
|
dd655bd |
- Updated to version 0.8.11
|
|
|
af78a6b |
- Fix dependencies
|
|
|
dd655bd |
|
|
|
ccd2408 |
* Tue Feb 16 2016 Troy Dawson <tdawson@redhat.com> - 0.8.10-1
|
|
|
dd655bd |
- Update to 0.8.11
|
|
|
ccd2408 |
|
|
|
97fc13d |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.2-2
|
|
|
97fc13d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
97fc13d |
|
|
|
083f9bc |
* Mon Jul 27 2015 Troy Dawson <tdawson@redhat.com> - 0.8.2-1
|
|
|
083f9bc |
- Update to 0.8.2
|
|
|
083f9bc |
|
|
|
578abab |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.0-5
|
|
|
578abab |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
578abab |
|
|
|
da57065 |
* Fri Jul 18 2014 Troy Dawson <tdawson@redhat.com> - 0.7.0-4
|
|
|
da57065 |
- Spec file tweaks to accomodate different releases (#1121107)
|
|
|
da57065 |
|
|
|
39dfd52 |
* Mon Jul 07 2014 Troy Dawson <tdawson@redhat.com> - 0.7.0-3
|
|
|
39dfd52 |
- Spec file tweaks
|
|
|
39dfd52 |
|
|
|
39dfd52 |
* Thu Jul 03 2014 Troy Dawson <tdawson@redhat.com> - 0.7.0-2
|
|
|
39dfd52 |
- Add man page
|
|
|
39dfd52 |
|
|
|
39dfd52 |
* Wed Apr 02 2014 Troy Dawson <tdawson@redhat.com> - 0.7.0-1
|
|
|
39dfd52 |
- Initial package
|