# Generated from stockpile-2.0.gem by gem2rpm -*- rpm-spec -*- %global gem_name stockpile Name: rubygem-%{gem_name} Version: 2.0 Release: 1%{?dist} Summary: Stockpile is a simple key-value store connection manager framework License: MIT URL: https://github.com/halostatue/stockpile/ Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby >= 2.0 # BuildRequires: rubygem(minitest) >= 5.8 # BuildRequires: rubygem(minitest) < 6 # BuildRequires: rubygem(hoe-doofus) >= 1.0 # BuildRequires: rubygem(hoe-doofus) < 2 # BuildRequires: rubygem(hoe-gemspec2) >= 1.1 # BuildRequires: rubygem(hoe-gemspec2) < 2 # BuildRequires: rubygem(hoe-git) >= 1.5 # BuildRequires: rubygem(hoe-git) < 2 # BuildRequires: rubygem(hoe-travis) >= 1.2 # BuildRequires: rubygem(hoe-travis) < 2 # BuildRequires: rubygem(minitest-autotest) >= 1.0 # BuildRequires: rubygem(minitest-autotest) < 2 # BuildRequires: rubygem(minitest-bisect) >= 1.2 # BuildRequires: rubygem(minitest-bisect) < 2 # BuildRequires: rubygem(minitest-bonus-assertions) >= 2.0 # BuildRequires: rubygem(minitest-bonus-assertions) < 3 # BuildRequires: rubygem(minitest-focus) >= 1.1 # BuildRequires: rubygem(minitest-focus) < 2 # BuildRequires: rubygem(minitest-moar) # BuildRequires: rubygem(minitest-moar) < 1 # BuildRequires: rubygem(minitest-pretty_diff) >= 0.1 # BuildRequires: rubygem(minitest-pretty_diff) < 1 # BuildRequires: rubygem(simplecov) >= 0.7 # BuildRequires: rubygem(simplecov) < 1 # BuildRequires: rubygem(hoe) >= 3.15 # BuildRequires: rubygem(hoe) < 4 BuildArch: noarch %description Stockpile is a simple key-value store connection manager framework. Stockpile itself does not implement a connection manager, but places expectations for implemented connection managers. So far, only Redis has been implemented (stockpile-redis). Stockpile also provides an adapter so that its functionality can be accessed from within a module. Release 2.0 fixes an issue when Stockpile options are provided with an OpenStruct, originally reported as {stockpile-redis#1}[https://github.com/halostatue/stockpile-redis/issues/1]. Support for Ruby 1.9 has been dropped. %package doc Summary: Documentation for %{name} Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{name}. %prep %setup -q -n %{gem_name}-%{version} %build # Create the gem as gem install only works on a gem file gem build ../%{gem_name}-%{version}.gemspec # %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir # by default, so that we can move it into the buildroot in %%install %gem_install %install mkdir -p %{buildroot}%{gem_dir} cp -a .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ %check pushd .%{gem_instdir} # ruby -e 'Dir.glob "./test/**/*_test.rb", &method(:require)' popd %files %dir %{gem_instdir} %{gem_instdir}/.autotest %exclude %{gem_instdir}/.gemtest %{gem_instdir}/.minitest.rb %exclude %{gem_instdir}/.rubocop.yml %{gem_instdir}/.simplecov-prelude.rb %exclude %{gem_instdir}/.travis.yml %{gem_instdir}/.workenv %{gem_instdir}/Code-of-Conduct.md %license %{gem_instdir}/Licence.rdoc %{gem_instdir}/Manifest.txt %{gem_libdir} %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %doc %{gem_instdir}/Contributing.rdoc %{gem_instdir}/Gemfile %doc %{gem_instdir}/History.md %doc %{gem_instdir}/README.rdoc %{gem_instdir}/Rakefile %{gem_instdir}/test %changelog * Wed Sep 15 2021 mockbuilder - 2.0-1 - Initial package