%{!?scl:%global pkg_name %{name}} %{?scl:%scl_package rubygem-%{gem_name}} %global gem_name rspec-mocks # %%check section needs rspec, however rspec depends on rspec-mocks %global need_bootstrap 0 Summary: Rspec-2 doubles (mocks and stubs) Name: %{?scl_prefix}rubygem-%{gem_name} Version:2.14.5 Release:2%{?dist} Group: Development/Languages License: MIT URL: http://github.com/rspec/rspec-mocks Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem BuildRequires: %{?scl_prefix_ruby}ruby(release) BuildRequires: %{?scl_prefix_ruby}rubygems-devel %if 0%{?need_bootstrap} < 1 BuildRequires: %{?scl_prefix}rubygem(rspec) %endif Requires: %{?scl_prefix_ruby}ruby(release) Requires: %{?scl_prefix_ruby}rubygems Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version}-%{release} BuildArch: noarch %description rspec-mocks provides a test-double framework for rspec including support for method stubs, fakes, and message expectations. %package doc Summary: Documentation for %{pkg_name} Group: Documentation Requires: %{?scl_prefix}%{pkg_name} = %{version}-%{release} %description doc This package contains documentation for %{pkg_name}. %prep %setup -q -c -T %{?scl:scl enable %{scl} - << \EOF} %gem_install -n %{SOURCE0} %{?scl:EOF} %build %install mkdir -p %{buildroot}%{gem_dir} cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}/ %if 0%{?need_bootstrap} < 1 %check pushd .%{gem_instdir} %{?scl:scl enable %scl "} # YAML::ENGINE has been removed from Ruby 2.2. # https://github.com/rspec/rspec-mocks/commit/c152810e4e00f1fe7a5fc4ba5e6f9d8e9e2593e9 rspec -r yaml -Ilib spec/ | grep '920 examples, 4 failures, 3 pending' %{?scl:"} popd %endif %files %dir %{gem_instdir} %doc %{gem_instdir}/License.txt %{gem_libdir} %exclude %{gem_instdir}/.* %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %doc %{gem_instdir}/*.md %{gem_instdir}/features/ %{gem_instdir}/spec/ %changelog * Fri Jan 16 2015 Josef Stribny - 2.14.5-2 - Enable tests * Fri Jan 16 2015 Josef Stribny - 2.14.5-1 - Update to 2.14.5 * Fri Mar 21 2014 Vít Ondruch - 2.11.1-5 - Rebuid against new scl-utils to depend on -runtime package. Resolves: rhbz#1069109 * Wed Nov 20 2013 Josef Stribny - 2.11.1-4 - Allow test suite. * Tue Nov 19 2013 Josef Stribny - 2.11.1-3 - Add missing dist tag. - Resolves: rhbz#967006 * Tue May 21 2013 Josef Stribny - 2.11.1-2 - Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0 * Tue Jul 24 2012 Bohuslav Kabrda - 2.11.1-1 - Update to Rspec-Mocks 2.11.1. - Specfile cleanup. * Fri Mar 30 2012 Bohuslav Kabrda - 2.8.0-3 - Allow tests. * Fri Mar 30 2012 Bohuslav Kabrda - 2.8.0-2 - Rebuilt for scl. * Sun Jan 22 2012 Mamoru Tasaka - 2.8.0-1 - 2.8.0 * Sat Jan 14 2012 Fedora Release Engineering - 2.6.0-1.1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Mon May 16 2011 Mamoru Tasaka - 2.6.0-1 - 2.6.0 * Tue May 10 2011 Mamoru Tasaka - 2.6.0-0.3.rc6 - 2.6.0 rc6 * Tue May 3 2011 Mamoru Tasaka - And enable check on rawhide * Tue May 3 2011 Mamoru Tasaka - 2.6.0-0.1.rc4 - 2.6.0 rc4 * Sat Feb 26 2011 Mamoru Tasaka - And enable check on rawhide * Sat Feb 26 2011 Mamoru Tasaka - 2.5.0-2 - Cleanups * Thu Feb 17 2011 Mamoru Tasaka - 2.5.0-1 - 2.5.0 * Fri Nov 05 2010 Mamoru Tasaka - 2.0.1-1 - Initial package