Mamoru Tasaka 86a3e9
%global	gemdir		%{gem_dir}
TASAKA Mamoru c3900c
%global	majorver	2.11.3
Mamoru Tasaka 6375f4
#%%global	preminorver	.rc6
Mamoru Tasaka 2cb9d4
%global	rpmminorver	.%(echo %preminorver | sed -e 's|^\\.\\.*||')
Mamoru Tasaka 2cb9d4
%global	fullver	%{majorver}%{?preminorver}
Mamoru Tasaka 2cb9d4
Mamoru Tasaka 72e3c3
%global	fedorarel	1
Mamoru Tasaka 2cb9d4
Mamoru Tasaka a3fa8e
%global	gemname	rspec-expectations
Mamoru Tasaka 86a3e9
%global	gem_name %gemname
Mamoru Tasaka 86a3e9
%global	geminstdir	%{gem_instdir}
Mamoru Tasaka a3fa8e
Mamoru Tasaka 86a3e9
%global	rubyabi	1.9.1
Mamoru Tasaka a3fa8e
Mamoru Tasaka a3fa8e
# %%check section needs rspec-core, however rspec-core depends on rspec-expectations
Mamoru Tasaka a3fa8e
# runtime part of rspec-expectaions does not depend on rspec-core
Mamoru Tasaka a3fa8e
%global	need_bootstrap_set	1
Mamoru Tasaka a3fa8e
Mamoru Tasaka a3fa8e
%{!?need_bootstrap:	%global	need_bootstrap	%{need_bootstrap_set}}
Mamoru Tasaka a3fa8e
Mamoru Tasaka a3fa8e
Summary:	Rspec-2 expectations (should and matchers) 
Mamoru Tasaka a3fa8e
Name:		rubygem-%{gemname}
Mamoru Tasaka 2cb9d4
Version:	%{majorver}
TASAKA Mamoru c3900c
Release:	%{?preminorver:0.}%{fedorarel}%{?preminorver:%{rpmminorver}}%{?dist}
Mamoru Tasaka a3fa8e
Mamoru Tasaka a3fa8e
Group:		Development/Languages
Mamoru Tasaka a3fa8e
License:	MIT
Mamoru Tasaka a3fa8e
URL:		http://github.com/rspec/rspec-expectations
Mamoru Tasaka 2cb9d4
Source0:	http://rubygems.org/gems/%{gemname}-%{fullver}.gem
Mamoru Tasaka a3fa8e
Mamoru Tasaka a3fa8e
BuildRequires:	ruby(abi) = %{rubyabi}
Mamoru Tasaka 75c4c7
BuildRequires:	rubygems-devel
Mamoru Tasaka a3fa8e
%if 0%{?need_bootstrap} < 1
TASAKA Mamoru c3900c
BuildRequires:	rubygem(rspec)
TASAKA Mamoru c3900c
BuildRequires:	rubygem(minitest)
Mamoru Tasaka a3fa8e
%endif
Mamoru Tasaka a3fa8e
Requires:	ruby(abi) = %{rubyabi}
Mamoru Tasaka ebc57c
Requires:	rubygem(diff-lcs)
Mamoru Tasaka a3fa8e
Provides:	rubygem(%{gemname}) = %{version}-%{release}
Mamoru Tasaka a3fa8e
BuildArch:	noarch
Mamoru Tasaka a3fa8e
Mamoru Tasaka a3fa8e
%description
Mamoru Tasaka a3fa8e
rspec-expectations adds `should` and `should_not` to every object and includes
Mamoru Tasaka a3fa8e
RSpec::Matchers, a library of standard matchers.
Mamoru Tasaka a3fa8e
Mamoru Tasaka a3fa8e
%package	doc
Mamoru Tasaka a3fa8e
Summary:	Documentation for %{name}
Mamoru Tasaka a3fa8e
Group:		Documentation
Mamoru Tasaka a3fa8e
Requires:	%{name} = %{version}-%{release}
Mamoru Tasaka a3fa8e
Mamoru Tasaka a3fa8e
%description	doc
Mamoru Tasaka a3fa8e
This package contains documentation for %{name}.
Mamoru Tasaka a3fa8e
Mamoru Tasaka a3fa8e
Mamoru Tasaka a3fa8e
%prep
Mamoru Tasaka a3fa8e
%setup -q -c -T
Mamoru Tasaka a3fa8e
Mamoru Tasaka a3fa8e
mkdir -p .%{gemdir}
Mamoru Tasaka a3fa8e
gem install \
Mamoru Tasaka a3fa8e
	-V \
Mamoru Tasaka a3fa8e
	--local \
Mamoru Tasaka a3fa8e
	--install-dir .%{gemdir} \
Mamoru Tasaka a3fa8e
	--force \
Mamoru Tasaka a3fa8e
	--rdoc \
Mamoru Tasaka a3fa8e
	%{SOURCE0}
