Once disable tests
This commit is contained in:
Mamoru TASAKA 2017-05-06 22:15:41 +09:00
parent 4b99dec2b6
commit 3ec1cc766d
3 changed files with 11 additions and 18 deletions

1
.gitignore vendored
View File

@ -26,3 +26,4 @@
/rubygem-rspec-mocks-3.4.1-full.tar.gz /rubygem-rspec-mocks-3.4.1-full.tar.gz
/rspec-mocks-3.5.0.gem /rspec-mocks-3.5.0.gem
/rubygem-rspec-mocks-3.5.0-full.tar.gz /rubygem-rspec-mocks-3.5.0-full.tar.gz
/rspec-mocks-3.6.0.gem

View File

@ -1,18 +1,18 @@
%global majorver 3.5.0 %global majorver 3.6.0
#%%global preminorver .rc6 #%%global preminorver .rc6
%global rpmminorver .%(echo %preminorver | sed -e 's|^\\.\\.*||') %global rpmminorver .%(echo %preminorver | sed -e 's|^\\.\\.*||')
%global fullver %{majorver}%{?preminorver} %global fullver %{majorver}%{?preminorver}
%global fedorarel 2 %global fedorarel 0.1
%global gem_name rspec-mocks %global gem_name rspec-mocks
%global need_bootstrap_set 0 %global need_bootstrap_set 1
Summary: RSpec's 'test double' framework (mocks and stubs) Summary: RSpec's 'test double' framework (mocks and stubs)
Name: rubygem-%{gem_name} Name: rubygem-%{gem_name}
Version: %{majorver} Version: %{majorver}
Release: %{?preminorver:0.}%{fedorarel}%{?preminorver:%{rpmminorver}}%{?dist}.1 Release: %{?preminorver:0.}%{fedorarel}%{?preminorver:%{rpmminorver}}%{?dist}
Group: Development/Languages Group: Development/Languages
License: MIT License: MIT
@ -21,9 +21,6 @@ Source0: https://rubygems.org/gems/%{gem_name}-%{fullver}.gem
# %%{SOURCE2} %%{name} %%{version} # %%{SOURCE2} %%{name} %%{version}
Source1: rubygem-%{gem_name}-%{version}-full.tar.gz Source1: rubygem-%{gem_name}-%{version}-full.tar.gz
Source2: rspec-related-create-full-tarball.sh Source2: rspec-related-create-full-tarball.sh
# Fix Ruby 2.4 compatibility.
# https://github.com/rspec/rspec-mocks/commit/1f7f4175e4f185d1a989dca0e8cd8bc6e6d4555f
Patch0: rspec-mocks-3.5.0-Address-Ruby-2.4-Fixnum-changes.patch
#BuildRequires: ruby(release) #BuildRequires: ruby(release)
BuildRequires: rubygems-devel BuildRequires: rubygems-devel
@ -50,14 +47,10 @@ This package contains documentation for %{name}.
%prep %prep
gem unpack %{SOURCE0} gem unpack %{SOURCE0}
%setup -q -D -T -n %{gem_name}-%{version} -a 1 %setup -q -D -T -n %{gem_name}-%{version} -b 1
gem specification %{SOURCE0} -l --ruby > %{gem_name}.gemspec gem specification %{SOURCE0} -l --ruby > %{gem_name}.gemspec
pushd %{gem_name}-%{version}
%patch0 -p1
popd
%build %build
gem build %{gem_name}.gemspec gem build %{gem_name}.gemspec
%gem_install %gem_install
@ -72,13 +65,9 @@ rm -f %{buildroot}%{gem_instdir}/{.document,.yardopts}
%if 0%{?need_bootstrap_set} < 1 %if 0%{?need_bootstrap_set} < 1
%check %check
pushd %{gem_name}-%{version}
# library_wide_checks.rb needs UTF-8 # library_wide_checks.rb needs UTF-8
LANG=en_US.utf8 LANG=en_US.utf8
ruby -rubygems -Ilib/ -S rspec spec/ ruby -rubygems -Ilib/ -S rspec spec/
popd
%endif %endif
%files %files
@ -97,6 +86,10 @@ popd
%{gem_docdir} %{gem_docdir}
%changelog %changelog
* Sat May 6 2017 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.6.0-0.1
- 3.6.0
- Once disable tests
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.0-2.1 * Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.0-2.1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild

View File

@ -1,2 +1 @@
56c920c147a369c58d2f9367c9797714 rspec-mocks-3.5.0.gem SHA512 (rspec-mocks-3.6.0.gem) = de78b0df9dc769773176ab0991a3890980ae981aae153ad76830db3941f0e670080ed33f8fa1aac94d9fecb9c55b1804abfb0eac096641bdf9d5ec4677485480
c59ea9dd2062606fd648adf4c899a128 rubygem-rspec-mocks-3.5.0-full.tar.gz