|
|
@ -1,16 +1,12 @@
|
|
|
|
%global gem_name mocha
|
|
|
|
%global gem_name mocha
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Summary: Mocking and stubbing library
|
|
|
|
Summary: Mocking and stubbing library
|
|
|
|
Name: rubygem-%{gem_name}
|
|
|
|
Name: rubygem-%{gem_name}
|
|
|
|
Version: 1.1.0
|
|
|
|
Version: 1.9.0
|
|
|
|
Release: 9%{?dist}
|
|
|
|
Release: 1%{?dist}
|
|
|
|
License: MIT or Ruby or BSD
|
|
|
|
License: MIT or Ruby or BSD
|
|
|
|
URL: http://gofreerange.com/mocha/docs
|
|
|
|
URL: https://mocha.jamesmead.org
|
|
|
|
Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|
|
|
Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|
|
|
# Fix Ruby 2.2 test suite compatibility.
|
|
|
|
|
|
|
|
# https://github.com/freerange/mocha/commit/a65ea1ed3dce43cbc2cc16b3660afd2cce3db33e
|
|
|
|
|
|
|
|
Patch0: rubygem-mocha-1.1.0-As-of-Ruby-v2.2-nil-is-frozen-so-these-tests-are-irrelevant.patch
|
|
|
|
|
|
|
|
BuildRequires: ruby(release)
|
|
|
|
BuildRequires: ruby(release)
|
|
|
|
BuildRequires: rubygems-devel
|
|
|
|
BuildRequires: rubygems-devel
|
|
|
|
BuildRequires: ruby
|
|
|
|
BuildRequires: ruby
|
|
|
@ -33,26 +29,24 @@ This package contains documentation for %{name}.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -q -c -T
|
|
|
|
%setup -q -n %{gem_name}-%{version}
|
|
|
|
%gem_install -n %{SOURCE0}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pushd .%{gem_instdir}
|
|
|
|
|
|
|
|
%patch0 -p1
|
|
|
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
|
|
|
|
gem build ../%{gem_name}-%{version}.gemspec
|
|
|
|
|
|
|
|
%gem_install
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
mkdir -p %{buildroot}%{gem_dir}
|
|
|
|
mkdir -p %{buildroot}%{gem_dir}
|
|
|
|
cp -pa .%{gem_dir}/* \
|
|
|
|
cp -pa .%{gem_dir}/* \
|
|
|
|
%{buildroot}%{gem_dir}/
|
|
|
|
%{buildroot}%{gem_dir}/
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
pushd .%{gem_instdir}
|
|
|
|
pushd .%{gem_instdir}
|
|
|
|
# Each part of test suite must be run separately, otherwise the test suite fails.
|
|
|
|
# Each part of test suite must be run separately, otherwise the test suite fails.
|
|
|
|
# https://github.com/freerange/mocha/issues/121
|
|
|
|
# https://github.com/freerange/mocha/issues/121
|
|
|
|
ruby -e "Dir.glob('./test/{unit,acceptance}/**/*_test.rb').each {|t| require t}"
|
|
|
|
for kind in unit acceptance integration; do
|
|
|
|
ruby -e "Dir.glob('./test/integration/**/*_test.rb').each {|t| require t}"
|
|
|
|
ruby -e "Dir.glob('./test/$kind/**/*_test.rb').each {|t| require t}"
|
|
|
|
|
|
|
|
done
|
|
|
|
popd
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%files
|
|
|
@ -60,7 +54,7 @@ popd
|
|
|
|
%exclude %{gem_instdir}/init.rb
|
|
|
|
%exclude %{gem_instdir}/init.rb
|
|
|
|
%doc %{gem_instdir}/COPYING.md
|
|
|
|
%doc %{gem_instdir}/COPYING.md
|
|
|
|
%doc %{gem_instdir}/README.md
|
|
|
|
%doc %{gem_instdir}/README.md
|
|
|
|
%doc %{gem_instdir}/MIT-LICENSE.md
|
|
|
|
%license %{gem_instdir}/MIT-LICENSE.md
|
|
|
|
%doc %{gem_instdir}/RELEASE.md
|
|
|
|
%doc %{gem_instdir}/RELEASE.md
|
|
|
|
%dir %{gem_instdir}
|
|
|
|
%dir %{gem_instdir}
|
|
|
|
%{gem_instdir}/bin
|
|
|
|
%{gem_instdir}/bin
|
|
|
@ -76,10 +70,14 @@ popd
|
|
|
|
%{gem_instdir}/mocha.gemspec
|
|
|
|
%{gem_instdir}/mocha.gemspec
|
|
|
|
%{gem_instdir}/gemfiles/
|
|
|
|
%{gem_instdir}/gemfiles/
|
|
|
|
%{gem_instdir}/test/
|
|
|
|
%{gem_instdir}/test/
|
|
|
|
|
|
|
|
%{gem_instdir}/docs/
|
|
|
|
%{gem_instdir}/yard-templates/
|
|
|
|
%{gem_instdir}/yard-templates/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Wed Oct 09 2019 Pavel Valena <pvalena@redhat.com> - 1.9.0-1
|
|
|
|
|
|
|
|
- Update to mocha 1.9.0.
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-9
|
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-9
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|