Fix compile failure due to updated AsciiDoctor

This commit is contained in:
wang--ge 2020-12-29 15:24:37 +08:00
parent 83693c8e16
commit f7365ea3dd

View File

@ -2,7 +2,7 @@
%{?_with_bootstrap: %global bootstrap 1}
Name: rubygem-%{gem_name}
Version: 2.0.8
Release: 1
Release: 2
Summary: Generic interface to multiple Ruby template engines
License: MIT
URL: http://github.com/rtomayko/tilt
@ -54,6 +54,9 @@ find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
%if ! 0%{?bootstrap}
pushd .%{gem_instdir}
sed -i '/[Bb]undler/ s/^/#/' test/test_helper.rb
#DocBook 4.5 has been removed since AsciiDoctor 2.0.0.
#htps://github.com/asciidoctor/asciidoctor/issues/3005
sed -i '/docbook 4.5/a\ skip' test/tilt_asciidoctor_test.rb
LANG=C.UTF-8 ruby -Ilib:test -e 'Dir.glob "./test/**/*_test.rb", &method(:require)'
popd
%endif
@ -82,5 +85,8 @@ popd
%{gem_instdir}/test
%changelog
* Tue Dec 29 2020 Ge Wang <wangge20@huawei.com> - 2.0.8-2
- Fix compile failure due to updated AsciiDoctor
* Mon Aug 24 2020 liyanan <liyanan32@huawei.com> - 2.0.8-1
- package init