Change-Id: Id79395aef9a1197b66cccf372ed68c59e43b6fca
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/6229
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Srinidhi Rao <srinidhir@vmware.com>
| ... | ... |
@@ -5,10 +5,12 @@ |
| 5 | 5 |
|
| 6 | 6 |
Name: rubygem-backports |
| 7 | 7 |
Version: 3.11.4 |
| 8 |
-Release: 1%{?dist}
|
|
| 8 |
+Release: 2%{?dist}
|
|
| 9 | 9 |
Summary: Backports of Ruby features for older Ruby |
| 10 | 10 |
Group: Development/Languages |
| 11 | 11 |
License: MIT |
| 12 |
+Vendor: VMware, Inc. |
|
| 13 |
+Distribution: Photon |
|
| 12 | 14 |
URL: http://github.com/marcandre/backports |
| 13 | 15 |
Source0: https://rubygems.org/gems/backports-%{version}.gem
|
| 14 | 16 |
%define sha1 backports=edf08f3a0d9e202048857d78ddda44e59294084c |
| ... | ... |
@@ -34,14 +36,27 @@ Essential backports that enable many of the nice features of Ruby 1.8.7 up to |
| 34 | 34 |
%build |
| 35 | 35 |
%install |
| 36 | 36 |
gem install -V --local --force --install-dir %{buildroot}/%{gemdir} %{SOURCE0}
|
| 37 |
+ |
|
| 38 |
+%check |
|
| 39 |
+cd %{buildroot}%{gemdir}/gems/backports-%{version}
|
|
| 40 |
+# Removal of alias_method_chain method in Rails 5.1 version creates issue |
|
| 41 |
+# since the existing testsuite doesn't reflect the change. To avoid rake |
|
| 42 |
+# to abort and continue the tests following fix is done. |
|
| 43 |
+# ref: https://github.com/marcandre/backports/issues/114 |
|
| 44 |
+sed -i "s/^/#/" lib/backports/rails/module.rb |
|
| 45 |
+rake test |
|
| 46 |
+ |
|
| 37 | 47 |
%files |
| 38 | 48 |
%defattr(-,root,root,-) |
| 39 | 49 |
%{gemdir}
|
| 40 | 50 |
|
| 51 |
+ |
|
| 41 | 52 |
%changelog |
| 53 |
+* Fri Nov 23 2018 Sujay G <gsujay@vmware.com> 3.11.4-2 |
|
| 54 |
+- Updated %check section |
|
| 42 | 55 |
* Tue Sep 11 2018 srinidhira0 <srinidhir@vmware.com> 3.11.4-1 |
| 43 | 56 |
- Update to version 3.11.4 |
| 44 |
-* Fri Aug 2 2017 Kumar Kaushik <kaushikk@vmware.com> 3.7.0-2 |
|
| 57 |
+* Wed Aug 2 2017 Kumar Kaushik <kaushikk@vmware.com> 3.7.0-2 |
|
| 45 | 58 |
- Adding requires for test support. |
| 46 | 59 |
* Tue Mar 28 2017 Xiaolin Li <xiaolinl@vmware.com> 3.7.0-1 |
| 47 | 60 |
- Updated to version 3.7.0. |