From 20cb484d2f6f21d8b44a0c7568abb83c1965afe0 Mon Sep 17 00:00:00 2001 From: lyn1001 Date: Sat, 5 Sep 2020 17:26:16 +0800 Subject: [PATCH] fix build fail --- rubygem-loofah.spec | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/rubygem-loofah.spec b/rubygem-loofah.spec index 11977ea..4c99145 100644 --- a/rubygem-loofah.spec +++ b/rubygem-loofah.spec @@ -1,7 +1,8 @@ +%bcond_with bootstrap %global gem_name loofah Name: rubygem-%{gem_name} Version: 2.2.3 -Release: 1 +Release: 2 Summary: Manipulate and transform HTML/XML documents and fragments License: MIT URL: https://github.com/flavorjones/loofah @@ -37,11 +38,12 @@ gem build ../%{gem_name}-%{version}.gemspec mkdir -p %{buildroot}%{gem_dir} cp -a .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ - +%if %{with bootstrap} %check pushd .%{gem_instdir} ruby -Itest -e 'Dir.glob "./test/**/test_*.rb", &method(:require)' popd +%endif %files %dir %{gem_instdir} @@ -63,5 +65,8 @@ popd %{gem_instdir}/test %changelog +* Sat Sep 5 2020 yanan li - 2.2.3-2 +- Fix build fail + * Tue Aug 18 2020 geyanan - 2.2.3-1 - package init