commit
2cf80e7991
@ -1,7 +1,8 @@
|
||||
%bcond_with bootstrap
|
||||
%global gem_name spring
|
||||
Name: rubygem-%{gem_name}
|
||||
Version: 2.0.0
|
||||
Release: 1
|
||||
Release: 2
|
||||
Summary: Rails application preloader
|
||||
License: MIT
|
||||
URL: https://github.com/rails/spring
|
||||
@ -44,12 +45,14 @@ cp -pa .%{_bindir}/* \
|
||||
%{buildroot}%{_bindir}/
|
||||
find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
|
||||
|
||||
%if %{with bootstrap}
|
||||
%check
|
||||
pushd .%{gem_instdir}
|
||||
tar xf %{SOURCE1}
|
||||
cd %{gem_name}-%{version}
|
||||
ruby -Ilib:test -e 'Dir.glob "./test/unit/**/*_test.rb", &method(:require)'
|
||||
popd
|
||||
%endif
|
||||
|
||||
%files
|
||||
%dir %{gem_instdir}
|
||||
@ -65,5 +68,8 @@ popd
|
||||
%doc %{gem_instdir}/README.md
|
||||
|
||||
%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
|
||||
- package init
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user