fix build fail

This commit is contained in:
lyn1001 2020-09-05 17:26:16 +08:00
parent 2dc070efda
commit 20cb484d2f

View File

@ -1,7 +1,8 @@
%bcond_with bootstrap
%global gem_name loofah %global gem_name loofah
Name: rubygem-%{gem_name} Name: rubygem-%{gem_name}
Version: 2.2.3 Version: 2.2.3
Release: 1 Release: 2
Summary: Manipulate and transform HTML/XML documents and fragments Summary: Manipulate and transform HTML/XML documents and fragments
License: MIT License: MIT
URL: https://github.com/flavorjones/loofah URL: https://github.com/flavorjones/loofah
@ -37,11 +38,12 @@ gem build ../%{gem_name}-%{version}.gemspec
mkdir -p %{buildroot}%{gem_dir} mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \ cp -a .%{gem_dir}/* \
%{buildroot}%{gem_dir}/ %{buildroot}%{gem_dir}/
%if %{with bootstrap}
%check %check
pushd .%{gem_instdir} pushd .%{gem_instdir}
ruby -Itest -e 'Dir.glob "./test/**/test_*.rb", &method(:require)' ruby -Itest -e 'Dir.glob "./test/**/test_*.rb", &method(:require)'
popd popd
%endif
%files %files
%dir %{gem_instdir} %dir %{gem_instdir}
@ -63,5 +65,8 @@ popd
%{gem_instdir}/test %{gem_instdir}/test
%changelog %changelog
* Sat Sep 5 2020 yanan li <liyanan032@huawei.com> - 2.2.3-2
- Fix build fail
* Tue Aug 18 2020 geyanan <geyanan2@huawei.com> - 2.2.3-1 * Tue Aug 18 2020 geyanan <geyanan2@huawei.com> - 2.2.3-1
- package init - package init