From ba30adbfac9b7b9ae4faa2fcd8fab2a1eab6175c Mon Sep 17 00:00:00 2001 From: Mamoru TASAKA Date: Wed, 11 Sep 2019 14:54:49 +0900 Subject: [PATCH] Enable more tests --- rubygem-kramdown.spec | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/rubygem-kramdown.spec b/rubygem-kramdown.spec index 08c71d3..aaaa8cf 100644 --- a/rubygem-kramdown.spec +++ b/rubygem-kramdown.spec @@ -3,7 +3,7 @@ Name: rubygem-%{gem_name} Version: 1.17.0 -Release: 5%{?dist} +Release: 6%{?dist} Summary: Fast, pure-Ruby Markdown-superset converter License: MIT @@ -16,6 +16,24 @@ BuildRequires: rubygem(prawn) BuildRequires: rubygem(prawn-table) BuildRequires: rubygem(rake) BuildRequires: rubygem(rouge) +# FIXME +# Add the below when available +# BuildRequires: rubygem(stringex) +# Recommends: rubygem(stringex) +# Some additional dependency for check +BuildRequires: tidy +BuildRequires: tex +BuildRequires: tex(acronym.sty) +BuildRequires: tex(amssymb.sty) +BuildRequires: tex(amsmath.sty) +BuildRequires: tex(amsthm.sty) +BuildRequires: tex(amsfonts.sty) +BuildRequires: tex(utf8x.def) +BuildRequires: tex-ec +# And currently: +# Skipping MathjaxNode tests as MathjaxNode is not available +# Skipping SsKaTeX tests as SsKaTeX is not available. +# Looks like some npm related packages are needed to enable more tests, not doing for now Requires: ruby(release) Requires: ruby(rubygems) BuildArch: noarch @@ -71,6 +89,15 @@ LANG=C.UTF-8 pushd .%{gem_instdir} +STRINGEX_STATUS="$(ruby -e "begin ; require 'stringex' ; puts 1 ; rescue LoadError ; puts 0 ; end")" +if [ $STRINGEX_STATUS == 0 ] ; then +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' +fi + # Some tests seem to be failing, need investigating rake test || true popd @@ -94,6 +121,9 @@ popd %doc %{gem_instdir}/doc/ %changelog +* Wed Sep 11 2019 Mamoru TASAKA - 1.17.0-6 +- Enable more tests + * Fri Jul 26 2019 Fedora Release Engineering - 1.17.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild