Fix ELN build

The patches do not apply against the current version, but regardless,
the condition is incorrect for the stated intention.  Also, remove
test dependencies that are unwanted in RHEL/ELN.
This commit is contained in:
Yaakov Selkowitz 2023-03-08 17:05:44 -05:00
parent b527e5d20d
commit 1cbc29fbad

View File

@ -36,10 +36,12 @@ BuildRequires: rubygems-devel
BuildRequires: rubygem(rspec) BuildRequires: rubygem(rspec)
BuildRequires: rubygem(thread_order) BuildRequires: rubygem(thread_order)
BuildRequires: rubygem(rake) BuildRequires: rubygem(rake)
%if %{undefined rhel}
# cucumber # cucumber
BuildRequires: rubygem(aruba) BuildRequires: rubygem(aruba)
BuildRequires: rubygem(cucumber) BuildRequires: rubygem(cucumber)
BuildRequires: rubygem(minitest) BuildRequires: rubygem(minitest)
%endif
BuildRequires: git BuildRequires: git
%endif %endif
BuildArch: noarch BuildArch: noarch
@ -60,7 +62,7 @@ This package contains documentation for %{name}.
gem unpack %{SOURCE0} gem unpack %{SOURCE0}
%setup -q -D -T -n %{gem_name}-%{version} -b 1 %setup -q -D -T -n %{gem_name}-%{version} -b 1
%if 0%{?fedora} <= 37 %if 0%{?fedora} && 0%{?fedora} <= 37
# Revert "display_keyword_hashes" for now on Fedora 37 # Revert "display_keyword_hashes" for now on Fedora 37
%patch1 -p1 -R %patch1 -p1 -R
%patch2 -p1 -R %patch2 -p1 -R
@ -90,9 +92,11 @@ rm -f %{buildroot}%{gem_instdir}/{.document,.yardopts}
LANG=C.UTF-8 LANG=C.UTF-8
export RUBYLIB=$(pwd)/lib export RUBYLIB=$(pwd)/lib
rspec spec/ rspec spec/
%if %{undefined rhel}
export CUCUMBER_PUBLISH_QUIET=true export CUCUMBER_PUBLISH_QUIET=true
cucumber cucumber
%endif %endif
%endif
%files %files
%dir %{gem_instdir} %dir %{gem_instdir}