Browse code

Upgrade ruby to 2.4.0 - fixes CVE-2016-2339

Change-Id: Id32051df5452902e890e8fdd66ef69b011fd5cfc
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/1971
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: suezzelur <anishs@vmware.com>

suezzelur authored on 2017/01/19 02:03:27
Showing 1 changed files
... ...
@@ -1,21 +1,21 @@
1
-Summary:	Ruby
2
-Name:		ruby
3
-Version:	2.3.0
4
-Release:	4%{?dist}
5
-License:	BSDL
6
-URL:		https://www.ruby-lang.org/en/
7
-Group:		System Environment/Security
8
-Vendor:		VMware, Inc.
1
+Summary:    Ruby
2
+Name:       ruby
3
+Version:    2.4.0
4
+Release:    1%{?dist}
5
+License:    BSDL
6
+URL:        https://www.ruby-lang.org/en/
7
+Group:      System Environment/Security
8
+Vendor:     VMware, Inc.
9 9
 Distribution: Photon
10
-Source0:	http://cache.ruby-lang.org/pub/ruby/2.3/%{name}-%{version}.tar.gz
11
-%define sha1 ruby=2dfcf7f33bda4078efca30ae28cb89cd0e36ddc4
12
-BuildRequires:	openssl-devel
13
-BuildRequires:	ca-certificates
14
-BuildRequires:	readline-devel
15
-BuildRequires:	readline
16
-Requires:	ca-certificates
17
-Requires:	openssl
18
-Requires:	gmp
10
+Source0:    http://cache.ruby-lang.org/pub/ruby/%{version}/%{name}-%{version}.tar.gz
11
+%define sha1 ruby=d44a3c50a0e742341ed3033d5db79d865151a4f4
12
+BuildRequires:  openssl-devel
13
+BuildRequires:  ca-certificates
14
+BuildRequires:  readline-devel
15
+BuildRequires:  readline
16
+Requires:   ca-certificates
17
+Requires:   openssl
18
+Requires:   gmp
19 19
 %description
20 20
 The Ruby package contains the Ruby development environment.
21 21
 This is useful for object-oriented scripting.
... ...
@@ -24,7 +24,7 @@ This is useful for object-oriented scripting.
24 24
 %setup -q
25 25
 %build
26 26
 ./configure \
27
-	--prefix=%{_prefix}   \
27
+    --prefix=%{_prefix}   \
28 28
         --enable-shared \
29 29
         --docdir=%{_docdir}/%{name}-%{version}
30 30
 make %{?_smp_mflags}
... ...
@@ -33,15 +33,14 @@ make %{?_smp_mflags}
33 33
 make DESTDIR=%{buildroot} install
34 34
 %check
35 35
 make  %{?_smp_mflags} check
36
-%post	-p /sbin/ldconfig
37
-%postun	-p /sbin/ldconfig
36
+%post   -p /sbin/ldconfig
37
+%postun -p /sbin/ldconfig
38 38
 %clean
39 39
 rm -rf %{buildroot}/*
40 40
 %files
41 41
 %defattr(-,root,root)
42 42
 %{_bindir}/*
43 43
 %{_includedir}/*
44
-%{_libdir}/*.a
45 44
 %{_libdir}/*.so
46 45
 %{_libdir}/*.so.*
47 46
 %{_libdir}/pkgconfig/*.pc
... ...
@@ -50,11 +49,13 @@ rm -rf %{buildroot}/*
50 50
 %{_docdir}/%{name}-%{version}
51 51
 %{_mandir}/man1/*
52 52
 %changelog
53
-*       Mon Oct 10 2016 ChangLee <changlee@vmware.com> 2.3.0-4
54
--       Modified %check
55
-*	Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 2.3.0-3
56
--	GA - Bump release of all rpms
57
-*   Tue Mar 09 2016 Divya Thaluru <dthaluru@vmware.com> 2.3.0-2
53
+*   Wed Jan 18 2017 Anish Swaminathan <anishs@vmware.com> 2.4.0-1
54
+-   Update to 2.4.0 - Fixes CVE-2016-2339
55
+*   Mon Oct 10 2016 ChangLee <changlee@vmware.com> 2.3.0-4
56
+-   Modified %check
57
+*   Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 2.3.0-3
58
+-   GA - Bump release of all rpms
59
+*   Wed Mar 09 2016 Divya Thaluru <dthaluru@vmware.com> 2.3.0-2
58 60
 -   Adding readline support
59 61
 *   Wed Jan 20 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 2.3.0-1
60 62
 -   Updated to 2.3.0-1
... ...
@@ -62,5 +63,5 @@ rm -rf %{buildroot}/*
62 62
 -   Added SSL support
63 63
 *   Mon Apr 6 2015 Mahmoud Bassiouny <mbassiouny@vmware.com> 2.2.1-1
64 64
 -   Version upgrade to 2.2.1
65
-*	Thu Oct 10 2014 Divya Thaluru <dthaluru@vmware.com> 2.1.3-1
66
--	Initial build.	First version
65
+*   Fri Oct 10 2014 Divya Thaluru <dthaluru@vmware.com> 2.1.3-1
66
+-   Initial build.  First version