Change the dependency to rubygem(rspec).

Add bootstrap code.
This commit is contained in:
Vít Ondruch 2013-02-20 09:48:45 +01:00
parent eb54001fa8
commit f316675424

View File

@ -1,6 +1,10 @@
%global gem_name diff-lcs
%global rubyabi 1.9.1
# %%check section needs rspec-expectations, however rspec-expectations depends
# on diff-lcs.
%{!?need_bootstrap: %global need_bootstrap 0}
Summary: Provide a list of changes between two sequenced collections
Name: rubygem-%{gem_name}
Version: 1.1.3
@ -12,7 +16,9 @@ Source0: http://gems.rubyforge.org/gems/%{gem_name}-%{version}.gem
Requires: ruby(abi) = %{rubyabi}
Requires: rubygems
BuildRequires: rubygems-devel
BuildRequires: %{_bindir}/rspec
%if 0%{?need_bootstrap} < 1
BuildRequires: rubygem(rspec)
%endif
BuildRequires: ruby(abi) = %{rubyabi}
BuildArch: noarch
Provides: rubygem(%{gem_name}) = %{version}
@ -69,10 +75,12 @@ done
# Fix shebangs.
sed -i 's|^#!.*|#!/usr/bin/ruby|' %{buildroot}%{gem_instdir}/bin/{htmldiff,ldiff}
%if 0%{?need_bootstrap} < 1
%check
pushd .%{gem_instdir}
rspec spec
popd
%endif
%files
%{_bindir}/ldiff
@ -97,6 +105,10 @@ popd
%changelog
* Wed Feb 20 2013 Vít Ondruch <vondruch@redhat.com> - 1.1.3-2
- Change the dependency to rubygem(rspec).
- Add bootstrap code.
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild