Browse code

Add python3-configparser, python3-urllib3, and python3-cryptography (bug 1805837)

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

xiaolin-vmware authored on 2017/02/04 07:44:40
Showing 5 changed files
... ...
@@ -1,18 +1,22 @@
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())")}
1 3
 Summary:        Interface for Python to call C code
2 4
 Name:           python-cffi
3 5
 Version:        1.5.2
4
-Release:        2%{?dist}
6
+Release:        3%{?dist}
5 7
 Url:            https://pypi.python.org/pypi/cffi
6 8
 License:        MIT
7 9
 Group:          Development/Languages/Python
10
+Vendor:         VMware, Inc.
11
+Distribution:   Photon
8 12
 Source0:        https://pypi.python.org/packages/source/c/cffi/cffi-%{version}.tar.gz
9
-%define sha1 cffi=5239b3aa4f67eed3559c09778096ecd4faeca876
13
+%define sha1    cffi=5239b3aa4f67eed3559c09778096ecd4faeca876
10 14
 
11
-BuildRequires: python2
12
-BuildRequires: python2-libs
13
-BuildRequires: python2-devel
14
-BuildRequires: python-setuptools
15
-BuildRequires: libffi
15
+BuildRequires:  python2
16
+BuildRequires:  python2-libs
17
+BuildRequires:  python2-devel
18
+BuildRequires:  python-setuptools
19
+BuildRequires:  libffi
16 20
 BuildRequires:  python-pycparser
17 21
 Requires:       python2
18 22
 Requires:       python2-libs
... ...
@@ -21,25 +25,48 @@ Requires:       python-pycparser
21 21
 %description
22 22
 Foreign Function Interface for Python, providing a convenient and reliable way of calling existing C code from Python. The interface is based on LuaJIT’s FFI.
23 23
 
24
+
25
+%package -n     python3-cffi
26
+Summary:        python-cffi
27
+BuildRequires:  python3
28
+BuildRequires:  python3-devel
29
+BuildRequires:  python3-libs
30
+BuildRequires:  python3-pycparser
31
+Requires:       python3-pycparser
32
+Requires:       python3
33
+Requires:       python3-libs
34
+
35
+%description -n python3-cffi
36
+Python 3 version.
37
+
38
+
24 39
 %prep
25 40
 %setup -q -n cffi-%{version}
26 41
 
27 42
 %build
28 43
 python setup.py build
44
+python3 setup.py build
29 45
 
30 46
 %install
31 47
 python setup.py install --prefix=%{_prefix} --root=%{buildroot}
48
+python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
32 49
 
33 50
 %files
34 51
 %defattr(-,root,root)
