Browse code

Added package python3-six. (Bug 1788562)

Change-Id: I83eea14ff06f7a2b2ffd3afd8568b39bcafb56ee
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/2010
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Divya Thaluru <dthaluru@vmware.com>

xiaolin-vmware authored on 2017/01/24 10:36:19
Showing 1 changed files
... ...
@@ -1,42 +1,64 @@
1
+%{!?python_sitelib: %define python_sitelib %(python -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")}
2
+%{!?python3_sitelib: %define python3_sitelib %(python3 -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")}
3
+
1 4
 Name:           python-six
2 5
 Version:        1.10.0
3
-Release:        2%{?dist}
6
+Release:        3%{?dist}
4 7
 Summary:        Python 2 and 3 compatibility utilities
5 8
 License:        MIT
6 9
 Group:          Development/Languages/Python
7 10
 Url:            https://pypi.python.org/packages/source/s/six/six-%{version}.tar.gz
8 11
 Source0:        six-%{version}.tar.gz
9
-%define sha1 six=30d480d2e352e8e4c2aae042cf1bf33368ff0920
12
+%define sha1    six=30d480d2e352e8e4c2aae042cf1bf33368ff0920
10 13
 
11
-BuildRequires: python2
12
-BuildRequires: python2-libs
13
-BuildRequires: python-setuptools
14
+BuildRequires:  python2
15
+BuildRequires:  python2-libs
16
+BuildRequires:  python-setuptools
14 17
 
15
-Requires: python2
16
-Requires: python2-libs
18
+Requires:       python2
19
+Requires:       python2-libs
17 20
 
18 21
 BuildArch:      noarch
19 22
 
20 23
 %description
21 24
 Six is a Python 2 and 3 compatibility library. It provides utility functions for smoothing over the differences between the Python versions with the goal of writing Python code that is compatible on both Python versions. 
22 25
 
26
+%package -n     python3-six
27
+Summary:        python-six
28
+BuildRequires:  python3
29
+BuildRequires:  python3-devel
30
+BuildRequires:  python3-libs
31
+Requires:       python3
32
+Requires:       python3-libs
33
+
34
+%description -n python3-six
35
+Python 3 version.
36
+
23 37
 %prep
24 38
 %setup -n six-%{version}
25 39
 
26 40
 %build
27 41
 python setup.py build
42
+python3 setup.py build
28 43
 
29 44
 %install
30 45
 python setup.py install --prefix=%{_prefix} --root=%{buildroot}
46
+python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
31 47
 
32 48
 %files
33 49
 %defattr(-,root,root,-)
34 50
 %{python_sitelib}/*
35 51
 
52
+%files -n python3-six
53
+%defattr(-,root,root,-)
54
+%{python3_sitelib}/*
55
+
36 56
 %changelog
37
-*	Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.10.0-2
38
--	GA - Bump release of all rpms
39
-*	Thu Jan 21 2016 Anish Swaminathan <anishs@vmware.com> 1.10.0-1
40
--	Upgrade version
41
-* 	Wed Mar 04 2015 Mahmoud Bassiouny <mbassiouny@vmware.com>
42
-- 	Initial packaging for Photon
57
+*   Mon Jan 09 2017 Xiaolin Li <xiaolinl@vmware.com> 1.10.0-3
58
+-   Added python3 site-packages.
59
+*   Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.10.0-2
60
+-   GA - Bump release of all rpms
61
+*   Thu Jan 21 2016 Anish Swaminathan <anishs@vmware.com> 1.10.0-1
62
+-   Upgrade version
63
+*   Wed Mar 04 2015 Mahmoud Bassiouny <mbassiouny@vmware.com>
64
+-   Initial packaging for Photon