|
|
|
@ -1,27 +1,26 @@
|
|
|
|
|
%global gemname mocha
|
|
|
|
|
%global gem_name 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}
|
|
|
|
|
Name: rubygem-%{gem_name}
|
|
|
|
|
Version: 0.10.0
|
|
|
|
|
Release: 2%{?dist}
|
|
|
|
|
Release: 3%{?dist}
|
|
|
|
|
Group: Development/Languages
|
|
|
|
|
License: MIT and Ruby
|
|
|
|
|
URL: http://mocha.rubyforge.org
|
|
|
|
|
Source0: http://rubygems.org/gems/%{gemname}-%{version}.gem
|
|
|
|
|
Requires: ruby(abi) = 1.8
|
|
|
|
|
Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|
|
|
|
Requires: ruby(abi) = 1.9.1
|
|
|
|
|
Requires: ruby(rubygems)
|
|
|
|
|
Requires: ruby
|
|
|
|
|
Requires: rubygem(metaclass)
|
|
|
|
|
BuildRequires: ruby(abi) = 1.8
|
|
|
|
|
BuildRequires: ruby(rubygems)
|
|
|
|
|
BuildRequires: ruby(abi) = 1.9.1
|
|
|
|
|
BuildRequires: rubygems-devel
|
|
|
|
|
BuildRequires: ruby
|
|
|
|
|
BuildRequires: rubygem(metaclass)
|
|
|
|
|
BuildRequires: rubygem(introspection)
|
|
|
|
|
BuildRequires: rubygem(minitest)
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
Provides: rubygem(%{gemname}) = %{version}
|
|
|
|
|
Provides: rubygem(%{gem_name}) = %{version}
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Mocking and stubbing library with JMock/SchMock syntax, which allows mocking
|
|
|
|
@ -43,37 +42,42 @@ This package contains documentation for %{name}.
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
mkdir -p %{buildroot}%{gemdir}
|
|
|
|
|
gem install --local --install-dir %{buildroot}%{gemdir} \
|
|
|
|
|
mkdir -p %{buildroot}%{gem_dir}
|
|
|
|
|
gem install --local --install-dir %{buildroot}%{gem_dir} \
|
|
|
|
|
--force --rdoc %{SOURCE0}
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
pushd %{buildroot}%{geminstdir}
|
|
|
|
|
ruby -rubygems -e "Dir.glob('test/**/*_test.rb').each {|t| require t}"
|
|
|
|
|
pushd %{buildroot}%{gem_instdir}
|
|
|
|
|
# TODO: 6 tests fail, reported upstream: https://github.com/floehopper/mocha/issues/41
|
|
|
|
|
ruby -e "Dir.glob('./test/**/*_test.rb').each {|t| require t}" | \
|
|
|
|
|
grep "660 tests, 826 assertions, 6 failures, 0 errors, 0 skips"
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%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
|
|
|
|
|
%exclude %{gem_instdir}/.gemtest
|
|
|
|
|
%exclude %{gem_instdir}/init.rb
|
|
|
|
|
%exclude %{gem_instdir}/mocha.gemspec
|
|
|
|
|
%doc %{gem_instdir}/COPYING.rdoc
|
|
|
|
|
%doc %{gem_instdir}/README.rdoc
|
|
|
|
|
%doc %{gem_instdir}/MIT-LICENSE.rdoc
|
|
|
|
|
%doc %{gem_instdir}/RELEASE.rdoc
|
|
|
|
|
%dir %{gem_instdir}
|
|
|
|
|
%{gem_libdir}
|
|
|
|
|
%{gem_cache}
|
|
|
|
|
%{gem_spec}
|
|
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
|
%{geminstdir}/Gemfile*
|
|
|
|
|
%{gemdir}/doc/%{gemname}-%{version}
|
|
|
|
|
%{geminstdir}/Rakefile
|
|
|
|
|
%{geminstdir}/examples
|
|
|
|
|
%{geminstdir}/test
|
|
|
|
|
%{gem_instdir}/Gemfile*
|
|
|
|
|
%{gem_docdir}
|
|
|
|
|
%{gem_instdir}/Rakefile
|
|
|
|
|
%{gem_instdir}/examples
|
|
|
|
|
%{gem_instdir}/test
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Thu Jan 19 2012 Vít Ondruch <vondruch@redhat.com> - 0.10.0-3
|
|
|
|
|
- Rebuild for Ruby 1.9.3.
|
|
|
|
|
|
|
|
|
|
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.0-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|