Mamoru Tasaka a3fa8e
Mamoru Tasaka 2cb9d4
chmod 0644 .%{gemdir}/cache/%{gemname}-%{fullver}.gem
Mamoru Tasaka a3fa8e
Mamoru Tasaka a3fa8e
%build
Mamoru Tasaka a3fa8e
Mamoru Tasaka a3fa8e
%install
Mamoru Tasaka a3fa8e
mkdir -p %{buildroot}%{gemdir}
Mamoru Tasaka a3fa8e
cp -a .%{gemdir}/* %{buildroot}%{gemdir}/
Mamoru Tasaka a3fa8e
Mamoru Tasaka a3fa8e
# cleanups
TASAKA Mamoru c3900c
rm -f %{buildroot}%{geminstdir}/{.document,.gitignore,.travis.yml,.yardopts}
Mamoru Tasaka a3fa8e
Mamoru Tasaka a3fa8e
%if 0%{?need_bootstrap} < 1
Mamoru Tasaka a3fa8e
%check
Mamoru Tasaka a3fa8e
pushd .%{geminstdir}
Mamoru Tasaka a3fa8e
ruby -rubygems -Ilib/ -S rspec spec/
Mamoru Tasaka a3fa8e
popd
Mamoru Tasaka a3fa8e
%endif
Mamoru Tasaka a3fa8e
Mamoru Tasaka a3fa8e
%files
Mamoru Tasaka a3fa8e
%defattr(-,root,root,-)
Mamoru Tasaka a3fa8e
%dir	%{geminstdir}
Mamoru Tasaka a3fa8e
Mamoru Tasaka a3fa8e
%doc	%{geminstdir}/License.txt
Mamoru Tasaka a3fa8e
%doc	%{geminstdir}/*.md
Mamoru Tasaka a3fa8e
%{geminstdir}/lib/
Mamoru Tasaka a3fa8e
Mamoru Tasaka 2cb9d4
%{gemdir}/cache/%{gemname}-%{fullver}.gem
Mamoru Tasaka 2cb9d4
%{gemdir}/specifications/%{gemname}-%{fullver}.gemspec
Mamoru Tasaka a3fa8e
Mamoru Tasaka a3fa8e
Mamoru Tasaka a3fa8e
%files	doc
Mamoru Tasaka a3fa8e
%defattr(-,root,root,-)
Mamoru Tasaka 2cb9d4
%{gemdir}/doc/%{gemname}-%{fullver}
Mamoru Tasaka a3fa8e
%{geminstdir}/features/
Mamoru Tasaka a3fa8e
%{geminstdir}/spec/
Mamoru Tasaka a3fa8e
Mamoru Tasaka a3fa8e
%changelog
TASAKA Mamoru c3900c
* Thu Oct 11 2012 Mamoru Tasaka <mtasaka@fedoraproject.org> - 2.11.3-1
TASAKA Mamoru c3900c
- 2.11.3
TASAKA Mamoru c3900c
ab87db
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.8.0-2.1
ab87db
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
ab87db
Mamoru Tasaka ebc57c
* Sun Jan 21 2012 Mamoru Tasaka <mtasaka@fedoraproject.org> - 2.8.0-2
Mamoru Tasaka ebc57c
- Require (diff-lcs) again
Mamoru Tasaka ebc57c
Mamoru Tasaka 86a3e9
* Sun Jan 21 2012 Mamoru Tasaka <mtasaka@fedoraproject.org> - 2.8.0-1
Mamoru Tasaka 86a3e9
- 2.8.0
Mamoru Tasaka 86a3e9
51bccc
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6.0-1.1
51bccc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
51bccc
Mamoru Tasaka 6375f4
* Mon May 16 2011 Mamoru Tasaka <mtasaka@fedoraproject.org> - 2.6.0-1
Mamoru Tasaka 6375f4
- 2.6.0
Mamoru Tasaka 6375f4
Mamoru Tasaka e5610b
* Tue May 10 2011 Mamoru Tasaka <mtasaka@fedoraproject.org> - 2.6.0-0.3.rc6
Mamoru Tasaka e5610b
- 2.6.0 rc6
Mamoru Tasaka e5610b
Mamoru Tasaka 4acb29
* Tue May  3 2011 Mamoru Tasaka <mtasaka@fedoraproject.org>
Mamoru Tasaka 4acb29
- And enable check on rawhide
Mamoru Tasaka 4acb29
Mamoru Tasaka 2cb9d4
* Tue May  3 2011 Mamoru Tasaka <mtasaka@fedoraproject.org> - 2.6.0-0.1.rc4
Mamoru Tasaka 2cb9d4
- 2.6.0 rc4
Mamoru Tasaka 2cb9d4
Mamoru Tasaka d92004
* Sat Feb 26 2011 Mamoru Tasaka <mtasaka@fedoraproject.org>
Mamoru Tasaka d92004
- And enable check on rawhide
Mamoru Tasaka d92004
Mamoru Tasaka a3fa8e
* Sat Feb 26 2011 Mamoru Tasaka <mtasaka@fedoraproject.org> - 2.5.0-2
Mamoru Tasaka a3fa8e
- Cleanups
Mamoru Tasaka a3fa8e
Mamoru Tasaka a3fa8e
* Thu Feb 17 2011 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 2.5.0-1
Mamoru Tasaka a3fa8e
- 2.5.0
Mamoru Tasaka a3fa8e
Mamoru Tasaka a3fa8e
* Fri Nov 05 2010 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 2.0.1-1
Mamoru Tasaka a3fa8e
- Initial package