From 19bd07e07bd005d937273018f62b09dce48270da Mon Sep 17 00:00:00 2001 From: Troy Dawson Date: Mon, 6 Jun 2022 09:21:54 -0700 Subject: [PATCH] Disable test dependencies and tests, until they are in epel9 --- rubygem-pry.spec | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/rubygem-pry.spec b/rubygem-pry.spec index e0aebb7..4521bf0 100644 --- a/rubygem-pry.spec +++ b/rubygem-pry.spec @@ -1,8 +1,11 @@ %global gem_name pry +# Enable bootstrap until dependencies are in epel9 +%global bootstrap 0 + Name: rubygem-%{gem_name} Version: 0.13.1 -Release: 7%{?dist} +Release: 7%{?dist}.1 Summary: An IRB alternative and runtime developer console License: MIT URL: http://pryrepl.org @@ -16,11 +19,14 @@ Patch0: pry-0.13.1-Fix-broken-spec.patch BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby +# These are for tests, disable until dependencies are in epel9 +%if %{bootstrap} BuildRequires: rubygem(bundler) BuildRequires: rubygem(coderay) => 1.1.0 BuildRequires: rubygem(irb) BuildRequires: rubygem(method_source) => 0.8.1 BuildRequires: rubygem(rspec) +%endif # editor specs fail if no editor is available (soft requirement) BuildRequires: vi # https://github.com/pry/pry/pull/1498 @@ -70,6 +76,8 @@ cp -a .%{_bindir}/* \ find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x %check +# Disable tests until dependencies are in epel9 +%if %{bootstrap} pushd .%{gem_instdir} ln -s %{_builddir}/spec spec @@ -83,6 +91,7 @@ sed -i '/pry\/foo/ s/pry/pry-%{version}/' spec/cli_spec.rb # The bundler is required just to make /spec/integration/bundler_spec.rb pass. RUBYOPT=-rbundler rspec -rspec_helper spec popd +%endif %files %dir %{gem_instdir} @@ -99,6 +108,9 @@ popd %doc %{gem_instdir}/README.md %changelog +* Mon Jun 06 2022 Troy Dawson - 0.13.1-7.1 +- Disable test dependencies and tests, until they are in epel9 + * Fri Jan 21 2022 Fedora Release Engineering - 0.13.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild