fix build fail

This commit is contained in:
lyn1001 2020-09-05 19:09:11 +08:00
parent 0d9416b9f8
commit 74bda9c684

View File

@ -27,18 +27,18 @@ Documentation for %{name}.
gem build ../%{gem_name}-%{version}.gemspec gem build ../%{gem_name}-%{version}.gemspec
%gem_install %gem_install
%if %{with bootstrap}
%install %install
mkdir -p %{buildroot}%{gem_dir} mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \ cp -a .%{gem_dir}/* \
%{buildroot}%{gem_dir}/ %{buildroot}%{gem_dir}/
%endif
if %{with bootstrap}
%check %check
pushd .%{gem_instdir} pushd .%{gem_instdir}
ruby -Ilib -e "require './test/ts_all'" ruby -Ilib -e "require './test/ts_all'"
ruby -Ilib -e "require './test/ts_all_zoneinfo.rb'" ruby -Ilib -e "require './test/ts_all_zoneinfo.rb'"
popd popd
%endif
%files %files
%dir %{gem_instdir} %dir %{gem_instdir}