60 lines
1.5 KiB
RPMSpec
60 lines
1.5 KiB
RPMSpec
%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
|