diff --git a/rubygem-simplecov-html.spec b/rubygem-simplecov-html.spec new file mode 100644 index 0000000..fbea2c0 --- /dev/null +++ b/rubygem-simplecov-html.spec @@ -0,0 +1,67 @@ +%global gem_name simplecov-html +%global rubyabi 1.9.1 +Summary: Default HTML formatter for SimpleCov +Name: rubygem-%{gem_name} +Version: 0.10.0 +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} +%{gem_spec} + +%files doc +%doc %{gem_docdir} +%{gem_instdir}/Guardfile +%{gem_instdir}/Rakefile +%{gem_instdir}/README.md +%{gem_instdir}/test + +%changelog +* Mon Sep 7 2020 yanan li - 0.10.0-1 +- Package init diff --git a/rubygem-simplecov-html.yaml b/rubygem-simplecov-html.yaml new file mode 100644 index 0000000..9e3106f --- /dev/null +++ b/rubygem-simplecov-html.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: colszowka/simplecov-html +tag_prefix: "^v" +separator: "." diff --git a/simplecov-html-0.10.0.gem b/simplecov-html-0.10.0.gem new file mode 100644 index 0000000..43921dc Binary files /dev/null and b/simplecov-html-0.10.0.gem differ