package init
This commit is contained in:
parent
1f21004514
commit
64a48f2a8f
BIN
connection_pool-2.2.0.gem
Normal file
BIN
connection_pool-2.2.0.gem
Normal file
Binary file not shown.
59
rubygem-connection_pool.spec
Normal file
59
rubygem-connection_pool.spec
Normal file
@ -0,0 +1,59 @@
|
||||
%global gem_name connection_pool
|
||||
Name: rubygem-%{gem_name}
|
||||
Version: 2.2.0
|
||||
Release: 1
|
||||
Summary: Generic connection pool for Ruby
|
||||
License: MIT
|
||||
URL: https://github.com/mperham/connection_pool
|
||||
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
||||
BuildRequires: ruby(release) rubygems-devel ruby rubygem(minitest)
|
||||
BuildArch: noarch
|
||||
%description
|
||||
Generic connection pool for Ruby.
|
||||
|
||||
%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}
|
||||
%doc %{gem_instdir}/README.md
|
||||
%doc %{gem_instdir}/Changes.md
|
||||
%{gem_libdir}
|
||||
%{gem_spec}
|
||||
%license %{gem_instdir}/LICENSE
|
||||
%exclude %{gem_instdir}/.*
|
||||
%exclude %{gem_cache}
|
||||
|
||||
%files doc
|
||||
%doc %{gem_docdir}
|
||||
%exclude %{gem_instdir}/Rakefile
|
||||
%exclude %{gem_instdir}/connection_pool.gemspec
|
||||
%exclude %{gem_instdir}/test
|
||||
%exclude %{gem_instdir}/Gemfile
|
||||
|
||||
%changelog
|
||||
* Tue Jul 28 2020 wangyue <wangyue92@huawei.com> - 2.2.0-1
|
||||
- package init
|
||||
5
rubygem-connection_pool.yaml
Normal file
5
rubygem-connection_pool.yaml
Normal file
@ -0,0 +1,5 @@
|
||||
git_url: https://github.com/mperham/connection_pool
|
||||
version_control: github
|
||||
src_repo: mperham/connection_pool
|
||||
tag_prefix: "^v"
|
||||
seperator: "."
|
||||
Loading…
x
Reference in New Issue
Block a user