Avoid unwanted test dependencies in RHEL builds
This is based on changes already in c9s:1d42a4d403
915fc2c333
54ab583cd2
This commit is contained in:
parent
20e038ed4f
commit
81c257f3a2
@ -16,6 +16,7 @@ BuildRequires: rubygem(minitest) >= 5
|
||||
BuildRequires: rubygem(rexml)
|
||||
BuildRequires: rubygem(rouge) >= 3.26.0
|
||||
BuildRequires: rubygem(test-unit)
|
||||
%if ! 0%{?rhel}
|
||||
BuildRequires: rubygem(stringex)
|
||||
# Recommends: rubygem(stringex)
|
||||
# Some additional dependency for check
|
||||
@ -28,6 +29,7 @@ BuildRequires: tex(amsthm.sty)
|
||||
BuildRequires: tex(amsfonts.sty)
|
||||
BuildRequires: tex(utf8x.def)
|
||||
BuildRequires: tex-ec
|
||||
%endif
|
||||
Requires: ruby(release)
|
||||
Requires: ruby(rubygems)
|
||||
BuildArch: noarch
|
||||
@ -80,6 +82,15 @@ LANG=C.UTF-8
|
||||
|
||||
pushd .%{gem_instdir}
|
||||
|
||||
%if 0%{?rhel}
|
||||
# Avoid unwanted stringex dependency
|
||||
sed -i test/testcases/block/04_header/with_auto_ids.options \
|
||||
-e '\@transliterated_header_ids@s|true|false|'
|
||||
sed -i \
|
||||
test/testcases/block/04_header/with_auto_ids.* \
|
||||
-e '\@[Tr]ransliterated@d'
|
||||
%endif
|
||||
|
||||
%if 0
|
||||
# This is a comment
|
||||
F-38:
|
||||
|
Loading…
Reference in New Issue
Block a user