%{!?scl:%global pkg_name %{name}} %{?scl:%scl_package rubygem-%{gem_name}} %global gem_name rspec-expectations # %%check section needs rspec, however rspec depends on rspec-expectations %global need_bootstrap 0 Summary: Rspec-2 expectations (should and matchers) Name: %{?scl_prefix}rubygem-%{gem_name} Version:2.14.5 Release:3%{?dist} Group: Development/Languages License: MIT URL: http://github.com/rspec/rspec-expectations 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) BuildRequires: %{?scl_prefix_ruby}rubygem(minitest) %endif Requires: %{?scl_prefix_ruby}ruby(release) Requires: %{?scl_prefix}rubygem(diff-lcs) >= 1.1.3 Requires: %{?scl_prefix}rubygem(diff-lcs) < 2.0 Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version}-%{release} BuildArch: noarch %description rspec-expectations adds `should` and `should_not` to every object and includes RSpec::Matchers, a library of standard matchers. %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 LANG=en_US.UTF-8 pushd .%{gem_instdir} %{?scl:scl enable %scl "} # No test/unit available rspec -Ilib spec/ | grep '934 examples, 3 failures, 1 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_instdir}/*.md %doc %{gem_docdir} %{gem_instdir}/features/ %{gem_instdir}/spec/ %changelog * Fri Jan 16 2015 Josef Stribny - 2.14.5-3 - Enable tests * Fri Jan 16 2015 Josef Stribny - 2.14.5-2 - Fix diff-lcs version requirement * Fri Jan 16 2015 Josef Stribny - 2.14.5-1 - Update to 2.14.5 * Wed Nov 20 2013 Josef Stribny - 2.11.1-5 - Enable tests again. * Tue Nov 19 2013 Josef Stribny - 2.11.1-4 - Add missing dist tag. - Resolves: rhbz#967006 * Tue May 21 2013 Josef Stribny - 2.11.1-3 - Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0 * Tue Jul 24 2012 Bohuslav Kabrda - 2.11.1-2 - Enable tests again. * Tue Jul 24 2012 Bohuslav Kabrda - 2.11.1-1 - Update to Rspec-Expectations 2.11.1. - Specfile cleanup * Fri Mar 30 2012 Bohuslav Kabrda - 2.8.0-4 - Allow tests. * Fri Mar 30 2012 Bohuslav Kabrda - 2.8.0-3 - Rebuilt for scl. * Sun Jan 22 2012 Mamoru Tasaka - 2.8.0-2 - Require (diff-lcs) again * 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