Browse code

Update Python3 pkg

Change-Id: I500a8d0fb401596ebbbf6a49243b412f5e974c69
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/5830
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Tapas Kundu <tkundu@vmware.com>
Reviewed-by: Sharath George

Tapas Kundu authored on 2018/10/02 03:00:34
Showing 5 changed files
... ...
@@ -1,7 +1,7 @@
1 1
 %{!?python3_sitelib: %global python3_sitelib %(python3 -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")}
2 2
 Name:           apparmor
3 3
 Version:        2.13
4
-Release:        4%{?dist}
4
+Release:        5%{?dist}
5 5
 Summary:        AppArmor is an effective and easy-to-use Linux application security system.
6 6
 License:        GNU LGPL v2.1
7 7
 URL:            https://launchpad.net/apparmor
... ...
@@ -156,9 +156,9 @@ This package contains the AppArmor module for perl.
156 156
 %patch1 -p1
157 157
 
158 158
 %build
159
-export PYTHONPATH=/usr/lib/python3.6/site-packages
159
+export PYTHONPATH=/usr/lib/python3.7/site-packages
160 160
 export PYTHON=/usr/bin/python3
161
-export PYTHON_VERSION=3.6
161
+export PYTHON_VERSION=3.7
162 162
 export PYTHON_VERSIONS=python3
163 163
 #Building libapparmor
164 164
 cd ./libraries/libapparmor
... ...
@@ -203,9 +203,9 @@ make check -C pam_apparmor
203 203
 make check -C profiles
204 204
 
205 205
 %install
206
-export PYTHONPATH=/usr/lib/python3.6/site-packages
206
+export PYTHONPATH=/usr/lib/python3.7/site-packages
207 207
 export PYTHON=/usr/bin/python3
208
-export PYTHON_VERSION=3.6
208
+export PYTHON_VERSION=3.7
209 209
 export PYTHON_VERSIONS=python3
210 210
 export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/lib/"
211 211
 cd libraries/libapparmor
... ...
@@ -343,6 +343,8 @@ make DESTDIR=%{buildroot} install
343 343
 %{perl_archlib}/perllocal.pod
344 344
 
345 345
 %changelog
346
+*   Fri Oct 05 2018 Tapas Kundu <tkundu@vmware.com> 2.13-5
347
+-   Updated using python 3.7 libs
346 348
 *   Wed Oct 03 2018 Keerthana K <keerthanak@vmware.com> 2.13-4
347 349
 -   Depcrecated ruby apparmor package.
348 350
 -   Modified the perl and python path to generic.
... ...
@@ -1,12 +1,14 @@
1
-%define python3_sitelib /usr/lib/python3.6/site-packages
1
+%define python3_sitelib /usr/lib/python3.7/site-packages
2 2
 
3 3
 Name:           cloud-init
4 4
 Version:        0.7.9
5
-Release:        14%{?dist}
5
+Release:        15%{?dist}
6 6
 Summary:        Cloud instance init scripts
7 7
 Group:          System Environment/Base
8 8
 License:        GPLv3
9 9
 URL:            http://launchpad.net/cloud-init
10
+Vendor:         VMware, Inc
11
+Distribution:   Photon
10 12
 Source0:        https://launchpad.net/cloud-init/trunk/%{version}/+download/%{name}-%{version}.tar.gz
11 13
 %define sha1 cloud-init=3b4345267e72e28b877e2e3f0735c1f672674cfc
12 14
 Source1:        cloud-photon.cfg
... ...
@@ -138,6 +140,8 @@ rm -rf $RPM_BUILD_ROOT
138 138
 
139 139
 
140 140
 %changelog
141
+*   Sun Oct 07 2018 Tapas Kundu <tkundu@vmware.com> 0.7.9-15
142
+-   Updated using python 3.7 lib
141 143
 *   Wed Feb 28 2018 Anish Swaminathan <anishs@vmware.com> 0.7.9-14
142 144
 -   Add support for systemd constructs for azure DS
143 145
 *   Mon Oct 16 2017 Vinay Kulkarni <kulakrniv@vmware.com> 0.7.9-13
... ...
@@ -160,7 +164,7 @@ rm -rf $RPM_BUILD_ROOT
160 160
 -   Enable OVF datasource by default
161 161
 *   Mon May 22 2017 Kumar Kaushik <kaushikk@vmware.com> 0.7.9-4
162 162
 -   Making cloud-init to use python3.
163
-*   Thu May 15 2017 Anish Swaminathan <anishs@vmware.com> 0.7.9-3
163
+*   Mon May 15 2017 Anish Swaminathan <anishs@vmware.com> 0.7.9-3
164 164
 -   Disable networking config by cloud-init
165 165
 *   Thu May 04 2017 Anish Swaminathan <anishs@vmware.com> 0.7.9-2
166 166
 -   Support userdata in vmx guestinfo
... ...
@@ -182,7 +186,7 @@ rm -rf $RPM_BUILD_ROOT
182 182
 *   Mon Oct 24 2016 Divya Thaluru <dthaluru@vmware.com>  0.7.6-11
183 183
 -   Enabled ssh module in cloud-init
184 184
 *   Thu May 26 2016 Divya Thaluru <dthaluru@vmware.com>  0.7.6-10
185
--   Fixed logic to restart the active services after upgrade 
185
+-   Fixed logic to restart the active services after upgrade
186 186
 *   Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 0.7.6-9
187 187
 -   GA - Bump release of all rpms
188 188
 *   Tue May 3 2016 Divya Thaluru <dthaluru@vmware.com>  0.7.6-8
... ...
@@ -4,12 +4,12 @@
4 4
 Summary:        Lightweight in-process concurrent programming
5 5
 Name:           python-greenlet
6 6
 Version:        0.4.15
7
-Release:        1%{?dist}
7
+Release:        2%{?dist}
8 8
 License:        MIT
9 9
 Group:          Development/Languages/Python
10 10
 Vendor:         VMware, Inc.
11 11
 Distribution:   Photon
12
-Url:            https://pypi.python.org/pypi/greenlet
12
+URL:            https://pypi.python.org/pypi/greenlet
13 13
 Source0:        greenlet-%{version}.tar.gz
14 14
 %define sha1    greenlet=0da9c069c38bf297923a1da0c601ef71c07ffb6d
15 15
 
... ...
@@ -18,6 +18,9 @@ BuildRequires:  python2-libs
18 18
 BuildRequires:  python-setuptools
19 19
 BuildRequires:  python2-devel
20 20
 
21
+BuildRequires:  python3
22
+BuildRequires:  python3-devel
23
+BuildRequires:  python3-libs
21 24
 Requires:       python2
22 25
 Requires:       python2-libs
23 26
 
... ...
@@ -28,9 +31,6 @@ A “greenlet”, on the other hand, is a still more primitive notion of micro-t
28 28
 
29 29
 %package -n     python3-greenlet
30 30
 Summary:        python-greenlet
31
-BuildRequires:  python3
32
-BuildRequires:  python3-devel
33
-BuildRequires:  python3-libs
34 31
 Requires:       python3
35 32
 Requires:       python3-libs
36 33
 
... ...
@@ -61,9 +61,12 @@ python2 setup.py test
61 61
 %files -n python3-greenlet
62 62
 %defattr(-,root,root,-)
63 63
 %{python3_sitelib}/*
64
-/usr/include/python3.6m/greenlet/greenlet.h
64
+/usr/include/python3.7m/greenlet/greenlet.h
65 65
 
66 66
 %changelog
67
+*   Fri Oct 05 2018 Tapas Kundu <tkundu@vmware.com> 0.4.15-2
68
+-   Updated using python 3.7
69
+-   removed buildrequires from subpackages
67 70
 *   Sun Sep 09 2018 Tapas Kundu <tkundu@vmware.com> 0.4.15-1
68 71
 -   Update to version 0.4.15
69 72
 *   Fri Aug 11 2017 Rongrong Qiu <rqiu@vmware.com> 0.4.12-3
... ...
@@ -1,24 +1,25 @@
1 1
 Summary:        A high-level scripting language
2 2
 Name:           python3
3
-Version:        3.6.1
4
-Release:        9%{?dist}
3
+Version:        3.7.0
4
+Release:        1%{?dist}
5 5
 License:        PSF
6 6
 URL:            http://www.python.org/
7 7
 Group:          System Environment/Programming
8 8
 Vendor:         VMware, Inc.
9 9
 Distribution:   Photon
10 10
 Source0:        https://www.python.org/ftp/python/%{version}/Python-%{version}.tar.xz
11
-%define sha1    Python=91d880a2a9fcfc6753cbfa132bf47a47e17e7b16
11
+%define sha1    Python=653cffa5b9f2a28150afe4705600d2e55d89b564
12 12
 Patch0:         cgi3.patch
13 13
 Patch1:         python3-support-photon-platform.patch
14
-#https://github.com/python/cpython/pull/1320/commits/a252330d53afad6f8a4645933989bb017dc35ad8
15
-Patch2:         skip-imaplib-test.patch
16 14
 BuildRequires:  pkg-config >= 0.28
17 15
 BuildRequires:  bzip2-devel
18 16
 BuildRequires:  ncurses-devel
19 17
 BuildRequires:  openssl-devel
20 18
 BuildRequires:  readline-devel
21 19
 BuildRequires:  xz-devel
20
+BuildRequires:  expat-devel >= 2.1.0
21
+BuildRequires:  libffi-devel >= 3.0.13
22
+BuildRequires:  sqlite-devel
22 23
 Requires:       ncurses
23 24
 Requires:       openssl
24 25
 Requires:       python3-libs = %{version}-%{release}
... ...
@@ -39,10 +40,6 @@ code. It is incompatible with Python 2.x releases.
39 39
 %package libs
40 40
 Summary: The libraries for python runtime
41 41
 Group: Applications/System
42
-BuildRequires:  expat-devel >= 2.1.0
43
-BuildRequires:  libffi-devel >= 3.0.13
44
-BuildRequires:  ncurses-devel
45
-BuildRequires:  sqlite-devel
46 42
 Requires:       (coreutils or toybox)
47 43
 Requires:       expat >= 2.1.0
48 44
 Requires:       libffi >= 3.0.13
... ...
@@ -134,16 +131,12 @@ The test package contains all regression tests for Python as well as the modules
134 134
 %setup -q -n Python-%{version}
135 135
 %patch0 -p1
136 136
 %patch1 -p1
137
-%patch2 -p1
138 137
 
139 138
 %build
140 139
 export OPT="${CFLAGS}"
141
-./configure \
140
+%configure \
142 141
     CFLAGS="%{optflags}" \
143 142
     CXXFLAGS="%{optflags}" \
144
-    --prefix=%{_prefix} \
145
-    --bindir=%{_bindir} \
146
-    --libdir=%{_libdir} \
147 143
     --enable-shared \
148 144
     --with-system-expat \
149 145
     --with-system-ffi \
... ...
@@ -153,9 +146,9 @@ make %{?_smp_mflags}
153 153
 %install
154 154
 [ %{buildroot} != "/"] && rm -rf %{buildroot}/*
155 155
 make DESTDIR=%{buildroot} install
156
-chmod -v 755 %{buildroot}%{_libdir}/libpython3.6m.so.1.0
156
+chmod -v 755 %{buildroot}%{_libdir}/libpython3.7m.so.1.0
157 157
 %{_fixperms} %{buildroot}/*
158
-ln -sf libpython3.6m.so %{buildroot}%{_libdir}/libpython3.6.so
158
+ln -sf libpython3.7m.so %{buildroot}%{_libdir}/libpython3.7.so
159 159
 
160 160
 # Remove unused stuff
161 161
 find %{buildroot}%{_libdir} -name '*.pyc' -delete
... ...
@@ -178,61 +171,61 @@ rm -rf %{buildroot}/*
178 178
 %{_bindir}/pydoc*
179 179
 %{_bindir}/pyvenv*
180 180
 %{_bindir}/python3
181
-%{_bindir}/python3.6
182
-%{_bindir}/python3.6m
181
+%{_bindir}/python3.7
182
+%{_bindir}/python3.7m
183 183
 %{_mandir}/*/*
184 184
 
185
-%dir %{_libdir}/python3.6
186
-%dir %{_libdir}/python3.6/site-packages
185
+%dir %{_libdir}/python3.7
186
+%dir %{_libdir}/python3.7/site-packages
187 187
 
188 188
 %{_libdir}/libpython3.so
189
-%{_libdir}/libpython3.6.so
190
-%{_libdir}/libpython3.6m.so.1.0
189
+%{_libdir}/libpython3.7.so
190
+%{_libdir}/libpython3.7m.so.1.0
191 191
 
192 192
 
193
-%exclude %{_libdir}/python3.6/ctypes/test
194
-%exclude %{_libdir}/python3.6/distutils/tests
195
-%exclude %{_libdir}/python3.6/sqlite3/test
196
-%exclude %{_libdir}/python3.6/idlelib/idle_test
197
-%exclude %{_libdir}/python3.6/test
198
-%exclude %{_libdir}/python3.6/lib-dynload/_ctypes_test.*.so
193
+%exclude %{_libdir}/python3.7/ctypes/test
194
+%exclude %{_libdir}/python3.7/distutils/tests
195
+%exclude %{_libdir}/python3.7/sqlite3/test
196
+%exclude %{_libdir}/python3.7/idlelib/idle_test
197
+%exclude %{_libdir}/python3.7/test
198
+%exclude %{_libdir}/python3.7/lib-dynload/_ctypes_test.*.so
199 199
 
200 200
 %files libs
201 201
 %defattr(-,root,root)
202 202
 %doc LICENSE README.rst
203
-%{_libdir}/python3.6
204
-%{_libdir}/python3.6/site-packages/easy_install.py
205
-%{_libdir}/python3.6/site-packages/README.txt
206
-%exclude %{_libdir}/python3.6/site-packages/
207
-%exclude %{_libdir}/python3.6/ctypes/test
208
-%exclude %{_libdir}/python3.6/distutils/tests
209
-%exclude %{_libdir}/python3.6/sqlite3/test
210
-%exclude %{_libdir}/python3.6/idlelib/idle_test
211
-%exclude %{_libdir}/python3.6/test
212
-%exclude %{_libdir}/python3.6/lib-dynload/_ctypes_test.*.so
213
-%exclude %{_libdir}/python3.6/xml
214
-%exclude %{_libdir}/python3.6/lib-dynload/pyexpat*.so
215
-%exclude %{_libdir}/python3.6/curses
216
-%exclude %{_libdir}/python3.6/lib-dynload/_curses*.so
203
+%{_libdir}/python3.7
204
+%{_libdir}/python3.7/site-packages/easy_install.py
205
+%{_libdir}/python3.7/site-packages/README.txt
206
+%exclude %{_libdir}/python3.7/site-packages/
207
+%exclude %{_libdir}/python3.7/ctypes/test
208
+%exclude %{_libdir}/python3.7/distutils/tests
209
+%exclude %{_libdir}/python3.7/sqlite3/test
210
+%exclude %{_libdir}/python3.7/idlelib/idle_test
211
+%exclude %{_libdir}/python3.7/test
212
+%exclude %{_libdir}/python3.7/lib-dynload/_ctypes_test.*.so
213
+%exclude %{_libdir}/python3.7/xml
214
+%exclude %{_libdir}/python3.7/lib-dynload/pyexpat*.so
215
+%exclude %{_libdir}/python3.7/curses
216
+%exclude %{_libdir}/python3.7/lib-dynload/_curses*.so
217 217
 
218 218
 %files  xml
219
-%{_libdir}/python3.6/xml/*
220
-%{_libdir}/python3.6/lib-dynload/pyexpat*.so
219
+%{_libdir}/python3.7/xml/*
220
+%{_libdir}/python3.7/lib-dynload/pyexpat*.so
221 221
 
222 222
 %files  curses
223
-%{_libdir}/python3.6/curses/*
224
-%{_libdir}/python3.6/lib-dynload/_curses*.so
223
+%{_libdir}/python3.7/curses/*
224
+%{_libdir}/python3.7/lib-dynload/_curses*.so
225 225
 
226 226
 %files devel
227 227
 %defattr(-,root,root)
228 228
 %{_includedir}/*
229
-%{_libdir}/pkgconfig/python-3.6.pc
230
-%{_libdir}/pkgconfig/python-3.6m.pc
229
+%{_libdir}/pkgconfig/python-3.7.pc
230
+%{_libdir}/pkgconfig/python-3.7m.pc
231 231
 %{_libdir}/pkgconfig/python3.pc
232
-%{_libdir}/libpython3.6m.so
232
+%{_libdir}/libpython3.7m.so
233 233
 %{_bindir}/python3-config
234
-%{_bindir}/python3.6-config
235
-%{_bindir}/python3.6m-config
234
+%{_bindir}/python3.7-config
235
+%{_bindir}/python3.7m-config
236 236
 
237 237
 %doc Misc/README.valgrind Misc/valgrind-python.supp Misc/gdbinit
238 238
 %{_libdir}/libpython3.so
... ...
@@ -242,27 +235,29 @@ rm -rf %{buildroot}/*
242 242
 %files tools
243 243
 %defattr(-,root,root,755)
244 244
 %doc Tools/README
245
-%{_libdir}/python3.6/lib2to3
246
-%{_bindir}/2to3-3.6
245
+%{_libdir}/python3.7/lib2to3
246
+%{_bindir}/2to3-3.7
247 247
 %exclude %{_bindir}/idle*
248 248
 
249 249
 %files pip
250 250
 %defattr(-,root,root,755)
251
-%{_libdir}/python3.6/site-packages/pip/*
252
-%{_libdir}/python3.6/site-packages/pip-9.0.1.dist-info/*
251
+%{_libdir}/python3.7/site-packages/pip/*
252
+%{_libdir}/python3.7/site-packages/pip-10.0.1.dist-info/*
253 253
 %{_bindir}/pip*
254 254
 
255 255
 %files setuptools
256 256
 %defattr(-,root,root,755)
257
-%{_libdir}/python3.6/site-packages/pkg_resources/*
258
-%{_libdir}/python3.6/site-packages/setuptools/*
259
-%{_libdir}/python3.6/site-packages/setuptools-28.8.0.dist-info/*
260
-%{_bindir}/easy_install-3.6
257
+%{_libdir}/python3.7/site-packages/pkg_resources/*
258
+%{_libdir}/python3.7/site-packages/setuptools/*
259
+%{_libdir}/python3.7/site-packages/setuptools-39.0.1.dist-info/*
260
+%{_bindir}/easy_install-3.7
261 261
 
262 262
 %files test
263
-%{_libdir}/python3.6/test/*
263
+%{_libdir}/python3.7/test/*
264 264
 
265 265
 %changelog
266
+*   Wed Sep 26 2018 Tapas Kundu <tkundu@vmware.com> 3.7.0-1
267
+-   Updated to version 3.7.0
266 268
 *   Mon Sep 18 2017 Alexey Makhalov <amakhalov@vmware.com> 3.6.1-9
267 269
 -   Requires coreutils or toybox
268 270
 -   Requires bzip2-libs
269 271
deleted file mode 100644
... ...
@@ -1,35 +0,0 @@
1
-From a252330d53afad6f8a4645933989bb017dc35ad8 Mon Sep 17 00:00:00 2001
2
-From: Victor Stinner <victor.stinner@gmail.com>
3
-Date: Thu, 27 Apr 2017 16:08:24 +0200
4
-Subject: [PATCH] bpo-30175: Skip client cert tests of test_imaplib
5
-
6
-The IMAP server cyrus.andrew.cmu.edu doesn't accept our randomly
7
-generated client x509 certificate anymore.
8
- Lib/test/test_imaplib.py | 6 ++++++
9
- 1 file changed, 6 insertions(+)
10
-
11
-diff --git a/Lib/test/test_imaplib.py b/Lib/test/test_imaplib.py
12
-index 5ef9512c3f5..a33fb714fe7 100644
13
-+++ b/Lib/test/test_imaplib.py
14
-@@ -965,6 +965,9 @@ def test_logincapa(self):
15
-             _server = self.imap_class(self.host, self.port)
16
-             self.check_logincapa(_server)
17
- 
18
-+    @unittest.skipIf(True,
19
-+                     "bpo-30175: FIXME: cyrus.andrew.cmu.edu doesn't accept "
20
-+                     "our randomly generated client x509 certificate anymore")
21
-     def test_logincapa_with_client_certfile(self):
22
-         with transient_internet(self.host):
23
-             with support.check_warnings(('', DeprecationWarning)):
24
-@@ -972,6 +975,9 @@ def test_logincapa_with_client_certfile(self):
25
-                                           certfile=CERTFILE)
26
-                 self.check_logincapa(_server)
27
- 
28
-+    @unittest.skipIf(True,
29
-+                     "bpo-30175: FIXME: cyrus.andrew.cmu.edu doesn't accept "
30
-+                     "our randomly generated client x509 certificate anymore")
31
-     def test_logincapa_with_client_ssl_context(self):
32
-         with transient_internet(self.host):
33
-             _server = self.imap_class(