Browse code

Added package python3-six. (Bug 1788562)

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

xiaolin-vmware authored on 2017/01/27 04:01:40
Showing 1 changed files
... ...
@@ -1,48 +1,72 @@
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:        3%{?dist}
6
+Release:        4%{?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
+
36
+Python 3 version.
37
+
23 38
 %prep
24 39
 %setup -n six-%{version}
25 40
 
26 41
 %build
27 42
 python setup.py build
43
+python3 setup.py build
28 44
 
29 45
 %install
30 46
 python setup.py install --prefix=%{_prefix} --root=%{buildroot}
47
+python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
31 48
 
32 49
 %check
33 50
 easy_install py
34 51
 %{__python} test_six.py
52
+python3 test_six.py
35 53
 
36 54
 %files
37 55
 %defattr(-,root,root,-)
38 56
 %{python_sitelib}/*
39 57
 
58
+%files -n python3-six
59
+%defattr(-,root,root,-)
60
+%{python3_sitelib}/*
61
+
40 62
 %changelog
41
-*       Mon Oct 10 2016 ChangLee <changlee@vmware.com> 1.10.0-3
42
--       Modified %check
43
-*	Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.10.0-2
44
--	GA - Bump release of all rpms
45
-*	Thu Jan 21 2016 Anish Swaminathan <anishs@vmware.com> 1.10.0-1
46
--	Upgrade version
47
-* 	Wed Mar 04 2015 Mahmoud Bassiouny <mbassiouny@vmware.com>
48
-- 	Initial packaging for Photon
63
+*   Mon Jan 09 2017 Xiaolin Li <xiaolinl@vmware.com> 1.10.0-4
64
+-   Added python3 site-packages.
65
+*   Mon Oct 10 2016 ChangLee <changlee@vmware.com> 1.10.0-3
66
+-   Modified %check
67
+*   Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.10.0-2
68
+-   GA - Bump release of all rpms
69
+*   Thu Jan 21 2016 Anish Swaminathan <anishs@vmware.com> 1.10.0-1
70
+-   Upgrade version
71
+*   Wed Mar 04 2015 Mahmoud Bassiouny <mbassiouny@vmware.com>
72
+-   Initial packaging for Photon