Compare commits
1 commit
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
53b5d35e71 |
2 changed files with 19 additions and 21 deletions
|
|
@ -1,5 +1,5 @@
|
|||
%global gemdir %{gem_dir}
|
||||
%global majorver 2.11.3
|
||||
%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
|
||||
%global majorver 2.6.0
|
||||
#%%global preminorver .rc6
|
||||
%global rpmminorver .%(echo %preminorver | sed -e 's|^\\.\\.*||')
|
||||
%global fullver %{majorver}%{?preminorver}
|
||||
|
|
@ -7,14 +7,16 @@
|
|||
%global fedorarel 1
|
||||
|
||||
%global gemname rspec-mocks
|
||||
%global gem_name %{gemname}
|
||||
%global geminstdir %{gem_instdir}
|
||||
%global geminstdir %{gemdir}/gems/%{gemname}-%{fullver}
|
||||
|
||||
%global rubyabi 1.9.1
|
||||
%global rubyabi 1.8
|
||||
|
||||
# %%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 1
|
||||
%if 0%{?fedora} >= 15
|
||||
%global need_bootstrap_set 0
|
||||
%endif
|
||||
|
||||
%{!?need_bootstrap: %global need_bootstrap %{need_bootstrap_set}}
|
||||
|
||||
|
|
@ -29,9 +31,9 @@ URL: http://github.com/rspec/rspec-mocks
|
|||
Source0: http://rubygems.org/gems/%{gemname}-%{fullver}.gem
|
||||
|
||||
BuildRequires: ruby(abi) = %{rubyabi}
|
||||
BuildRequires: rubygems-devel
|
||||
BuildRequires: rubygems
|
||||
%if 0%{?need_bootstrap} < 1
|
||||
BuildRequires: rubygem(rspec)
|
||||
BuildRequires: rubygem(rspec-core)
|
||||
%endif
|
||||
Requires: ruby(abi) = %{rubyabi}
|
||||
Requires: rubygems
|
||||
|
|
@ -72,7 +74,7 @@ mkdir -p %{buildroot}%{gemdir}
|
|||
cp -a .%{gemdir}/* %{buildroot}%{gemdir}/
|
||||
|
||||
# cleanups
|
||||
rm -f %{buildroot}%{geminstdir}/{.document,.gitignore,.travis.yml,.yardopts}
|
||||
rm -f %{buildroot}%{geminstdir}/{.document,.gitignore,.travis.yml}
|
||||
|
||||
%if 0%{?need_bootstrap} < 1
|
||||
%check
|
||||
|
|
@ -95,22 +97,18 @@ ruby -rubygems -Ilib/ -S rspec spec/
|
|||
%files doc
|
||||
%defattr(-,root,root,-)
|
||||
%{gemdir}/doc/%{gemname}-%{fullver}
|
||||
%{geminstdir}/.autotest
|
||||
%{geminstdir}/Gemfile
|
||||
%{geminstdir}/Guardfile
|
||||
%{geminstdir}/Rakefile
|
||||
%{geminstdir}/cucumber.yml
|
||||
%{geminstdir}/%{gemname}.gemspec
|
||||
%{geminstdir}/specs.watchr
|
||||
%{geminstdir}/autotest/
|
||||
%{geminstdir}/features/
|
||||
%{geminstdir}/spec/
|
||||
|
||||
%changelog
|
||||
* Thu Oct 11 2012 Mamoru Tasaka <mtasaka@fedoraproject.org> - 2.11.3-1
|
||||
- 2.11.3
|
||||
|
||||
* 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.0-1.1
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
||||
|
||||
* Mon May 16 2011 Mamoru Tasaka <mtasaka@fedoraproject.org> - 2.6.0-1
|
||||
- 2.6.0
|
||||
|
||||
|
|
|
|||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
bab13a8c61b89eb29a990ac1d769e129 rspec-mocks-2.11.3.gem
|
||||
c09537d81cb3034eab20b3277efc6ede rspec-mocks-2.6.0.gem
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue