%{?scl:%scl_package rubygem-%{gem_name}} %{!?scl:%global pkg_name %{name}} %global majorver 3.4.0 #%%global preminorver .rc6 %global rpmminorver .%(echo %preminorver | sed -e 's|^\\.\\.*||') %global fullver %{majorver}%{?preminorver} %global fedorarel 4 %global gem_name rspec-expectations %global need_bootstrap_set 0 Summary: Rspec-2 expectations (should and matchers) Name: %{?scl_prefix}rubygem-%{gem_name} Version: %{majorver} Release: %{?preminorver:0.}%{fedorarel}%{?preminorver:%{rpmminorver}}%{?dist} Group: Development/Languages License: MIT URL: http://github.com/rspec/rspec-expectations Source0: https://rubygems.org/gems/%{gem_name}-%{fullver}.gem # %%{SOURCE2} %%{pkg_name} %%{version} Source1: rubygem-%{gem_name}-%{version}-full.tar.gz Source2: rspec-related-create-full-tarball.sh Requires: %{?scl_prefix_ruby}ruby(rubygems) Requires: %{?scl_prefix}rubygem(rspec-support) => 3.4.0 Requires: %{?scl_prefix}rubygem(rspec-support) < 3.5 Requires: %{?scl_prefix}rubygem(diff-lcs) >= 1.2.0 Requires: %{?scl_prefix}rubygem(diff-lcs) < 2.0 BuildRequires: %{?scl_prefix_ruby}ruby(release) BuildRequires: %{?scl_prefix_ruby}rubygems-devel %if 0%{?need_bootstrap_set} < 1 BuildRequires: %{?scl_prefix}rubygem(rspec) BuildRequires: %{?scl_prefix_ruby}rubygem(minitest) >= 5 BuildRequires: git %endif BuildArch: noarch Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version}-%{release} %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 %{?scl:scl enable %{scl} - << \EOF} gem unpack %{SOURCE0} %{?scl:EOF} %setup -q -D -T -n %{gem_name}-%{version} -a 1 %{?scl:scl enable %{scl} - << \EOF} gem specification %{SOURCE0} -l --ruby > %{gem_name}.gemspec %{?scl:EOF} %build %{?scl:scl enable %{scl} - << \EOF} gem build %{gem_name}.gemspec %gem_install %{?scl:EOF} %install mkdir -p %{buildroot}%{gem_dir} cp -a .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ # cleanups rm -f %{buildroot}%{gem_instdir}/{.document,.yardopts} %if 0%{?need_bootstrap_set} < 1 %check LANG=en_US.UTF-8 pushd %{gem_name}-%{version} %{?scl:scl enable %{scl} - << \EOF} ruby -rubygems -Ilib/ -S rspec spec/ %{?scl:EOF} popd %endif %files %dir %{gem_instdir} %license %{gem_instdir}/LICENSE.md %doc %{gem_instdir}/Changelog.md %doc %{gem_instdir}/README.md %{gem_instdir}/lib/ %exclude %{gem_cache} %{gem_spec} %files doc %{gem_docdir} %changelog * Mon Feb 22 2016 Pavel Valena - 3.4.0-4 - Update to 3.4.0 * 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