diff --git a/rubygem-railties.spec b/rubygem-railties.spec index 67c11c5..f25a817 100644 --- a/rubygem-railties.spec +++ b/rubygem-railties.spec @@ -1,9 +1,10 @@ %global gem_name railties +%bcond_with test %{?_with_bootstrap: %global bootstrap 1} %global bootstrap 1 Name: rubygem-%{gem_name} Version: 5.2.3 -Release: 1 +Release: 2 Summary: Tools for creating, working with, and running Rails applications License: MIT URL: http://rubyonrails.org @@ -57,6 +58,7 @@ cp -p .%{_bindir}/* \ %{buildroot}%{_bindir}/ find %{buildroot}%{gem_instdir}/exe -type f | xargs chmod a+x +%if %{with test} %check ln -s %{gem_dir}/specifications/rails-%{version}.gemspec .%{gem_dir}/gems/rails.gemspec ln -s %{gem_dir}/gems/activesupport-%{version}/ .%{gem_dir}/gems/activesupport @@ -137,6 +139,7 @@ find test -type f -name '*_test.rb' -print0 | \ sort -z | \ xargs -0 -n1 -i sh -c "echo '* Test file: {}'; ruby -Itest -- '{}' || exit 255" popd +%endif %files %dir %{gem_instdir} @@ -154,5 +157,8 @@ popd %doc %{gem_instdir}/README.rdoc %changelog +* Sat Sep 5 2020 liyanan - 5.2.3-2 +- fix build fail + * Tue Aug 18 2020 huangyangke - 5.2.3-1 - package init