diff --git a/connection_pool-2.2.0.gem b/connection_pool-2.2.0.gem new file mode 100644 index 0000000..7505c5c Binary files /dev/null and b/connection_pool-2.2.0.gem differ diff --git a/rubygem-connection_pool.spec b/rubygem-connection_pool.spec new file mode 100644 index 0000000..5cf73d9 --- /dev/null +++ b/rubygem-connection_pool.spec @@ -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 - 2.2.0-1 +- package init diff --git a/rubygem-connection_pool.yaml b/rubygem-connection_pool.yaml new file mode 100644 index 0000000..8506579 --- /dev/null +++ b/rubygem-connection_pool.yaml @@ -0,0 +1,5 @@ +git_url: https://github.com/mperham/connection_pool +version_control: github +src_repo: mperham/connection_pool +tag_prefix: "^v" +seperator: "."