Bootstrap round.
This commit is contained in:
Vít Ondruch 2013-02-22 19:04:53 +01:00
parent f316675424
commit 0adc95b2cb

View File

@ -1,25 +1,24 @@
%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}
%{!?need_bootstrap: %global need_bootstrap 1}
Summary: Provide a list of changes between two sequenced collections
Name: rubygem-%{gem_name}
Version: 1.1.3
Release: 2%{?dist}
Release: 2.1%{?dist}
Group: Development/Languages
License: GPLv2+ or Ruby or Artistic
URL: http://rubyforge.org/projects/ruwiki/
Source0: http://gems.rubyforge.org/gems/%{gem_name}-%{version}.gem
Requires: ruby(abi) = %{rubyabi}
Requires: ruby(release)
Requires: rubygems
BuildRequires: rubygems-devel
%if 0%{?need_bootstrap} < 1
BuildRequires: rubygem(rspec)
%endif
BuildRequires: ruby(abi) = %{rubyabi}
BuildRequires: ruby(release)
BuildArch: noarch
Provides: rubygem(%{gem_name}) = %{version}
@ -41,10 +40,7 @@ This package contains documentation for %{name}.
%prep
%setup -q -c -T
mkdir -p .%{gem_dir}
gem install --local --install-dir .%{gem_dir} \
--bindir .%{_bindir} \
--force %{SOURCE0}
%gem_install -n %{SOURCE0}
%build
@ -105,7 +101,8 @@ popd
%changelog
* Wed Feb 20 2013 Vít Ondruch <vondruch@redhat.com> - 1.1.3-2
* Wed Feb 20 2013 Vít Ondruch <vondruch@redhat.com> - 1.1.3-3
- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
- Change the dependency to rubygem(rspec).
- Add bootstrap code.