d314fe
%global	majorver	3.4.1
Mamoru Tasaka 764f84
#%%global	preminorver	.rc6
Mamoru Tasaka ef06d6
%global	rpmminorver	.%(echo %preminorver | sed -e 's|^\\.\\.*||')
Mamoru Tasaka ef06d6
%global	fullver	%{majorver}%{?preminorver}
Mamoru Tasaka ef06d6
d314fe
%global	fedorarel	1
Mamoru Tasaka ef06d6
Mamoru Tasaka 38264f
%global	gem_name	rspec-mocks
Mamoru Tasaka fd3177
a61419
%global	need_bootstrap_set	0
Mamoru Tasaka fd3177
Mamoru Tasaka fd3177
Summary:	Rspec-2 doubles (mocks and stubs)
Mamoru Tasaka 38264f
Name:		rubygem-%{gem_name}
Mamoru Tasaka ef06d6
Version:	%{majorver}
105288
Release:	%{?preminorver:0.}%{fedorarel}%{?preminorver:%{rpmminorver}}%{?dist}.1
Mamoru Tasaka fd3177
Mamoru Tasaka fd3177
Group:		Development/Languages
Mamoru Tasaka fd3177
License:	MIT
Mamoru Tasaka fd3177
URL:		http://github.com/rspec/rspec-mocks
086dd2
Source0:	https://rubygems.org/gems/%{gem_name}-%{fullver}.gem
086dd2
# %%{SOURCE2} %%{name} %%{version} 
086dd2
Source1:	rubygem-%{gem_name}-%{version}-full.tar.gz
086dd2
Source2:	rspec-related-create-full-tarball.sh
Mamoru Tasaka fd3177
f0b571
#BuildRequires:	ruby(release)
Mamoru Tasaka 68ff1b
BuildRequires:	rubygems-devel
086dd2
%if 0%{?need_bootstrap_set} < 1
TASAKA Mamoru 00ace0
BuildRequires:	rubygem(rspec)
5ea97b
BuildRequires:	rubygem(thread_order)
7d27b8
BuildRequires:	git
Mamoru Tasaka fd3177
%endif
Mamoru Tasaka fd3177
BuildArch:	noarch
Mamoru Tasaka fd3177
Mamoru Tasaka fd3177
%description
Mamoru Tasaka fd3177
rspec-mocks provides a test-double framework for rspec including support
Mamoru Tasaka fd3177
for method stubs, fakes, and message expectations.
Mamoru Tasaka fd3177
Mamoru Tasaka fd3177
%package	doc
Mamoru Tasaka fd3177
Summary:	Documentation for %{name}
Mamoru Tasaka fd3177
Group:		Documentation
Mamoru Tasaka fd3177
Requires:	%{name} = %{version}-%{release}
Mamoru Tasaka fd3177
Mamoru Tasaka fd3177
%description	doc
Mamoru Tasaka fd3177
This package contains documentation for %{name}.
Mamoru Tasaka fd3177
Mamoru Tasaka fd3177
Mamoru Tasaka fd3177
%prep
Mamoru Tasaka 38264f
gem unpack %{SOURCE0}
Mamoru Tasaka 38264f
086dd2
%setup -q -D -T -n  %{gem_name}-%{version} -a 1
086dd2
086dd2
gem specification %{SOURCE0} -l --ruby > %{gem_name}.gemspec
Mamoru Tasaka 38264f
Mamoru Tasaka 38264f
%build
086dd2
gem build %{gem_name}.gemspec
2277cd
%gem_install
Mamoru Tasaka fd3177
Mamoru Tasaka fd3177
%install
Mamoru Tasaka 38264f
mkdir -p %{buildroot}%{gem_dir}
086dd2
cp -a .%{gem_dir}/* \
086dd2
	%{buildroot}%{gem_dir}/
Mamoru Tasaka fd3177
Mamoru Tasaka fd3177
# cleanups
086dd2
rm -f %{buildroot}%{gem_instdir}/{.document,.yardopts}
Mamoru Tasaka fd3177
086dd2
%if 0%{?need_bootstrap_set} < 1
Mamoru Tasaka fd3177
%check
086dd2
pushd  %{gem_name}-%{version}
8badd2
8badd2
# library_wide_checks.rb needs UTF-8
8badd2
LANG=en_US.utf8
Mamoru Tasaka fd3177
ruby -rubygems -Ilib/ -S rspec spec/
8badd2
086dd2
popd
Mamoru Tasaka fd3177
%endif
Mamoru Tasaka fd3177
Mamoru Tasaka fd3177
%files
Mamoru Tasaka 38264f
%dir	%{gem_instdir}
Mamoru Tasaka fd3177
f0b571
%license	%{gem_instdir}/LICENSE.md
f0b571
%doc	%{gem_instdir}/Changelog.md
f0b571
%doc	%{gem_instdir}/README.md
f0b571
Mamoru Tasaka 38264f
%{gem_instdir}/lib/
Mamoru Tasaka fd3177
Mamoru Tasaka 38264f
%exclude	%{gem_cache}
Mamoru Tasaka 38264f
%{gem_spec}
Mamoru Tasaka fd3177
Mamoru Tasaka fd3177
%files	doc
Mamoru Tasaka 38264f
%{gem_docdir}
Mamoru Tasaka fd3177
Mamoru Tasaka fd3177
%changelog
105288
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.4.1-1.1
105288
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
105288
d314fe
* Thu Jan 14 2016 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.4.1-1
d314fe
- 3.4.1
d314fe
a61419
* Tue Dec  8 2015 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.4.0-2
a61419
- Enable tests again
a61419
f0b571
* Tue Dec  8 2015 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.4.0-1
f0b571
- 3.4.0
f0b571
- Once disable tests
f0b571
5ea97b
* Wed Aug 12 2015 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.3.2-3
5ea97b
- Enable thread_order dependent tests
5ea97b
e8948c
* Sun Aug  2 2015 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.3.2-2
e8948c
- Enable tests again
e8948c
8badd2
* Sun Aug  2 2015 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.3.2-1
8badd2
- 3.3.2
8badd2
- Once disable tests
8badd2
c7d440
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.1-1.1
c7d440
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
c7d440
dfdafa
* Wed Feb 25 2015 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.2.1-1
dfdafa
- 3.2.1
dfdafa
795896
* Mon Feb  9 2015 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.2.0-2
795896
- Enable tests again
795896
80f388
* Mon Feb  9 2015 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.2.0-1
80f388
- 3.2.0
80f388
- Once disable tests
80f388
d05df9
* Mon Nov 10 2014 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.1.3-2
d05df9
- Enable tests
d05df9
086dd2
* Mon Nov 10 2014 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.1.3-1
086dd2
- 3.1.3
086dd2
- Once disable tests
086dd2
086dd2
* Fri Aug 15 2014 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.0.4-1
086dd2
- 3.0.4
086dd2
086dd2
* Thu Aug 14 2014 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.0.3-1
086dd2
- 3.0.3
086dd2
c5afe6
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.14.6-1.1
c5afe6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
c5afe6
3229be
* Thu Feb 27 2014 Mamoru TASAKA <mtasaka@fedoraproject.org> - 2.14.6-1
3229be
- 2.14.6
3229be
bdd9be
* Tue Feb  4 2014 Mamoru TASAKA <mtasaka@fedoraproject.org> - 2.14.5-1
bdd9be
- 2.14.5
bdd9be
9029b1
* Thu Oct 24 2013 Mamoru TASAKA <mtasaka@fedoraproject.org> - 2.14.4-1
9029b1
- 2.14.4
9029b1
9029b1
* Fri Aug 16 2013 Mamoru TASAKA <mtasaka@fedoraproject.org> - 2.14.3-2
0a45eb
- Enable test suite again
0a45eb
9029b1
* Fri Aug 16 2013 Mamoru TASAKA <mtasaka@fedoraproject.org> - 2.14.3-1
84ebd5
- 2.14.3
84ebd5
a1825c
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.13.1-1.1
a1825c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
a1825c
TASAKA Mamoru a1f454
* Fri Apr 12 2013 Mamoru TASAKA <mtasaka@fedoraproject.org> - 2.13.1-1
TASAKA Mamoru a1f454
- 2.13.1
TASAKA Mamoru a1f454
TASAKA Mamoru 0a8c02
* Thu Mar 28 2013 Mamoru TASAKA <mtasaka@fedoraproject.org> - 2.13.0-2
TASAKA Mamoru 0a8c02
- Enable test suite again
TASAKA Mamoru 0a8c02
TASAKA Mamoru e8e1f1
* Thu Mar 28 2013 Mamoru TASAKA <mtasaka@fedoraproject.org> - 2.13.0-1
TASAKA Mamoru e8e1f1
- 2.13.0
TASAKA Mamoru e8e1f1
2277cd
* Wed Feb 20 2013 Vít Ondruch <vondruch@redhat.com> - 2.12.2-2
2277cd
- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
2277cd
TASAKA Mamoru d2c792
* Mon Feb  4 2013 Mamoru TASAKA <mtasaka@fedoraproject.org> - 2.12.2-1
TASAKA Mamoru d2c792
- 2.12.2
TASAKA Mamoru d2c792
Mamoru Tasaka 1145db
* Wed Jan  2 2013 Mamoru TASAKA <mtasaka@fedoraproject.org> - 2.12.1-2
Mamoru Tasaka 1145db
- Enable test suite again
Mamoru Tasaka 1145db
Mamoru Tasaka 38264f
* Wed Jan  2 2013 Mamoru TASAKA <mtasaka@fedoraproject.org> - 2.12.1-1
Mamoru Tasaka 38264f
- 2.12.1
Mamoru Tasaka 38264f
TASAKA Mamoru 00ace0
* Thu Oct 11 2012 Mamoru Tasaka <mtasaka@fedoraproject.org> - 2.11.3-1
TASAKA Mamoru 00ace0
- 2.11.3
TASAKA Mamoru 00ace0
59a3ea
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.8.0-1.1
59a3ea
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
59a3ea
086dd2
* Sun Jan 22 2012 Mamoru Tasaka <mtasaka@fedoraproject.org> - 2.8.0-1
Mamoru Tasaka 88f1a7
- 2.8.0
Mamoru Tasaka 88f1a7
1a5f99
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6.0-1.1
1a5f99
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
1a5f99
Mamoru Tasaka 764f84
* Mon May 16 2011 Mamoru Tasaka <mtasaka@fedoraproject.org> - 2.6.0-1
Mamoru Tasaka 764f84
- 2.6.0
Mamoru Tasaka 764f84
Mamoru Tasaka 0de279
* Tue May 10 2011 Mamoru Tasaka <mtasaka@fedoraproject.org> - 2.6.0-0.3.rc6
Mamoru Tasaka 0de279
- 2.6.0 rc6
Mamoru Tasaka 0de279
Mamoru Tasaka 79a0c9
* Tue May  3 2011 Mamoru Tasaka <mtasaka@fedoraproject.org>
Mamoru Tasaka 79a0c9
- And enable check on rawhide
Mamoru Tasaka 79a0c9
Mamoru Tasaka ef06d6
* Tue May  3 2011 Mamoru Tasaka <mtasaka@fedoraproject.org> - 2.6.0-0.1.rc4
Mamoru Tasaka ef06d6
- 2.6.0 rc4
Mamoru Tasaka ef06d6
Mamoru Tasaka e06815
* Sat Feb 26 2011 Mamoru Tasaka <mtasaka@fedoraproject.org>
Mamoru Tasaka e06815
- And enable check on rawhide
Mamoru Tasaka e06815
Mamoru Tasaka fd3177
* Sat Feb 26 2011 Mamoru Tasaka <mtasaka@fedoraproject.org> - 2.5.0-2
Mamoru Tasaka fd3177
- Cleanups
Mamoru Tasaka fd3177
Mamoru Tasaka fd3177
* Thu Feb 17 2011 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 2.5.0-1
Mamoru Tasaka fd3177
- 2.5.0
Mamoru Tasaka fd3177
Mamoru Tasaka fd3177
* Fri Nov 05 2010 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 2.0.1-1
Mamoru Tasaka fd3177
- Initial package