Change-Id: I247dc72db66394af3fe78d2a74e2f795480b7053
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/2138
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: gerrit-photon <photon-checkins@vmware.com>
| ... | ... |
@@ -1,32 +1,33 @@ |
| 1 |
-Summary: A high-level scripting language |
|
| 2 |
-Name: python2 |
|
| 3 |
-Version: 2.7.11 |
|
| 4 |
-Release: 8%{?dist}
|
|
| 5 |
-License: PSF |
|
| 6 |
-URL: http://www.python.org/ |
|
| 7 |
-Group: System Environment/Programming |
|
| 8 |
-Vendor: VMware, Inc. |
|
| 9 |
-Distribution: Photon |
|
| 10 |
-Source0: http://www.python.org/ftp/python/2.7.11/Python-%{version}.tar.xz
|
|
| 11 |
-%define sha1 Python=c3b8bbe3f084c4d4ea13ffb03d75a5e22f9756ff |
|
| 12 |
-Patch0: cgi.patch |
|
| 13 |
-Patch1: added-compiler-flags-for-curses-module.patch |
|
| 14 |
-Patch2: added-pyopenssl-ipaddress-certificate-validation.patch |
|
| 15 |
-Patch3: python2-CVE-2016-5636.patch |
|
| 16 |
-BuildRequires: pkg-config >= 0.28 |
|
| 17 |
-BuildRequires: bzip2-devel |
|
| 1 |
+Summary: A high-level scripting language |
|
| 2 |
+Name: python2 |
|
| 3 |
+Version: 2.7.11 |
|
| 4 |
+Release: 9%{?dist}
|
|
| 5 |
+License: PSF |
|
| 6 |
+URL: http://www.python.org/ |
|
| 7 |
+Group: System Environment/Programming |
|
| 8 |
+Vendor: VMware, Inc. |
|
| 9 |
+Distribution: Photon |
|
| 10 |
+Source0: http://www.python.org/ftp/python/2.7.11/Python-%{version}.tar.xz
|
|
| 11 |
+%define sha1 Python=c3b8bbe3f084c4d4ea13ffb03d75a5e22f9756ff |
|
| 12 |
+Patch0: cgi.patch |
|
| 13 |
+Patch1: added-compiler-flags-for-curses-module.patch |
|
| 14 |
+Patch2: added-pyopenssl-ipaddress-certificate-validation.patch |
|
| 15 |
+Patch3: python2-CVE-2016-5636.patch |
|
| 16 |
+BuildRequires: pkg-config >= 0.28 |
|
| 17 |
+BuildRequires: bzip2-devel |
|
| 18 | 18 |
BuildRequires: openssl-devel |
| 19 |
-BuildRequires: expat >= 2.1.0 |
|
| 20 |
-BuildRequires: libffi >= 3.0.13 |
|
| 21 |
-BuildRequires: sqlite-autoconf |
|
| 22 |
-BuildRequires: ncurses-devel |
|
| 23 |
-BuildRequires: readline-devel |
|
| 24 |
-Requires: bzip2 |
|
| 25 |
-Requires: openssl |
|
| 26 |
-Requires: python2-libs = %{version}-%{release}
|
|
| 27 |
-Provides: python-sqlite |
|
| 28 |
-Provides: python(abi) |
|
| 29 |
-Provides: /bin/python |
|
| 19 |
+BuildRequires: expat >= 2.1.0 |
|
| 20 |
+BuildRequires: libffi >= 3.0.13 |
|
| 21 |
+BuildRequires: sqlite-autoconf |
|
| 22 |
+BuildRequires: ncurses-devel |
|
| 23 |
+BuildRequires: readline-devel |
|
| 24 |
+Requires: bzip2 |
|
| 25 |
+Requires: openssl |
|
| 26 |
+Requires: python2-libs = %{version}-%{release}
|
|
| 27 |
+Provides: python-sqlite |
|
| 28 |
+Provides: python(abi) |
|
| 29 |
+Provides: /bin/python |
|
| 30 |
+Provides: /bin/python2 |
|
| 30 | 31 |
|
| 31 | 32 |
%description |
| 32 | 33 |
The Python 2 package contains the Python development environment. It |
| ... | ... |
@@ -37,11 +38,11 @@ version is for backward compatibility with other dependent packages. |
| 37 | 37 |
%package libs |
| 38 | 38 |
Summary: The libraries for python runtime |
| 39 | 39 |
Group: Applications/System |
| 40 |
-Requires: sqlite-autoconf |
|
| 41 |
-Requires: expat >= 2.1.0 |
|
| 42 |
-Requires: libffi >= 3.0.13 |
|
| 43 |
-Requires: ncurses |
|
| 44 |
-Requires: coreutils |
|
| 40 |
+Requires: sqlite-autoconf |
|
| 41 |
+Requires: expat >= 2.1.0 |
|
| 42 |
+Requires: libffi >= 3.0.13 |
|
| 43 |
+Requires: ncurses |
|
| 44 |
+Requires: coreutils |
|
| 45 | 45 |
|
| 46 | 46 |
# Needed for ctypes, to load libraries, worked around for Live CDs size |
| 47 | 47 |
# Requires: binutils |
| ... | ... |
@@ -107,17 +108,17 @@ to build python programs. |
| 107 | 107 |
%build |
| 108 | 108 |
export OPT="${CFLAGS}"
|
| 109 | 109 |
./configure \ |
| 110 |
- CFLAGS="%{optflags}" \
|
|
| 111 |
- CXXFLAGS="%{optflags}" \
|
|
| 112 |
- --prefix=%{_prefix} \
|
|
| 113 |
- --bindir=%{_bindir} \
|
|
| 114 |
- --libdir=%{_libdir} \
|
|
| 115 |
- --enable-shared \ |
|
| 116 |
- --with-ssl \ |
|
| 117 |
- --with-system-expat \ |
|
| 118 |
- --with-system-ffi \ |
|
| 119 |
- --enable-unicode=ucs4 \ |
|
| 120 |
- --with-dbmliborder=gdbm:ndbm |
|
| 110 |
+ CFLAGS="%{optflags}" \
|
|
| 111 |
+ CXXFLAGS="%{optflags}" \
|
|
| 112 |
+ --prefix=%{_prefix} \
|
|
| 113 |
+ --bindir=%{_bindir} \
|
|
| 114 |
+ --libdir=%{_libdir} \
|
|
| 115 |
+ --enable-shared \ |
|
| 116 |
+ --with-ssl \ |
|
| 117 |
+ --with-system-expat \ |
|
| 118 |
+ --with-system-ffi \ |
|
| 119 |
+ --enable-unicode=ucs4 \ |
|
| 120 |
+ --with-dbmliborder=gdbm:ndbm |
|
| 121 | 121 |
make %{?_smp_mflags}
|
| 122 | 122 |
%install |
| 123 | 123 |
[ %{buildroot} != "/"] && rm -rf %{buildroot}/*
|
| ... | ... |
@@ -139,8 +140,8 @@ find %{buildroot}%{_libdir} -name '*.pyo' -delete
|
| 139 | 139 |
|
| 140 | 140 |
%check |
| 141 | 141 |
make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck}
|
| 142 |
-%post -p /sbin/ldconfig |
|
| 143 |
-%postun -p /sbin/ldconfig |
|
| 142 |
+%post -p /sbin/ldconfig |
|
| 143 |
+%postun -p /sbin/ldconfig |
|
| 144 | 144 |
%clean |
| 145 | 145 |
rm -rf %{buildroot}/*
|
| 146 | 146 |
|
| ... | ... |
@@ -220,6 +221,8 @@ rm -rf %{buildroot}/*
|
| 220 | 220 |
%{_bindir}/idle*
|
| 221 | 221 |
|
| 222 | 222 |
%changelog |
| 223 |
+* Fri Mar 10 2017 Xiaolin Li <xiaolinl@vmware.com> 2.7.11-9 |
|
| 224 |
+- Provides /bin/python2. |
|
| 223 | 225 |
* Thu Oct 27 2016 Anish Swaminathan <anishs@vmware.com> 2.7.11-8 |
| 224 | 226 |
- Patch for CVE-2016-5636 |
| 225 | 227 |
* Wed Sep 14 2016 Divya Thaluru <dthaluru@vmware.com> 2.7.11-7 |
| ... | ... |
@@ -252,4 +255,4 @@ rm -rf %{buildroot}/*
|
| 252 | 252 |
- Adding coreutils package to run time required package |
| 253 | 253 |
|
| 254 | 254 |
* Mon Apr 6 2015 Divya Thaluru <dthaluru@vmware.com> 2.7.9-1 |
| 255 |
-- Initial build. First version |
|
| 255 |
+- Initial build. First version |
| ... | ... |
@@ -1,7 +1,7 @@ |
| 1 | 1 |
Summary: A high-level scripting language |
| 2 | 2 |
Name: python3 |
| 3 | 3 |
Version: 3.5.3 |
| 4 |
-Release: 1%{?dist}
|
|
| 4 |
+Release: 2%{?dist}
|
|
| 5 | 5 |
License: PSF |
| 6 | 6 |
URL: http://www.python.org/ |
| 7 | 7 |
Group: System Environment/Programming |
| ... | ... |
@@ -26,6 +26,7 @@ Provides: python-sqlite |
| 26 | 26 |
Provides: python(abi) |
| 27 | 27 |
Provides: /usr/bin/python |
| 28 | 28 |
Provides: /bin/python |
| 29 |
+Provides: /bin/python3 |
|
| 29 | 30 |
|
| 30 | 31 |
%description |
| 31 | 32 |
The Python 3 package contains a new version of Python development environment. |
| ... | ... |
@@ -186,6 +187,8 @@ rm -rf %{buildroot}/*
|
| 186 | 186 |
%{_bindir}/idle*
|
| 187 | 187 |
|
| 188 | 188 |
%changelog |
| 189 |
+* Fri Mar 10 2017 Xiaolin Li <xiaolinl@vmware.com> 3.5.3-2 |
|
| 190 |
+- Provides /bin/python3. |
|
| 189 | 191 |
* Tue Feb 28 2017 Xiaolin Li <xiaolinl@vmware.com> 3.5.3-1 |
| 190 | 192 |
- Updated to version 3.5.3 |
| 191 | 193 |
* Thu Oct 27 2016 Anish Swaminathan <anishs@vmware.com> 3.5.1-6 |