Enable tests on RHEL.
Keep only the Tilt relevant part disabled, because Tilt has a huge dependency chain. Other dependencies are available in ELN/RHEL. Resolves: rhbz#1970776
This commit is contained in:
parent
607b73b394
commit
d02280e27c
@ -7,7 +7,7 @@
|
|||||||
Summary: A fast, open source AsciiDoc implementation in Ruby
|
Summary: A fast, open source AsciiDoc implementation in Ruby
|
||||||
Name: rubygem-%{gem_name}
|
Name: rubygem-%{gem_name}
|
||||||
Version: 2.0.12
|
Version: 2.0.12
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://asciidoctor.org
|
URL: https://asciidoctor.org
|
||||||
Source0: https://github.com/asciidoctor/asciidoctor/archive/%{gittag}/%{gem_name}-%{version}%{pre}.tar.gz
|
Source0: https://github.com/asciidoctor/asciidoctor/archive/%{gittag}/%{gem_name}-%{version}%{pre}.tar.gz
|
||||||
@ -25,16 +25,16 @@ BuildRequires: ruby(abi) = 1.8
|
|||||||
%endif
|
%endif
|
||||||
BuildRequires: rubygems-devel
|
BuildRequires: rubygems-devel
|
||||||
BuildRequires: ruby(rubygems)
|
BuildRequires: ruby(rubygems)
|
||||||
%if 0%{?rhel}
|
|
||||||
# Dependencies aren't available on EPEL
|
|
||||||
%else
|
|
||||||
BuildRequires: rubygem(coderay)
|
BuildRequires: rubygem(coderay)
|
||||||
BuildRequires: rubygem(concurrent-ruby)
|
|
||||||
BuildRequires: rubygem(erubi)
|
|
||||||
BuildRequires: rubygem(haml)
|
|
||||||
BuildRequires: rubygem(minitest)
|
BuildRequires: rubygem(minitest)
|
||||||
BuildRequires: rubygem(nokogiri)
|
BuildRequires: rubygem(nokogiri)
|
||||||
BuildRequires: rubygem(rouge)
|
BuildRequires: rubygem(rouge)
|
||||||
|
%if 0%{?rhel}
|
||||||
|
# Dependencies aren't available on EPEL
|
||||||
|
%else
|
||||||
|
BuildRequires: rubygem(concurrent-ruby)
|
||||||
|
BuildRequires: rubygem(erubi)
|
||||||
|
BuildRequires: rubygem(haml)
|
||||||
BuildRequires: rubygem(slim)
|
BuildRequires: rubygem(slim)
|
||||||
BuildRequires: rubygem(tilt)
|
BuildRequires: rubygem(tilt)
|
||||||
%endif
|
%endif
|
||||||
@ -83,10 +83,13 @@ gem build %{gem_name}.gemspec
|
|||||||
pushd .%{gem_instdir}
|
pushd .%{gem_instdir}
|
||||||
|
|
||||||
%if 0%{?rhel}
|
%if 0%{?rhel}
|
||||||
# Asciidoctor tests require Minitest 5, so we can't run them on EPEL
|
# Avoid rubygem(tilt) dependency, which is needed just for custom templates.
|
||||||
%else
|
sed -i '/require.*tilt/ s/^/#/' test/converter_test.rb
|
||||||
LANG=C.UTF-8 ruby -I"lib:test" -e 'Dir.glob "./test/**/*_test.rb", &method(:require)'
|
sed -i -r '/template_dirs?:/i\ skip' test/converter_test.rb
|
||||||
|
sed -i '/-T/i\ skip' test/{invoker,options}_test.rb
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
LANG=C.UTF-8 ruby -I"lib:test" -e 'Dir.glob "./test/**/*_test.rb", &method(:require)'
|
||||||
popd
|
popd
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@ -128,6 +131,10 @@ cp -a .%{gem_instdir}/man/*.1 \
|
|||||||
%doc %{gem_docdir}
|
%doc %{gem_docdir}
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Jun 11 2021 Vít Ondruch <vondruch@redhat.com> - 2.0.12-3
|
||||||
|
- Enable test suite.
|
||||||
|
Resolves: rhbz#1970776
|
||||||
|
|
||||||
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 2.0.12-2
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 2.0.12-2
|
||||||
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user