Update to RSpec 2.8.0.

This commit is contained in:
Vít Ondruch 2012-03-05 12:49:11 +01:00
parent 4d0533c8c9
commit f9eda22c1b
4 changed files with 31 additions and 59 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
rspec-1.3.0.gem
/rspec-1.3.1.gem
/rspec-2.8.0.gem

View File

@ -1,16 +0,0 @@
--- rspec-1.3.1/lib/spec/rake/spectask.rb.debug 2011-03-07 01:37:11.000000000 +0900
+++ rspec-1.3.1/lib/spec/rake/spectask.rb 2011-03-07 01:53:58.000000000 +0900
@@ -150,7 +150,12 @@
desc "Run specs" + (rcov ? " using RCov" : "")
end
task name do
- RakeFileUtils.verbose(verbose) do
+ if defined? RakeFileUtils
+ fileutils_module = RakeFileUtils
+ else
+ fileutils_module = ::Rake::FileUtilsExt
+ end
+ fileutils_module.verbose(verbose) do
unless spec_file_list.empty?
# ruby [ruby_opts] -Ilib -S rcov [rcov_opts] bin/spec -- examples [spec_opts]
# or

View File

@ -1,66 +1,53 @@
%global ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']")
%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
%global gemname rspec
%global geminstdir %{gemdir}/gems/%{gemname}-%{version}
%global gem_name rspec
Summary: Behaviour driven development (BDD) framework for Ruby
Name: rubygem-%{gemname}
Version: 1.3.1
Release: 2%{?dist}
Name: rubygem-%{gem_name}
Version: 2.8.0
Release: 1%{?dist}
Group: Development/Languages
License: GPLv2+ or Ruby
License: MIT
URL: http://rspec.info
Source0: http://gems.rubyforge.org/gems/%{gemname}-%{version}.gem
Patch0: rubygem-rspec-1.3.1-RakeFileUtils_renamed_to_FileUtilsExt.patch
Source0: http://rubygems.org/downloads/%{gem_name}-%{version}.gem
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: rubygems, ruby(abi) = 1.8
BuildRequires: rubygems, ruby
Requires: rubygems
Requires: rubygem(rspec-core) = %{version}
Requires: rubygem(rspec-mocks) = %{version}
Requires: rubygem(rspec-expectations) = %{version}
Requires: ruby(abi) = 1.9.1
BuildRequires: rubygems-devel
BuildRequires: ruby(abi) = 1.9.1
BuildArch: noarch
Provides: rubygem(%{gemname}) = %{version}
Provides: rubygem(%{gem_name}) = %{version}
%description
RSpec is a behaviour driven development (BDD) framework for Ruby.
%prep
%setup -q -c -T
gem install \
-V \
--install-dir $(pwd)%{gemdir} \
--bindir $(pwd)%{_bindir} \
--force \
--rdoc \
%{SOURCE0}
pushd .%{geminstdir}
%patch0 -p1
popd
find . -type f | xargs chmod ugo+r
mkdir -p .%{gem_dir}
gem install --local --install-dir .%{gem_dir} \
--force %{SOURCE0}
%build
%install
mkdir -p %{buildroot}%{gemdir}
cp -a .%{_prefix}/* %{buildroot}%{_prefix}/
find %{buildroot}%{geminstdir}/bin -type f | xargs chmod a+x
%clean
rm -rf %{buildroot}
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
%files
%defattr(-, root, root, -)
%{_bindir}/*
%{gemdir}/gems/%{gemname}-%{version}/
%doc %{gemdir}/doc/%{gemname}-%{version}
#%doc %{geminstdir}/*.txt
%{gemdir}/cache/%{gemname}-%{version}.gem
%{gemdir}/specifications/%{gemname}-%{version}.gemspec
%doc %{gem_docdir}
%dir %{gem_instdir}
%{gem_instdir}/lib
%{gem_instdir}/License.txt
%{gem_instdir}/README.markdown
%exclude %{gem_cache}
%{gem_spec}
%changelog
* Mon Mar 05 2012 Vít Ondruch <bkabrda@redhat.com> - 2.8.0-1
- Update to RSpec 2.8.0.
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild

View File

@ -1 +1 @@
e634204e349db42b6efdec1869b1a6ef rspec-1.3.1.gem
8c6752b4c955e13c506490c7f838c067 rspec-2.8.0.gem