| |
@@ -1,16 +1,12 @@
|
| |
%global gem_name mocha
|
| |
|
| |
-
|
| |
Summary: Mocking and stubbing library
|
| |
Name: rubygem-%{gem_name}
|
| |
- Version: 1.1.0
|
| |
- Release: 9%{?dist}
|
| |
+ Version: 1.9.0
|
| |
+ Release: 1%{?dist}
|
| |
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
|
| |
- # 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: rubygems-devel
|
| |
BuildRequires: ruby
|
| |
@@ -33,26 +29,24 @@
|
| |
|
| |
|
| |
%prep
|
| |
- %setup -q -c -T
|
| |
- %gem_install -n %{SOURCE0}
|
| |
-
|
| |
- pushd .%{gem_instdir}
|
| |
- %patch0 -p1
|
| |
- popd
|
| |
+ %setup -q -n %{gem_name}-%{version}
|
| |
|
| |
%build
|
| |
+ gem build ../%{gem_name}-%{version}.gemspec
|
| |
+ %gem_install
|
| |
|
| |
%install
|
| |
mkdir -p %{buildroot}%{gem_dir}
|
| |
cp -pa .%{gem_dir}/* \
|
| |
%{buildroot}%{gem_dir}/
|
| |
|
| |
- %check
|
| |
+ %check
|
| |
pushd .%{gem_instdir}
|
| |
# Each part of test suite must be run separately, otherwise the test suite fails.
|
| |
# https://github.com/freerange/mocha/issues/121
|
| |
- ruby -e "Dir.glob('./test/{unit,acceptance}/**/*_test.rb').each {|t| require t}"
|
| |
- ruby -e "Dir.glob('./test/integration/**/*_test.rb').each {|t| require t}"
|
| |
+ for kind in unit acceptance integration; do
|
| |
+ ruby -e "Dir.glob('./test/$kind/**/*_test.rb').each {|t| require t}"
|
| |
+ done
|
| |
popd
|
| |
|
| |
%files
|
| |
@@ -60,7 +54,7 @@
|
| |
%exclude %{gem_instdir}/init.rb
|
| |
%doc %{gem_instdir}/COPYING.md
|
| |
%doc %{gem_instdir}/README.md
|
| |
- %doc %{gem_instdir}/MIT-LICENSE.md
|
| |
+ %license %{gem_instdir}/MIT-LICENSE.md
|
| |
%doc %{gem_instdir}/RELEASE.md
|
| |
%dir %{gem_instdir}
|
| |
%{gem_instdir}/bin
|
| |
@@ -76,10 +70,14 @@
|
| |
%{gem_instdir}/mocha.gemspec
|
| |
%{gem_instdir}/gemfiles/
|
| |
%{gem_instdir}/test/
|
| |
+ %{gem_instdir}/docs/
|
| |
%{gem_instdir}/yard-templates/
|
| |
|
| |
|
| |
%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
|
| |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
| |
|
| |
also enhance .spec and .gitignore files.
To have latest mocha gem in Fedora. Also needed for
rubygem-redis
update.Up-to-date Koji scratch-build:
https://koji.fedoraproject.org/koji/taskinfo?taskID=38180259
Up-to-date Copr build:
https://copr.fedorainfracloud.org/coprs/build/1051635
Checks:
- Syntax check: ok
- Tests: ok
- Dependent packages: ok
- Smoke test: ok
- rpmlint: ok