Compare commits
1 commit
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9a2eeb66a7 |
3 changed files with 24 additions and 75 deletions
|
|
@ -1,36 +0,0 @@
|
||||||
--- rspec-core-2.11.1/spec/spec_helper.rb.orig 2012-10-11 17:43:44.550615644 +0900
|
|
||||||
+++ rspec-core-2.11.1/spec/spec_helper.rb 2012-10-11 17:45:57.631226844 +0900
|
|
||||||
@@ -17,10 +17,10 @@
|
|
||||||
Spork.prefork do
|
|
||||||
require 'rspec/autorun'
|
|
||||||
require 'autotest/rspec2'
|
|
||||||
- require 'aruba/api'
|
|
||||||
- require 'fakefs/spec_helpers'
|
|
||||||
+ #require 'aruba/api'
|
|
||||||
+ #require 'fakefs/spec_helpers'
|
|
||||||
|
|
||||||
- Dir['./spec/support/**/*.rb'].map {|f| require f}
|
|
||||||
+ Dir['./spec/support/**/*.rb'].map {|f| require f unless f.include?("config_options_helper")}
|
|
||||||
|
|
||||||
class NullObject
|
|
||||||
private
|
|
||||||
@@ -71,15 +71,15 @@
|
|
||||||
c.alias_it_behaves_like_to 'it_has_behavior'
|
|
||||||
c.around {|example| sandboxed { example.run }}
|
|
||||||
c.include(RSpecHelpers)
|
|
||||||
- c.include Aruba::Api, :example_group => {
|
|
||||||
- :file_path => /spec\/command_line/
|
|
||||||
- }
|
|
||||||
+ #c.include Aruba::Api, :example_group => {
|
|
||||||
+ #:file_path => /spec\/command_line/
|
|
||||||
+ #}
|
|
||||||
|
|
||||||
# runtime options
|
|
||||||
c.treat_symbols_as_metadata_keys_with_true_values = true
|
|
||||||
c.color = !in_editor?
|
|
||||||
c.filter_run :focus
|
|
||||||
- c.include FakeFS::SpecHelpers, :fakefs
|
|
||||||
+ #c.include FakeFS::SpecHelpers, :fakefs
|
|
||||||
c.run_all_when_everything_filtered = true
|
|
||||||
c.filter_run_excluding :ruby => lambda {|version|
|
|
||||||
case version.to_s
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
%global gemdir %{gem_dir}
|
%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
|
||||||
%global majorver 2.11.1
|
%global majorver 2.6.4
|
||||||
#%%global preminorver .rc6
|
#%%global preminorver .rc6
|
||||||
%global rpmminorver .%(echo %preminorver | sed -e 's|^\\.\\.*||')
|
%global rpmminorver .%(echo %preminorver | sed -e 's|^\\.\\.*||')
|
||||||
%global fullver %{majorver}%{?preminorver}
|
%global fullver %{majorver}%{?preminorver}
|
||||||
|
|
@ -7,14 +7,16 @@
|
||||||
%global fedorarel 1
|
%global fedorarel 1
|
||||||
|
|
||||||
%global gemname rspec-core
|
%global gemname rspec-core
|
||||||
%global gem_name %{gemname}
|
%global geminstdir %{gemdir}/gems/%{gemname}-%{fullver}
|
||||||
%global geminstdir %{gem_instdir}
|
|
||||||
|
|
||||||
%global rubyabi 1.9.1
|
%global rubyabi 1.8
|
||||||
|
|
||||||
# %%check section needs rspec-core, however rspec-core depends on rspec-mocks
|
# %%check section needs rspec-core, however rspec-core depends on rspec-mocks
|
||||||
# runtime part of rspec-mocks does not depend on rspec-core
|
# runtime part of rspec-mocks does not depend on rspec-core
|
||||||
|
%global need_bootstrap_set 1
|
||||||
|
%if 0%{?fedora} >= 15
|
||||||
%global need_bootstrap_set 0
|
%global need_bootstrap_set 0
|
||||||
|
%endif
|
||||||
|
|
||||||
%{!?need_bootstrap: %global need_bootstrap %{need_bootstrap_set}}
|
%{!?need_bootstrap: %global need_bootstrap %{need_bootstrap_set}}
|
||||||
|
|
||||||
|
|
@ -27,11 +29,9 @@ Group: Development/Languages
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: http://github.com/rspec/rspec-mocks
|
URL: http://github.com/rspec/rspec-mocks
|
||||||
Source0: http://rubygems.org/gems/%{gemname}-%{fullver}.gem
|
Source0: http://rubygems.org/gems/%{gemname}-%{fullver}.gem
|
||||||
# Skip some tests
|
|
||||||
Patch0: rubygem-rspec-core-2.11.1-skip-some-tests.patch
|
|
||||||
|
|
||||||
BuildRequires: ruby(abi) = %{rubyabi}
|
BuildRequires: ruby(abi) = %{rubyabi}
|
||||||
BuildRequires: rubygems-devel
|
BuildRequires: rubygems
|
||||||
%if 0%{?need_bootstrap} < 1
|
%if 0%{?need_bootstrap} < 1
|
||||||
BuildRequires: rubygem(ZenTest)
|
BuildRequires: rubygem(ZenTest)
|
||||||
BuildRequires: rubygem(rake)
|
BuildRequires: rubygem(rake)
|
||||||
|
|
@ -39,10 +39,8 @@ BuildRequires: rubygem(rspec-expectations)
|
||||||
BuildRequires: rubygem(rspec-mocks)
|
BuildRequires: rubygem(rspec-mocks)
|
||||||
%endif
|
%endif
|
||||||
Requires: ruby(abi) = %{rubyabi}
|
Requires: ruby(abi) = %{rubyabi}
|
||||||
# When killing the below dependency, a notification to mailing list
|
Requires: rubygem(rspec-expectations)
|
||||||
# is needed
|
Requires: rubygem(rspec-mocks)
|
||||||
#Requires: rubygem(rspec-expectations)
|
|
||||||
#Requires: rubygem(rspec-mocks)
|
|
||||||
# Make the following installed by default
|
# Make the following installed by default
|
||||||
# lib/rspec/core/rake_task
|
# lib/rspec/core/rake_task
|
||||||
Requires: rubygem(rake)
|
Requires: rubygem(rake)
|
||||||
|
|
@ -88,16 +86,11 @@ grep -rl '^#![ \t]*/usr/bin' ./lib| \
|
||||||
xargs sed -i -e '\@^#![ \t]*/usr/bin@d'
|
xargs sed -i -e '\@^#![ \t]*/usr/bin@d'
|
||||||
|
|
||||||
# Until rspec is updated, lets install rspec.rb
|
# Until rspec is updated, lets install rspec.rb
|
||||||
# Kill below
|
|
||||||
%if 0
|
|
||||||
cat > lib/rspec.rb <<EOF
|
cat > lib/rspec.rb <<EOF
|
||||||
require 'rspec/core'
|
require 'rspec/core'
|
||||||
require 'rspec/expectations'
|
require 'rspec/expectations'
|
||||||
require 'rspec/mocks'
|
require 'rspec/mocks'
|
||||||
EOF
|
EOF
|
||||||
%endif
|
|
||||||
|
|
||||||
%patch0 -p1
|
|
||||||
|
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
|
@ -112,19 +105,18 @@ cp -a .%{_prefix}/* %{buildroot}%{_prefix}/
|
||||||
mv %{buildroot}%{_bindir}/autospec{,2}
|
mv %{buildroot}%{_bindir}/autospec{,2}
|
||||||
|
|
||||||
# cleanups
|
# cleanups
|
||||||
rm -f %{buildroot}%{geminstdir}/{.document,.gitignore,.treasure_map.rb,.rspec,.travis.yml,spec.txt,.yardopts}
|
rm -f %{buildroot}%{geminstdir}/{.document,.gitignore,.treasure_map.rb,.rspec,.travis.yml,spec.txt}
|
||||||
|
|
||||||
%if 0%{?need_bootstrap} < 1
|
%if 0%{?need_bootstrap} < 1
|
||||||
%check
|
%check
|
||||||
pushd .%{geminstdir}
|
pushd .%{geminstdir}
|
||||||
# spec/autotest/failed_results_re_spec.rb (and others) fail, skipping this for now
|
# spec/autotest/failed_results_re_spec.rb (and others) fail, skipping this for now
|
||||||
# (need investigating)
|
# (need investigating)
|
||||||
# and now also some other tests fail
|
ruby -rubygems -Ilib/ -S bin/rspec \
|
||||||
ruby -rubygems -Ilib/ -S exe/rspec \
|
spec/rspec/*_spec.rb spec/rspec/*/*_spec.rb \
|
||||||
$(ls -1 spec/rspec/*_spec.rb spec/rspec/*/*_spec.rb | \
|
%if 0
|
||||||
grep -v configuration_options_spec | \
|
spec/autotest/*_spec.rb
|
||||||
grep -v drb_options_spec ) \
|
%endif
|
||||||
|| :
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files
|
%files
|
||||||
|
|
@ -136,7 +128,7 @@ ruby -rubygems -Ilib/ -S exe/rspec \
|
||||||
|
|
||||||
%{_bindir}/autospec2
|
%{_bindir}/autospec2
|
||||||
%{_bindir}/rspec
|
%{_bindir}/rspec
|
||||||
%{geminstdir}/exe/
|
%{geminstdir}/bin/
|
||||||
%{geminstdir}/lib/
|
%{geminstdir}/lib/
|
||||||
|
|
||||||
%{gemdir}/cache/%{gemname}-%{fullver}.gem
|
%{gemdir}/cache/%{gemname}-%{fullver}.gem
|
||||||
|
|
@ -146,23 +138,16 @@ ruby -rubygems -Ilib/ -S exe/rspec \
|
||||||
%files doc
|
%files doc
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%{gemdir}/doc/%{gemname}-%{fullver}
|
%{gemdir}/doc/%{gemname}-%{fullver}
|
||||||
|
%{geminstdir}/Gemfile
|
||||||
|
%{geminstdir}/Guardfile
|
||||||
|
%{geminstdir}/Rakefile
|
||||||
|
%{geminstdir}/cucumber.yml
|
||||||
|
%{geminstdir}/%{gemname}.gemspec
|
||||||
%{geminstdir}/features/
|
%{geminstdir}/features/
|
||||||
|
%{geminstdir}/script/
|
||||||
%{geminstdir}/spec/
|
%{geminstdir}/spec/
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Thu Oct 11 2012 Mamoru Tasaka <mtasaka@fedoraproject.org> - 2.11.1-1
|
|
||||||
- 2.11.1
|
|
||||||
- Drop dependency for mocks and expectations
|
|
||||||
|
|
||||||
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.8.0-1.1
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
||||||
|
|
||||||
* Sun Jan 21 2012 Mamoru Tasaka <mtasaka@fedoraproject.org> - 2.8.0-1
|
|
||||||
- 2.8.0
|
|
||||||
|
|
||||||
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6.4-1.1
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
||||||
|
|
||||||
* Tue Jun 7 2011 Mamoru Tasaka <mtasaka@fedoraproject.org> - 2.6.4-1
|
* Tue Jun 7 2011 Mamoru Tasaka <mtasaka@fedoraproject.org> - 2.6.4-1
|
||||||
- 2.6.4
|
- 2.6.4
|
||||||
|
|
||||||
|
|
|
||||||
2
sources
2
sources
|
|
@ -1 +1 @@
|
||||||
b7c76f97b14192a91ee096122a7c99ed rspec-core-2.11.1.gem
|
89f85770f34f6b764383ad987d230905 rspec-core-2.6.4.gem
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue