fix build fail

This commit is contained in:
lyn1001 2020-09-05 18:51:39 +08:00
parent e50c5b2f64
commit ca691eae50

View File

@ -1,7 +1,8 @@
%bcond_with bootstrap
%global gem_name spring %global gem_name spring
Name: rubygem-%{gem_name} Name: rubygem-%{gem_name}
Version: 2.0.0 Version: 2.0.0
Release: 1 Release: 2
Summary: Rails application preloader Summary: Rails application preloader
License: MIT License: MIT
URL: https://github.com/rails/spring URL: https://github.com/rails/spring
@ -44,12 +45,14 @@ cp -pa .%{_bindir}/* \
%{buildroot}%{_bindir}/ %{buildroot}%{_bindir}/
find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
%if %{with bootstrap}
%check %check
pushd .%{gem_instdir} pushd .%{gem_instdir}
tar xf %{SOURCE1} tar xf %{SOURCE1}
cd %{gem_name}-%{version} cd %{gem_name}-%{version}
ruby -Ilib:test -e 'Dir.glob "./test/unit/**/*_test.rb", &method(:require)' ruby -Ilib:test -e 'Dir.glob "./test/unit/**/*_test.rb", &method(:require)'
popd popd
%endif
%files %files
%dir %{gem_instdir} %dir %{gem_instdir}
@ -65,5 +68,8 @@ popd
%doc %{gem_instdir}/README.md %doc %{gem_instdir}/README.md
%changelog %changelog
* Sat Sep 5 2020 liyanan <liyanan32@huawei.com> - 2.0.0-2
- fix build fail
* Sat Aug 22 2020 liyanan <liyanan32@huawei.com> - 2.0.0-1 * Sat Aug 22 2020 liyanan <liyanan32@huawei.com> - 2.0.0-1
- package init - package init