2020-09-07 16:29:52 +08:00
|
|
|
%global gem_name simplecov-html
|
|
|
|
|
%global rubyabi 1.9.1
|
|
|
|
|
Summary: Default HTML formatter for SimpleCov
|
|
|
|
|
Name: rubygem-%{gem_name}
|
2023-11-13 17:53:52 +08:00
|
|
|
Version: 0.12.3
|
2020-09-07 16:29:52 +08:00
|
|
|
Release: 1
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: https://github.com/colszowka/simplecov-html
|
|
|
|
|
Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|
|
|
|
Requires: ruby(release)
|
|
|
|
|
Requires: ruby rubygems
|
|
|
|
|
BuildRequires: ruby rubygems-devel
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
Provides: rubygem(%{gem_name}) = %{version}
|
|
|
|
|
%description
|
|
|
|
|
Default HTML formatter for SimpleCov code coverage tool for ruby 1.9+
|
|
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
|
Summary: Documentation for %{name}
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
%description doc
|
|
|
|
|
Documentation for %{name}
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
gem unpack %{SOURCE0}
|
|
|
|
|
%setup -q -D -T -n %{gem_name}-%{version}
|
|
|
|
|
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
gem build %{gem_name}.gemspec
|
|
|
|
|
%gem_install
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
mkdir -p %{buildroot}%{gem_dir}
|
|
|
|
|
cp -a ./%{gem_dir}/* %{buildroot}%{gem_dir}/
|
|
|
|
|
rm -f %{buildroot}%{gem_instdir}/.document
|
|
|
|
|
rm -f %{buildroot}%{gem_instdir}/.gitignore
|
|
|
|
|
rm -f %{buildroot}%{gem_instdir}/.rubocop.yml
|
|
|
|
|
rm -f %{buildroot}%{gem_instdir}/.travis.yml
|
|
|
|
|
rm -f %{buildroot}%{gem_instdir}/.yardopts
|
|
|
|
|
rm -rf %{buildroot}%{gem_instdir}/.yardoc
|
|
|
|
|
rm -f %{buildroot}%{gem_instdir}/Gemfile
|
|
|
|
|
rm -f %{buildroot}%{gem_instdir}/simplecov-html.gemspec
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%dir %{gem_instdir}
|
|
|
|
|
%doc %{gem_instdir}/LICENSE
|
|
|
|
|
%{gem_instdir}/assets
|
|
|
|
|
%{gem_instdir}/public
|
|
|
|
|
%{gem_instdir}/views
|
|
|
|
|
%{gem_libdir}
|
|
|
|
|
%exclude %{gem_cache}
|
2023-11-13 17:53:52 +08:00
|
|
|
%exclude %{gem_instdir}/.tool-versions
|
|
|
|
|
%exclude %{gem_instdir}/CHANGELOG.md
|
|
|
|
|
%exclude %{gem_instdir}/Gemfile.lock
|
2020-09-07 16:29:52 +08:00
|
|
|
%{gem_spec}
|
|
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
|
%doc %{gem_docdir}
|
|
|
|
|
%{gem_instdir}/Guardfile
|
|
|
|
|
%{gem_instdir}/Rakefile
|
|
|
|
|
%{gem_instdir}/README.md
|
|
|
|
|
%{gem_instdir}/test
|
|
|
|
|
|
|
|
|
|
%changelog
|
2023-11-13 17:53:52 +08:00
|
|
|
* Mon Nov 13 2023 Ge Wang <wang__ge@126.com> - 0.12.3-1
|
|
|
|
|
- Update to version 0.12.3
|
|
|
|
|
|
2020-09-07 16:29:52 +08:00
|
|
|
* Mon Sep 7 2020 yanan li <liyanan032@huawei.com> - 0.10.0-1
|
|
|
|
|
- Package init
|