14a11bb
%global	gem_name	rspec-support
14a11bb
ff81eab
%global	mainver	3.3.0
af26acc
%undefine	prever
14a11bb
5bf65cc
%global	mainrel	2
14a11bb
%global	prerpmver	%(echo "%{?prever}" | sed -e 's|\\.||g')
14a11bb
5bf65cc
%global	need_bootstrap_set	0
14a11bb
14a11bb
Name:		rubygem-%{gem_name}
14a11bb
Version:	%{mainver}
ff81eab
Release:	%{?prever:0.}%{mainrel}%{?prever:.%{prerpmver}}%{?dist}
14a11bb
14a11bb
Summary:	Common functionality to Rspec series
14a11bb
Group:		Development/Languages
14a11bb
License:	MIT
14a11bb
URL:		https://github.com/rspec/rspec-support
14a11bb
Source0:	https://rubygems.org/gems/%{gem_name}-%{mainver}%{?prever}.gem
3e6b272
# %%{SOURCE2} %%{name} %%{version} 
3e6b272
Source1:	rubygem-%{gem_name}-%{version}-full.tar.gz
3e6b272
Source2:	rspec-related-create-full-tarball.sh
3e6b272
# tweak regex for search path
ecab66f
Patch0:	rubygem-rspec-support-3.2.1-callerfilter-searchpath-regex.patch
3e6b272
14a11bb
BuildRequires:	ruby(release)
14a11bb
BuildRequires:	rubygems-devel
3e6b272
%if 0%{?need_bootstrap_set} < 1
3e6b272
BuildRequires:	rubygem(rspec)
3e6b272
%endif
14a11bb
14a11bb
BuildArch:		noarch
14a11bb
# Need fix
14a11bb
Provides:		rubygem(%{gem_name}) = %{version}-%{release}
14a11bb
14a11bb
%description
14a11bb
`RSpec::Support` provides common functionality to `RSpec::Core`,
14a11bb
`RSpec::Expectations` and `RSpec::Mocks`. It is considered
14a11bb
suitable for internal use only at this time.
14a11bb
14a11bb
%package	doc
14a11bb
Summary:	Documentation for %{name}
14a11bb
Group:		Documentation
14a11bb
Requires:	%{name} = %{version}-%{release}
14a11bb
BuildArch:	noarch
14a11bb
14a11bb
%description	doc
14a11bb
Documentation for %{name}
14a11bb
14a11bb
%global	version_orig	%{version}
14a11bb
%global	version	%{version_orig}%{?prever}
14a11bb
14a11bb
%prep
14a11bb
gem unpack %{SOURCE0}
3e6b272
%setup -q -D -T -n  %{gem_name}-%{version} -a 1
14a11bb
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
14a11bb
3e6b272
( 
3e6b272
cd %{gem_name}-%{version}
3e6b272
%patch0 -p1
3e6b272
)
3e6b272
14a11bb
%build
14a11bb
gem build %{gem_name}.gemspec
14a11bb
%gem_install
14a11bb
14a11bb
%install
14a11bb
mkdir -p %{buildroot}%{gem_dir}
14a11bb
cp -pa .%{gem_dir}/* \
14a11bb
	%{buildroot}%{gem_dir}/
14a11bb
3e6b272
%if 0%{?need_bootstrap_set} < 1
3e6b272
%check
3e6b272
LANG=en_US.UTF-8
3e6b272
pushd %{gem_name}-%{version}
3e6b272
3e6b272
ruby -rubygems -Ilib/ -S rspec spec/
3e6b272
3e6b272
popd
3e6b272
%endif
14a11bb
14a11bb
%files
14a11bb
%dir	%{gem_instdir}
af26acc
%doc	%{gem_instdir}/Changelog.md
af26acc
%doc	%{gem_instdir}/README.md
af26acc
%license	%{gem_instdir}/LICENSE.txt
14a11bb
14a11bb
%{gem_libdir}
14a11bb
%exclude %{gem_cache}
14a11bb
%{gem_spec}
14a11bb
14a11bb
%files doc
14a11bb
%doc	%{gem_docdir}
14a11bb
14a11bb
%changelog
5bf65cc
* Sun Aug  2 2015 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.3.0-2
5bf65cc
- Enable tests again
5bf65cc
ff81eab
* Sun Aug  2 2015 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.3.0-1
ff81eab
- 3.3.0
ff81eab
- Once disable tests
ff81eab
cd97200
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.2-1.1
cd97200
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
cd97200
f2b9126
* Wed Feb 25 2015 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.2.2-1
f2b9126
- 3.2.2
f2b9126
9df9c96
* Mon Feb  9 2015 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.2.1-2
9df9c96
- Enable tests again
9df9c96
ecab66f
* Mon Feb  9 2015 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.2.1-1
ecab66f
- 3.2.1
ecab66f
- Once disable tests
ecab66f
e0d4b37
* Mon Nov 10 2014 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.1.2-3
e0d4b37
- Enable tests again
e0d4b37
858619c
* Mon Nov 10 2014 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.1.2-2
4bdd266
- Retry
858619c
3e6b272
* Mon Nov 10 2014 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.1.2-1
3e6b272
- 3.1.2
3e6b272
- Once disable tests
3e6b272
3e6b272
* Fri Aug 15 2014 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.0.4-1
3e6b272
- 3.0.4
3e6b272
af26acc
* Thu Aug 14 2014 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.0.3-1
af26acc
- 3.0.3
af26acc
2721261
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.0-0.4.beta2.1
2721261
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
2721261
48ba289
* Tue Mar 18 2014 Mamoru TASAKA <mtasaka@tbz.t-com.ne.jp> - 3.0.0-0.4.beta1
14a11bb
- 3.0.0 beta 2
14a11bb
14a11bb
* Mon Feb 10 2014 Mamoru TASAKA <mtasaka@tbz.t-com.ne.jp> - 3.0.0-0.2.beta1
14a11bb
- Modify Provides EVR
14a11bb
14a11bb
* Mon Feb 03 2014 Mamoru TASAKA <mtasaka@tbz.t-com.ne.jp> - 3.0.0-0.1.beta1
14a11bb
- Initial package