Init package
This commit is contained in:
parent
6f399dbf3a
commit
07d8b6a7dd
BIN
benchmark-ips-2.10.0.gem
Normal file
BIN
benchmark-ips-2.10.0.gem
Normal file
Binary file not shown.
67
rubygem-benchmark-ips.spec
Normal file
67
rubygem-benchmark-ips.spec
Normal file
@ -0,0 +1,67 @@
|
|||||||
|
%global gem_name benchmark-ips
|
||||||
|
|
||||||
|
Name: rubygem-%{gem_name}
|
||||||
|
Version: 2.10.0
|
||||||
|
Release: 1
|
||||||
|
Summary: An iterations per second enhancement to Benchmark
|
||||||
|
License: MIT
|
||||||
|
URL: https://github.com/evanphx/benchmark-ips
|
||||||
|
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
||||||
|
BuildRequires: ruby(release)
|
||||||
|
BuildRequires: rubygems-devel
|
||||||
|
BuildRequires: ruby
|
||||||
|
BuildRequires: rubygem(minitest)
|
||||||
|
BuildRequires: rubygem(hoe)
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description
|
||||||
|
An iterations per second enhancement to Benchmark.
|
||||||
|
|
||||||
|
|
||||||
|
%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}/
|
||||||
|
|
||||||
|
%check
|
||||||
|
pushd .%{gem_instdir}
|
||||||
|
ruby -Ilib -e 'Dir.glob "./test/test_*.rb", &method(:require)'
|
||||||
|
popd
|
||||||
|
|
||||||
|
%files
|
||||||
|
%dir %{gem_instdir}
|
||||||
|
%license %{gem_instdir}/LICENSE
|
||||||
|
%exclude %{gem_cache}
|
||||||
|
%{gem_libdir}
|
||||||
|
%{gem_spec}
|
||||||
|
|
||||||
|
%files doc
|
||||||
|
%doc %{gem_docdir}
|
||||||
|
%doc %{gem_instdir}/README.md
|
||||||
|
%doc %{gem_instdir}/History.md
|
||||||
|
%{gem_instdir}/examples/
|
||||||
|
%{gem_instdir}/examples/*.rb
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Wed Jan 18 2023 wangkai <wangkai385@h-partners.com> - 2.10.0-1
|
||||||
|
- Init package
|
||||||
Loading…
x
Reference in New Issue
Block a user