|
|
|
@ -1,23 +1,25 @@
|
|
|
|
|
%define ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']")
|
|
|
|
|
%define gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
|
|
|
|
|
%define gemname mocha
|
|
|
|
|
%define geminstdir %{gemdir}/gems/%{gemname}-%{version}
|
|
|
|
|
%global gemname mocha
|
|
|
|
|
|
|
|
|
|
%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
|
|
|
|
|
%global geminstdir %{gemdir}/gems/%{gemname}-%{version}
|
|
|
|
|
|
|
|
|
|
Summary: Mocking and stubbing library
|
|
|
|
|
Name: rubygem-%{gemname}
|
|
|
|
|
Version: 0.9.8
|
|
|
|
|
Release: 2%{?dist}
|
|
|
|
|
Version: 0.10.0
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Group: Development/Languages
|
|
|
|
|
License: MIT and Ruby
|
|
|
|
|
URL: http://mocha.rubyforge.org
|
|
|
|
|
Source0: http://gems.rubyforge.org/gems/%{gemname}-%{version}.gem
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
Requires: rubygems
|
|
|
|
|
Source0: http://rubygems.org/gems/%{gemname}-%{version}.gem
|
|
|
|
|
Requires: ruby(abi) = 1.8
|
|
|
|
|
Requires: rubygem(rake)
|
|
|
|
|
BuildRequires: rubygems
|
|
|
|
|
BuildRequires: rubygem(rake)
|
|
|
|
|
BuildRequires: zip
|
|
|
|
|
Requires: ruby(rubygems)
|
|
|
|
|
Requires: ruby
|
|
|
|
|
Requires: rubygem(metaclass)
|
|
|
|
|
BuildRequires: ruby(abi) = 1.8
|
|
|
|
|
BuildRequires: ruby(rubygems)
|
|
|
|
|
BuildRequires: ruby
|
|
|
|
|
BuildRequires: rubygem(metaclass)
|
|
|
|
|
BuildRequires: rubygem(introspection)
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
Provides: rubygem(%{gemname}) = %{version}
|
|
|
|
|
|
|
|
|
@ -28,8 +30,8 @@ and stubbing of methods on real (non-mock) classes.
|
|
|
|
|
%package doc
|
|
|
|
|
Summary: Documentation for %{name}
|
|
|
|
|
Group: Documentation
|
|
|
|
|
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
|
This package contains documentation for %{name}.
|
|
|
|
@ -45,26 +47,26 @@ mkdir -p %{buildroot}%{gemdir}
|
|
|
|
|
gem install --local --install-dir %{buildroot}%{gemdir} \
|
|
|
|
|
--force --rdoc %{SOURCE0}
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
cd %{buildroot}%{geminstdir}
|
|
|
|
|
rake test
|
|
|
|
|
pushd %{buildroot}%{geminstdir}
|
|
|
|
|
ruby -rubygems -e "Dir.glob('test/**/*_test.rb').each {|t| require t}"
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-, root, root, -)
|
|
|
|
|
%doc %{geminstdir}/COPYING
|
|
|
|
|
%doc %{geminstdir}/README
|
|
|
|
|
%doc %{geminstdir}/MIT-LICENSE
|
|
|
|
|
%doc %{geminstdir}/RELEASE
|
|
|
|
|
%dir %{geminstdir}/
|
|
|
|
|
%exclude %{geminstdir}/.gemtest
|
|
|
|
|
%exclude %{geminstdir}/init.rb
|
|
|
|
|
%exclude %{geminstdir}/mocha.gemspec
|
|
|
|
|
%doc %{geminstdir}/COPYING.rdoc
|
|
|
|
|
%doc %{geminstdir}/README.rdoc
|
|
|
|
|
%doc %{geminstdir}/MIT-LICENSE.rdoc
|
|
|
|
|
%doc %{geminstdir}/RELEASE.rdoc
|
|
|
|
|
%dir %{geminstdir}
|
|
|
|
|
%{geminstdir}/lib
|
|
|
|
|
%{gemdir}/cache/%{gemname}-%{version}.gem
|
|
|
|
|
%{gemdir}/specifications/%{gemname}-%{version}.gemspec
|
|
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
|
%defattr(-, root, root, -)
|
|
|
|
|
%{geminstdir}/Gemfile*
|
|
|
|
|
%{gemdir}/doc/%{gemname}-%{version}
|
|
|
|
|
%{geminstdir}/Rakefile
|
|
|
|
|
%{geminstdir}/examples
|
|
|
|
@ -72,6 +74,9 @@ rake test
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Mon Oct 03 2011 Vít Ondruch <vondruch@redhat.com> - 0.10.0-1
|
|
|
|
|
- Updated to the Mocha 0.10.0.
|
|
|
|
|
|
|
|
|
|
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.8-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|