9632877
%global gem_name minitest-around
9632877
9632877
Name: rubygem-%{gem_name}
9632877
Version: 0.4.0
9632877
Release: 3%{?dist}
9632877
Summary: Around block for minitest
9632877
Group: Development/Languages
9632877
License: MIT
9632877
URL: https://github.com/splattael/minitest-around
9632877
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
9632877
BuildRequires: ruby(release)
9632877
BuildRequires: rubygems-devel
9632877
BuildRequires: rubygem(minitest)
9632877
BuildRequires: rubygem(cucumber)
9632877
BuildArch: noarch
9632877
9632877
%description
9632877
Alternative for setup/teardown dance.
9632877
9632877
9632877
%package doc
9632877
Summary: Documentation for %{name}
9632877
Group: Documentation
9632877
Requires: %{name} = %{version}-%{release}
9632877
BuildArch: noarch
9632877
9632877
%description doc
9632877
Documentation for %{name}.
9632877
9632877
%prep
9632877
gem unpack %{SOURCE0}
9632877
9632877
%setup -q -D -T -n  %{gem_name}-%{version}
9632877
9632877
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
9632877
9632877
%build
9632877
# Create the gem as gem install only works on a gem file
9632877
gem build %{gem_name}.gemspec
9632877
9632877
# %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir
9632877
# by default, so that we can move it into the buildroot in %%install
9632877
%gem_install
9632877
9632877
%install
9632877
mkdir -p %{buildroot}%{gem_dir}
9632877
cp -a .%{gem_dir}/* \
9632877
        %{buildroot}%{gem_dir}/
9632877
9632877
9632877
9632877
9632877
# Run the test suite
9632877
%check
9632877
pushd .%{gem_instdir}
9632877
  sed -i "/require 'bundler/ s/^/#/" test/helper.rb
9632877
  RUBYOPT=-Ilib ruby -e 'Dir.glob "./test/*_{test,spec}.rb", &method(:require)'
9632877
  RUBYOPT=-Ilib cucumber --tag ~@todo --tag ~@rspec
9632877
popd
9632877
9632877
%files
9632877
%dir %{gem_instdir}
9632877
%doc %{gem_instdir}/README.md
9632877
%license %{gem_instdir}/LICENSE
9632877
%{gem_libdir}
9632877
%{gem_spec}
9632877
%exclude %{gem_instdir}/.*
9632877
%exclude %{gem_cache}
9632877
9632877
%files doc
9632877
%doc %{gem_docdir}
9632877
%exclude %{gem_instdir}/config
9632877
%exclude %{gem_instdir}/features
9632877
%exclude %{gem_instdir}/Gemfile
9632877
%exclude %{gem_instdir}/Rakefile
9632877
%exclude %{gem_instdir}/examples
9632877
%exclude %{gem_instdir}/minitest-around.gemspec
9632877
%exclude %{gem_instdir}/test
9632877
9632877
%changelog
9632877
* Thu Nov 10 2016 Ilya Gradina <ilya.gradina@gmail.com> - 0.4.0-3
9632877
- change in check section
9632877
9632877
* Tue Nov 08 2016 Ilya Gradina <ilya.gradina@gmail.com> - 0.4.0-2
9632877
- fix tests
9632877
 
9632877
* Sat Nov 05 2016 Ilya Gradina <ilya.gradina@gmail.com> - 0.4.0-1
9632877
- update to 0.4.0
9632877
9632877
* Tue Aug 16 2016 Ilya Gradina <ilya.gradina@gmail.com> - 0.3.2-2
9632877
- changes in files hierarchy
9632877
9632877
* Tue Sep 29 2015 Ilya Gradina <ilya.gradina@gmail.com> - 0.3.2-1
9632877
- Initial package