Disable unwanted dependencies in RHEL builds

This commit is contained in:
Mamoru TASAKA 2023-03-09 16:28:46 +09:00
parent 1cbc29fbad
commit 60348c9329

View File

@ -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 <yselkowi@redhat.com> - 3.12.3-2
- Disable unwanted dependencies in RHEL builds
* Thu Feb 16 2023 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.12.3-1
- 3.12.3