Browse code

Built with copy preserve mode and fixed %check for ruby

Change-Id: I5561255f9e7846b9d39fbe696a08984aeb8d8c50
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/3698
Reviewed-by: Danut Moraru <dmoraru@vmware.com>
Tested-by: gerrit-photon <photon-checkins@vmware.com>

changpil authored on 2017/09/06 05:39:12
Showing 1 changed files
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:    Ruby
2 2
 Name:       ruby
3 3
 Version:    2.4.1
4
-Release:    3%{?dist}
4
+Release:    4%{?dist}
5 5
 License:    BSDL
6 6
 URL:        https://www.ruby-lang.org/en/
7 7
 Group:      System Environment/Security
... ...
@@ -38,12 +38,15 @@ This is useful for object-oriented scripting.
38 38
     --prefix=%{_prefix}   \
39 39
         --enable-shared \
40 40
         --docdir=%{_docdir}/%{name}-%{version}
41
-make %{?_smp_mflags}
41
+make %{?_smp_mflags} COPY="cp -p"
42 42
 %install
43 43
 [ %{buildroot} != "/"] && rm -rf %{buildroot}/*
44 44
 make DESTDIR=%{buildroot} install
45 45
 %check
46
-make  %{?_smp_mflags} check
46
+chmod g+w . -R
47
+useradd test -G root -m
48
+sudo -u test  make check TESTS="-v"
49
+
47 50
 %post   -p /sbin/ldconfig
48 51
 %postun -p /sbin/ldconfig
49 52
 %clean
... ...
@@ -60,6 +63,8 @@ rm -rf %{buildroot}/*
60 60
 %{_docdir}/%{name}-%{version}
61 61
 %{_mandir}/man1/*
62 62
 %changelog
63
+*   Tue Sep 05 2017 Chang Lee <changlee@vmware.com> 2.4.1-4
64
+-   Built with copy preserve mode and fixed %check
63 65
 *   Mon Jul 24 2017 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 2.4.1-3
64 66
 -   [security] CVE-2017-9228
65 67
 *   Tue Jun 13 2017 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 2.4.1-2