package init
This commit is contained in:
parent
3056b951ad
commit
9b15082c78
67
rubygem-simplecov-html.spec
Normal file
67
rubygem-simplecov-html.spec
Normal file
@ -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 <liyanan032@huawei.com> - 0.10.0-1
|
||||||
|
- Package init
|
||||||
4
rubygem-simplecov-html.yaml
Normal file
4
rubygem-simplecov-html.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: github
|
||||||
|
src_repo: colszowka/simplecov-html
|
||||||
|
tag_prefix: "^v"
|
||||||
|
separator: "."
|
||||||
BIN
simplecov-html-0.10.0.gem
Normal file
BIN
simplecov-html-0.10.0.gem
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user