From 60348c9329e08ad0bbc972aa069253fa9a5d918b Mon Sep 17 00:00:00 2001 From: Mamoru TASAKA Date: Thu, 9 Mar 2023 16:28:46 +0900 Subject: [PATCH] Disable unwanted dependencies in RHEL builds --- rubygem-rspec-mocks.spec | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/rubygem-rspec-mocks.spec b/rubygem-rspec-mocks.spec index 0a15adc..fb04236 100644 --- a/rubygem-rspec-mocks.spec +++ b/rubygem-rspec-mocks.spec @@ -3,7 +3,7 @@ %global rpmminorver .%(echo %preminorver | sed -e 's|^\\.\\.*||') %global fullver %{majorver}%{?preminorver} -%global fedorarel 1 +%global fedorarel 2 %global gem_name rspec-mocks @@ -87,16 +87,22 @@ cp -a .%{gem_dir}/* \ rm -f %{buildroot}%{gem_instdir}/{.document,.yardopts} %check -%if %{without bootstrap} +%if %{with bootstrap} +# Don't do actual check +exit 0 +%endif + # library_wide_checks.rb needs UTF-8 LANG=C.UTF-8 export RUBYLIB=$(pwd)/lib rspec spec/ -%if %{undefined rhel} + +%if 0%{?rhel} +# Don't do cucumber test +exit 0 +%endif export CUCUMBER_PUBLISH_QUIET=true cucumber -%endif -%endif %files %dir %{gem_instdir} @@ -114,6 +120,9 @@ cucumber %{gem_docdir} %changelog +* Thu Mar 09 2023 Yaakov Selkowitz - 3.12.3-2 +- Disable unwanted dependencies in RHEL builds + * Thu Feb 16 2023 Mamoru TASAKA - 3.12.3-1 - 3.12.3