Bootstrap round.
This commit is contained in:
parent
d2c79226ae
commit
2277cdf426
@ -7,30 +7,29 @@
|
||||
|
||||
%global gem_name rspec-mocks
|
||||
|
||||
%global rubyabi 1.9.1
|
||||
|
||||
# %%check section needs rspec-core, however rspec-core depends on rspec-mocks
|
||||
# runtime part of rspec-mocks does not depend on rspec-core
|
||||
%global need_bootstrap_set 0
|
||||
%global need_bootstrap_set 1
|
||||
|
||||
%{!?need_bootstrap: %global need_bootstrap %{need_bootstrap_set}}
|
||||
|
||||
Summary: Rspec-2 doubles (mocks and stubs)
|
||||
Name: rubygem-%{gem_name}
|
||||
Version: %{majorver}
|
||||
Release: %{?preminorver:0.}%{fedorarel}%{?preminorver:%{rpmminorver}}%{?dist}
|
||||
Release: %{?preminorver:0.}%{fedorarel}%{?preminorver:%{rpmminorver}}%{?dist}.1
|
||||
|
||||
Group: Development/Languages
|
||||
License: MIT
|
||||
URL: http://github.com/rspec/rspec-mocks
|
||||
Source0: http://rubygems.org/gems/%{gem_name}-%{fullver}.gem
|
||||
|
||||
BuildRequires: ruby(abi) = %{rubyabi}
|
||||
BuildRequires: ruby(release)
|
||||
BuildRequires: rubygems-devel
|
||||
%if 0%{?need_bootstrap} < 1
|
||||
BuildRequires: rubygem(rspec)
|
||||
%endif
|
||||
Requires: ruby(abi) = %{rubyabi}
|
||||
Requires: ruby(release)
|
||||
Requires: rubygems
|
||||
Provides: rubygem(%{gem_name}) = %{version}-%{release}
|
||||
BuildArch: noarch
|
||||
@ -65,14 +64,7 @@ popd
|
||||
rm -rf tmpunpackdir
|
||||
|
||||
%build
|
||||
mkdir -p .%{gem_dir}
|
||||
gem install \
|
||||
-V \
|
||||
--local \
|
||||
--install-dir .%{gem_dir} \
|
||||
--force \
|
||||
--rdoc \
|
||||
%{gem_name}-%{version}.gem
|
||||
%gem_install
|
||||
|
||||
#chmod 0644 ./%{gem_cache}
|
||||
|
||||
@ -107,6 +99,9 @@ ruby -rubygems -Ilib/ -S rspec spec/
|
||||
%exclude %{gem_instdir}/spec/
|
||||
|
||||
%changelog
|
||||
* Wed Feb 20 2013 Vít Ondruch <vondruch@redhat.com> - 2.12.2-2
|
||||
- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
|
||||
|
||||
* Mon Feb 4 2013 Mamoru TASAKA <mtasaka@fedoraproject.org> - 2.12.2-1
|
||||
- 2.12.2
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user