- Once disable tests
This commit is contained in:
Mamoru TASAKA 2014-11-10 16:37:38 +09:00
parent c5afe6d9ee
commit 086dd2faad
3 changed files with 34 additions and 38 deletions

2
.gitignore vendored
View File

@ -12,3 +12,5 @@
/rspec-mocks-2.14.4.gem
/rspec-mocks-2.14.5.gem
/rspec-mocks-2.14.6.gem
/rspec-mocks-3.1.3.gem
/rubygem-rspec-mocks-3.1.3-full.tar.gz

View File

@ -1,4 +1,4 @@
%global majorver 2.14.6
%global majorver 3.1.3
#%%global preminorver .rc6
%global rpmminorver .%(echo %preminorver | sed -e 's|^\\.\\.*||')
%global fullver %{majorver}%{?preminorver}
@ -7,31 +7,26 @@
%global gem_name rspec-mocks
# %%check section needs rspec-core, however rspec-core depends on rspec-mocks
# runtime part of rspec-mocks does not depend on rspec-core
%global need_bootstrap_set 0
%{!?need_bootstrap: %global need_bootstrap %{need_bootstrap_set}}
%global need_bootstrap_set 1
Summary: Rspec-2 doubles (mocks and stubs)
Name: rubygem-%{gem_name}
Version: %{majorver}
Release: %{?preminorver:0.}%{fedorarel}%{?preminorver:%{rpmminorver}}%{?dist}.1
Release: %{?preminorver:0.}%{fedorarel}%{?preminorver:%{rpmminorver}}%{?dist}
Group: Development/Languages
License: MIT
URL: http://github.com/rspec/rspec-mocks
Source0: http://rubygems.org/gems/%{gem_name}-%{fullver}.gem
Source0: https://rubygems.org/gems/%{gem_name}-%{fullver}.gem
# %%{SOURCE2} %%{name} %%{version}
Source1: rubygem-%{gem_name}-%{version}-full.tar.gz
Source2: rspec-related-create-full-tarball.sh
BuildRequires: ruby(release)
BuildRequires: rubygems-devel
%if 0%{?need_bootstrap} < 1
%if 0%{?need_bootstrap_set} < 1
BuildRequires: rubygem(rspec)
%endif
Requires: ruby(release)
Requires: rubygems
Provides: rubygem(%{gem_name}) = %{version}-%{release}
BuildArch: noarch
%description
@ -48,44 +43,35 @@ This package contains documentation for %{name}.
%prep
%setup -q -c -T
TOPDIR=$(pwd)
mkdir tmpunpackdir
pushd tmpunpackdir
gem unpack %{SOURCE0}
cd %{gem_name}-%{version}
gem specification -l --ruby %{SOURCE0} > %{gem_name}.gemspec
gem build %{gem_name}.gemspec
mv %{gem_name}-%{version}.gem $TOPDIR
popd
rm -rf tmpunpackdir
%setup -q -D -T -n %{gem_name}-%{version} -a 1
gem specification %{SOURCE0} -l --ruby > %{gem_name}.gemspec
%build
gem build %{gem_name}.gemspec
%gem_install
#chmod 0644 ./%{gem_cache}
%install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}/
cp -a .%{gem_dir}/* \
%{buildroot}%{gem_dir}/
# cleanups
rm -f %{buildroot}%{gem_instdir}/{.document,.gitignore,.travis.yml,.yardopts}
rm -f %{buildroot}%{gem_instdir}/{.document,.yardopts}
%if 0%{?need_bootstrap} < 1
%if 0%{?need_bootstrap_set} < 1
%check
pushd .%{gem_instdir}
pushd %{gem_name}-%{version}
ruby -rubygems -Ilib/ -S rspec spec/
popd
%endif
%files
%defattr(-,root,root,-)
%dir %{gem_instdir}
%doc %{gem_instdir}/License.txt
%license %{gem_instdir}/License.txt
%doc %{gem_instdir}/*.md
%{gem_instdir}/lib/
@ -93,12 +79,19 @@ ruby -rubygems -Ilib/ -S rspec spec/
%{gem_spec}
%files doc
%defattr(-,root,root,-)
%{gem_docdir}
%{gem_instdir}/features/
%exclude %{gem_instdir}/spec/
%changelog
* Mon Nov 10 2014 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.1.3-1
- 3.1.3
- Once disable tests
* Fri Aug 15 2014 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.0.4-1
- 3.0.4
* Thu Aug 14 2014 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.0.3-1
- 3.0.3
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.14.6-1.1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
@ -147,7 +140,7 @@ ruby -rubygems -Ilib/ -S rspec spec/
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.8.0-1.1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Sun Jan 21 2012 Mamoru Tasaka <mtasaka@fedoraproject.org> - 2.8.0-1
* Sun Jan 22 2012 Mamoru Tasaka <mtasaka@fedoraproject.org> - 2.8.0-1
- 2.8.0
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6.0-1.1

View File

@ -1 +1,2 @@
4b94f26a5afe4fbb6c98fb816dcec43c rspec-mocks-2.14.6.gem
3e42e301370ca54d0113024e0e93ed92 rspec-mocks-3.1.3.gem
96e8c124675a0611c35f8bc617c31763 rubygem-rspec-mocks-3.1.3-full.tar.gz