35 52
 %{python_sitelib}/*
36 53
 
54
+%files -n python3-cffi
55
+%defattr(-,root,root,-)
56
+%{python3_sitelib}/*
57
+
37 58
 %changelog
38
-*	Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.5.2-2
39
--	GA - Bump release of all rpms
59
+*   Thu Feb 02 2017 Xiaolin Li <xiaolinl@vmware.com> 1.5.2-3
60
+-   Added python3 site-packages.
61
+*   Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.5.2-2
62
+-   GA - Bump release of all rpms
40 63
 *   Tue Feb 23 2016 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 1.5.2-1
41 64
 -   Updated to version 1.5.2
42
-*	Thu Jan 21 2016 Anish Swaminathan <anishs@vmware.com> 1.5.0-1
43
--	Upgrade version
44
-* 	Wed Nov 18 2015 Divya Thaluru <dthaluru@vmware.com> 1.3.0-1
45
-- 	nitial packaging for Photon
65
+*   Thu Jan 21 2016 Anish Swaminathan <anishs@vmware.com> 1.5.0-1
66
+-   Upgrade version
67
+*   Wed Nov 18 2015 Divya Thaluru <dthaluru@vmware.com> 1.3.0-1
68
+-   nitial packaging for Photon
46 69
new file mode 100644
... ...
@@ -0,0 +1,65 @@
0
+%{!?python_sitelib: %define python_sitelib %(python -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")}
1
+%{!?python3_sitelib: %define python3_sitelib %(python3 -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")}
2
+
3
+Summary:        This library brings the updated configparser from Python 3.5 to Python 2.6-3.5.
4
+Name:           python-configparser
5
+Version:        3.5.0
6
+Release:        1%{?dist}
7
+License:        MIT
8
+Group:          Development/Languages/Python
9
+Vendor:         VMware, Inc.
10
+Distribution:   Photon
11
+Url:            https://pypi.python.org/pypi/configparser
12
+Source0:        configparser-%{version}.tar.gz
13
+%define sha1    configparser=8ee6b29c6a11977c0e094da1d4f5f71e7e7ac78b
14
+
15
+BuildRequires:  python2
16
+BuildRequires:  python2-libs
17
+BuildRequires:  python-setuptools
18
+
19
+Requires:       python2
20
+Requires:       python2-libs
21
+
22
+BuildArch:      noarch
23
+
24
+%description
25
+The ancient ConfigParser module available in the standard library 2.x has seen a major update in Python 3.2. This is a backport of those changes so that they can be used directly in Python 2.6 - 3.5.
26
+
27
+%package -n     python3-configparser
28
+Summary:        python-configparser
29
+BuildRequires:  python3
30
+BuildRequires:  python3-devel
31
+BuildRequires:  python3-libs
32
+Requires:       python3
33
+Requires:       python3-libs
34
+
35
+%description -n python3-configparser
36
+Python 3 version.
37
+
38
+%prep
39
+%setup -q -n configparser-%{version}
40
+
41
+%build
42
+python setup.py build
43
+python3 setup.py build
44
+
45
+%install
46
+python setup.py install --prefix=%{_prefix} --root=%{buildroot}
47
+python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
48
+
49
+%check
50
+easy_install py
51
+python setup.py test
52
+python3 setup.py test
53
+
54
+%files
55
+%defattr(-,root,root,-)
56
+%{python_sitelib}/*
57
+
58
+%files -n python3-configparser
59
+%defattr(-,root,root,-)
60
+%{python3_sitelib}/*
61
+
62
+%changelog
63
+*   Thu Feb 02 2017 Xiaolin Li <xiaolinl@vmware.com> 3.5.0-1
64
+-   Initial packaging for Photon
... ...
@@ -1,49 +1,73 @@
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())")}
1 3
 Summary:        Python cryptography library
2 4
 Name:           python-cryptography
3
-Version:        1.2.3
4
-Release:        2%{?dist}
5
+Version:        1.7.2
6
+Release:        1%{?dist}
5 7
 Url:            https://cryptography.io
6 8
 License:        ASL 2.0
7 9
 Group:          Development/Languages/Python
8
-Source0:        https://pypi.python.org/packages/source/c/cryptography/cryptography-%{version}.tar.gz
9
-%define sha1 cryptography=a8a8083e70875423bd72899ca99890b788189205
10
-BuildRequires: python2
11
-BuildRequires: python2-libs
12
-BuildRequires: python2-devel
13
-BuildRequires: python-setuptools
14
-Requires:      python-cffi
15
-BuildRequires: python-cffi
16
-BuildRequires: openssl-devel
17
-Requires:      openssl
18
-
10
+Vendor:         VMware, Inc.
11
+Distribution:   Photon
12
+Source0:        https://pypi.io/packages/source/c/cryptography/cryptography-%{version}.tar.gz
13
+%define sha1    cryptography=2b5bc62fda71992633f83164b1a74c16a784acdf
14
+BuildRequires:  python2
15
+BuildRequires:  python2-libs
16
+BuildRequires:  python2-devel
17
+BuildRequires:  python-setuptools
18
+BuildRequires:  python-cffi
19
+BuildRequires:  openssl-devel
20
+Requires:       openssl
21
+Requires:       python-cffi
19 22
 Requires:       python2
20 23
 Requires:       python2-libs
21 24
 
22 25
 %description
23 26
 Cryptography is a Python library which exposes cryptographic recipes and primitives.
24 27
 
28
+%package -n     python3-cryptography
29
+Summary:        python-cryptography
30
+BuildRequires:  python3
31
+BuildRequires:  python3-devel
32
+BuildRequires:  python3-libs
33
+BuildRequires:  python3-cffi
34
+Requires:       python3
35
+Requires:       python3-libs
36
+Requires:       python3-cffi
37
+
38
+%description -n python3-cryptography
39
+
40
+Python 3 version.
25 41
 
26 42
 %prep
27 43
 %setup -q -n cryptography-%{version}
28 44
 
29 45
 %build
30 46
 python setup.py build
47
+python3 setup.py build
31 48
 
32 49
 %install
33 50
 python setup.py install --prefix=%{_prefix} --root=%{buildroot}
51
+python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
34 52
 
35 53
 %files
36 54
 %defattr(-,root,root)
37 55
 %{python_sitelib}/*
38 56
 
57
+%files -n python3-cryptography
58
+%defattr(-,root,root,-)
59
+%{python3_sitelib}/*
60
+
39 61
 %changelog
40
-*	Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.2.3-2
41
--	GA - Bump release of all rpms
42
-*	Mon Mar 07 2016 Anish Swaminathan <anishs@vmware.com> 1.2.3-1
43
--	Upgrade to 1.2.3
44
-*	Fri Feb 26 2016 Anish Swaminathan <anishs@vmware.com> 1.2.2-1
45
--	Upgrade version to 1.2.2
46
-*	Thu Jan 21 2016 Anish Swaminathan <anishs@vmware.com> 1.2.1-1
47
--	Upgrade version
48
-* 	Wed Nov 18 2015 Divya Thaluru <dthaluru@vmware.com> 1.1-1
49
-- 	Initial packaging for Photon
62
+*   Thu Feb 02 2017 Xiaolin Li <xiaolinl@vmware.com> 1.7.2-1
63
+-   Updated to version 1.7.2 and added python3 package.
64
+*   Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.2.3-2
65
+-   GA - Bump release of all rpms
66
+*   Mon Mar 07 2016 Anish Swaminathan <anishs@vmware.com> 1.2.3-1
67
+-   Upgrade to 1.2.3
68
+*   Fri Feb 26 2016 Anish Swaminathan <anishs@vmware.com> 1.2.2-1
69
+-   Upgrade version to 1.2.2
70
+*   Thu Jan 21 2016 Anish Swaminathan <anishs@vmware.com> 1.2.1-1
71
+-   Upgrade version
72
+*   Wed Nov 18 2015 Divya Thaluru <dthaluru@vmware.com> 1.1-1
73
+-   Initial packaging for Photon
... ...
@@ -1,17 +1,21 @@
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())")}
1 3
 Summary:        Python C parser
2 4
 Name:           python-pycparser
3 5
 Version:        2.14
4
-Release:        2%{?dist}
6
+Release:        3%{?dist}
5 7
 Url:            https://pypi.python.org/pypi/pycparser
6 8
 License:        BSD
7 9
 Group:          Development/Languages/Python
10
+Vendor:         VMware, Inc.
11
+Distribution:   Photon
8 12
 Source0:        https://pypi.python.org/packages/source/p/pycparser/pycparser-2.14.tar.gz
9
-%define sha1 pycparser=922162bad4aa8503988035506c1c65bbf8690ba4
13
+%define sha1    pycparser=922162bad4aa8503988035506c1c65bbf8690ba4
10 14
 
11
-BuildRequires: python2
12
-BuildRequires: python2-libs
13
-BuildRequires: python2-devel
14
-BuildRequires: python-setuptools
15
+BuildRequires:  python2
16
+BuildRequires:  python2-libs
17
+BuildRequires:  python2-devel
18
+BuildRequires:  python-setuptools
15 19
 
16 20
 Requires:       python2
17 21
 Requires:       python2-libs
... ...
@@ -20,22 +24,40 @@ Requires:       python2-libs
20 20
 %description
21 21
 pycparser is a complete parser of the C language, written in pure Python using the PLY parsing library. It parses C code into an AST and can serve as a front-end for C compilers or analysis tools. 
22 22
 
23
+%package -n     python3-pycparser
24
+Summary:        python-pycparser
25
+BuildRequires:  python3
26
+BuildRequires:  python3-devel
27
+BuildRequires:  python3-libs
28
+Requires:       python3
29
+Requires:       python3-libs
30
+
31
+%description -n python3-pycparser
32
+Python 3 version.
33
+
23 34
 %prep
24 35
 %setup -q -n pycparser-%{version}
25 36
 
26 37
 %build
27 38
 python setup.py build
39
+python3 setup.py build
28 40
 
29 41
 %install
30 42
 python setup.py install --prefix=%{_prefix} --root=%{buildroot}
43
+python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
31 44
 
32 45
 %files
33 46
 %defattr(-,root,root)
34 47
 %{python_sitelib}/*
35 48
 
49
+%files -n python3-pycparser
50
+%defattr(-,root,root,-)
51
+%{python3_sitelib}/*
36 52
 
37 53
 %changelog
38
-*	Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 2.14-2
39
--	GA - Bump release of all rpms
40
-* Wed Nov 18 2015 Divya Thaluru <dthaluru@vmware.com> 2.14-1
41
-- Initial packaging for Photon
54
+*   Thu Feb 02 2017 Xiaolin Li <xiaolinl@vmware.com> 2.14-3
55
+-   Added python3 site-packages.
56
+*   Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 2.14-2
57
+-   GA - Bump release of all rpms
58
+*   Wed Nov 18 2015 Divya Thaluru <dthaluru@vmware.com> 2.14-1
59
+-   Initial packaging for Photon
42 60
new file mode 100644
... ...
@@ -0,0 +1,64 @@
0
+%{!?python_sitelib: %define python_sitelib %(python -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")}
1
+%{!?python3_sitelib: %define python3_sitelib %(python3 -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")}
2
+Summary:        A powerful, sanity-friendly HTTP client for Python.
3
+Name:           python-urllib3
4
+Version:        1.20
5
+Release:        1%{?dist}
6
+Url:            https://pypi.python.org/pypi/urllib3
7
+License:        MIT
8
+Group:          Development/Languages/Python
9
+Vendor:         VMware, Inc.
10
+Distribution:   Photon
11
+Source0:        https://github.com/shazow/urllib3/archive/urllib3-1.20.tar.gz
12
+%define sha1    urllib3=2608f2069d3bb1be36da9483c24aa2a0ada38501
13
+
14
+BuildRequires:  python2
15
+BuildRequires:  python2-libs
16
+BuildRequires:  python2-devel
17
+BuildRequires:  python-setuptools
18
+
19
+Requires:       python2
20
+Requires:       python2-libs
21
+
22
+BuildArch:      noarch
23
+
24
+%description
25
+urllib3 is a powerful, sanity-friendly HTTP client for Python. Much of the Python ecosystem already uses urllib3 and you should too.
26
+
27
+%package -n     python3-urllib3
28
+Summary:        python-urllib3
29
+BuildRequires:  python3
30
+BuildRequires:  python3-devel
31
+BuildRequires:  python3-libs
32
+Requires:       python3
33
+Requires:       python3-libs
34
+
35
+%description -n python3-urllib3
36
+Python 3 version.
37
+
38
+%prep
39
+%setup -q -n urllib3-%{version}
40
+
41
+%build
42
+python setup.py build
43
+python3 setup.py build
44
+
45
+%install
46
+python setup.py install --prefix=%{_prefix} --root=%{buildroot}
47
+python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
48
+
49
+%check
50
+python setup.py test
51
+python3 setup.py test
52
+
53
+%files
54
+%defattr(-,root,root)
55
+%{python_sitelib}/*
56
+
57
+%files -n python3-urllib3
58
+%defattr(-,root,root,-)
59
+%{python3_sitelib}/*
60
+
61
+%changelog
62
+*   Thu Feb 02 2017 Xiaolin Li <xiaolinl@vmware.com> 1.20-1
63
+-   Initial packaging for Photon