Update to RSpec 2.8.0.
This commit is contained in:
parent
4d0533c8c9
commit
f9eda22c1b
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
|||||||
rspec-1.3.0.gem
|
rspec-1.3.0.gem
|
||||||
/rspec-1.3.1.gem
|
/rspec-1.3.1.gem
|
||||||
|
/rspec-2.8.0.gem
|
||||||
|
@ -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
|
|
@ -1,66 +1,53 @@
|
|||||||
%global ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']")
|
%global gem_name rspec
|
||||||
%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
|
|
||||||
%global gemname rspec
|
|
||||||
%global geminstdir %{gemdir}/gems/%{gemname}-%{version}
|
|
||||||
|
|
||||||
Summary: Behaviour driven development (BDD) framework for Ruby
|
Summary: Behaviour driven development (BDD) framework for Ruby
|
||||||
Name: rubygem-%{gemname}
|
Name: rubygem-%{gem_name}
|
||||||
Version: 1.3.1
|
Version: 2.8.0
|
||||||
Release: 2%{?dist}
|
Release: 1%{?dist}
|
||||||
Group: Development/Languages
|
Group: Development/Languages
|
||||||
License: GPLv2+ or Ruby
|
License: MIT
|
||||||
URL: http://rspec.info
|
URL: http://rspec.info
|
||||||
Source0: http://gems.rubyforge.org/gems/%{gemname}-%{version}.gem
|
Source0: http://rubygems.org/downloads/%{gem_name}-%{version}.gem
|
||||||
Patch0: rubygem-rspec-1.3.1-RakeFileUtils_renamed_to_FileUtilsExt.patch
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
Requires: rubygems, ruby(abi) = 1.8
|
Requires: rubygems
|
||||||
BuildRequires: rubygems, ruby
|
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
|
BuildArch: noarch
|
||||||
Provides: rubygem(%{gemname}) = %{version}
|
Provides: rubygem(%{gem_name}) = %{version}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
RSpec is a behaviour driven development (BDD) framework for Ruby.
|
RSpec is a behaviour driven development (BDD) framework for Ruby.
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -c -T
|
%setup -q -c -T
|
||||||
gem install \
|
mkdir -p .%{gem_dir}
|
||||||
-V \
|
gem install --local --install-dir .%{gem_dir} \
|
||||||
--install-dir $(pwd)%{gemdir} \
|
--force %{SOURCE0}
|
||||||
--bindir $(pwd)%{_bindir} \
|
|
||||||
--force \
|
|
||||||
--rdoc \
|
|
||||||
%{SOURCE0}
|
|
||||||
|
|
||||||
|
|
||||||
pushd .%{geminstdir}
|
|
||||||
%patch0 -p1
|
|
||||||
popd
|
|
||||||
|
|
||||||
find . -type f | xargs chmod ugo+r
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
mkdir -p %{buildroot}%{gemdir}
|
|
||||||
cp -a .%{_prefix}/* %{buildroot}%{_prefix}/
|
|
||||||
|
|
||||||
find %{buildroot}%{geminstdir}/bin -type f | xargs chmod a+x
|
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
|
mkdir -p %{buildroot}%{gem_dir}
|
||||||
|
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-, root, root, -)
|
%doc %{gem_docdir}
|
||||||
%{_bindir}/*
|
%dir %{gem_instdir}
|
||||||
%{gemdir}/gems/%{gemname}-%{version}/
|
%{gem_instdir}/lib
|
||||||
%doc %{gemdir}/doc/%{gemname}-%{version}
|
%{gem_instdir}/License.txt
|
||||||
#%doc %{geminstdir}/*.txt
|
%{gem_instdir}/README.markdown
|
||||||
%{gemdir}/cache/%{gemname}-%{version}.gem
|
%exclude %{gem_cache}
|
||||||
%{gemdir}/specifications/%{gemname}-%{version}.gemspec
|
%{gem_spec}
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%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
|
* 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
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user