# Generated from rspec-core-3.8.1.gem by gem2rpm -*- rpm-spec -*- %global gem_name rspec-core Name: rubygem-%{gem_name} Version: 3.8.1 Release: 1%{?dist} Summary: rspec-core-3.8.1 License: MIT URL: https://github.com/rspec/rspec-core Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby >= 1.8.7 # BuildRequires: rubygem(cucumber) >= 1.3 # BuildRequires: rubygem(cucumber) < 2 # BuildRequires: rubygem(minitest) >= 5.3 # BuildRequires: rubygem(minitest) < 6 # BuildRequires: rubygem(aruba) >= 0.6.2 # BuildRequires: rubygem(aruba) < 0.7 # BuildRequires: rubygem(coderay) >= 1.1.1 # BuildRequires: rubygem(coderay) < 1.2 # BuildRequires: rubygem(mocha) >= 0.13.0 # BuildRequires: rubygem(mocha) < 0.14 # BuildRequires: rubygem(rr) >= 1.0.4 # BuildRequires: rubygem(rr) < 1.1 # BuildRequires: rubygem(flexmock) >= 0.9.0 # BuildRequires: rubygem(flexmock) < 0.10 # BuildRequires: rubygem(thread_order) >= 1.1.0 # BuildRequires: rubygem(thread_order) < 1.2 BuildArch: noarch %description BDD for Ruby. RSpec runner and example groups. %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}/ mkdir -p %{buildroot}%{_bindir} cp -a .%{_bindir}/* \ %{buildroot}%{_bindir}/ find %{buildroot}%{gem_instdir}/exe -type f | xargs chmod a+x %check pushd .%{gem_instdir} # cucumber # ruby -e 'Dir.glob "./test/**/*_test.rb", &method(:require)' popd %files %dir %{gem_instdir} %{_bindir}/rspec %exclude %{gem_instdir}/.yardopts %license %{gem_instdir}/LICENSE.md %{gem_instdir}/exe %{gem_libdir} %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %doc %{gem_instdir}/.document %doc %{gem_instdir}/Changelog.md %doc %{gem_instdir}/README.md %changelog * Thu Jun 13 2019 mockbuilder - 3.8.1-1 - Initial package