Compare commits

...
Sign in to create a new pull request.

2 commits

Author SHA1 Message Date
Mamoru Tasaka
0132fd0d9d Actually add patch 2011-03-07 02:12:52 +09:00
Mamoru Tasaka
c90b80f3e3 Update from Marek Goldmann <mgoldman@redhat.com>
Updated to 1.3.1
Patch to make it work with Rake >= 0.9.0.beta.0
2011-03-07 02:11:41 +09:00
4 changed files with 43 additions and 9 deletions

1
.gitignore vendored
View file

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

View file

@ -0,0 +1,16 @@
--- 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

@ -5,12 +5,13 @@
Summary: Behaviour driven development (BDD) framework for Ruby
Name: rubygem-%{gemname}
Version: 1.3.0
Release: 3%{?dist}
Version: 1.3.1
Release: 1%{?dist}
Group: Development/Languages
License: GPLv2+ or Ruby
URL: http://rspec.info
Source0: http://gems.rubyforge.org/gems/%{gemname}-%{version}.gem
Patch0: rubygem-rspec-1.3.1-RakeFileUtils_renamed_to_FileUtilsExt.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: rubygems, ruby(abi) = 1.8
BuildRequires: rubygems, ruby
@ -22,17 +23,28 @@ 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
%build
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{gemdir}
gem install --local --install-dir %{buildroot}%{gemdir} \
--force --rdoc %{SOURCE0}
mkdir -p %{buildroot}/%{_bindir}
mv %{buildroot}%{gemdir}/bin/* %{buildroot}/%{_bindir}
rmdir %{buildroot}%{gemdir}/bin
cp -a .%{_prefix}/* %{buildroot}%{_prefix}/
find %{buildroot}%{geminstdir}/bin -type f | xargs chmod a+x
%clean
@ -49,6 +61,11 @@ rm -rf %{buildroot}
%changelog
* Mon Mar 09 2011 Mamoru Tasaka <mtasaka@fedoraproject.org> - 1.3.1-1
- Update from Marek Goldmann <mgoldman@redhat.com>
- Updated to 1.3.1
- Patch to make it work with Rake >= 0.9.0.beta.0
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild

View file

@ -1 +1 @@
88f8949ace3a28ef5474838856b60649 rspec-1.3.0.gem
e634204e349db42b6efdec1869b1a6ef rspec-1.3.1.gem