Browse code

Added more python packages requested by bug 1820176.

Change-Id: Ic61893000e6f273e903e43655ea2ebdf7f579880
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/2147
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Anish Swaminathan <anishs@vmware.com>

xiaolin-vmware authored on 2017/03/14 23:38:55
Showing 11 changed files
... ...
@@ -4,7 +4,7 @@
4 4
 Summary:        An asynchronous networking framework written in Python
5 5
 Name:           python-Twisted
6 6
 Version:        17.1.0
7
-Release:        1%{?dist}
7
+Release:        2%{?dist}
8 8
 License:        MIT
9 9
 Group:          Development/Languages/Python
10 10
 Vendor:         VMware, Inc.
... ...
@@ -18,10 +18,11 @@ BuildRequires:  python2-libs
18 18
 BuildRequires:  python2-devel
19 19
 BuildRequires:  python-setuptools
20 20
 BuildRequires:  python-incremental
21
+BuildRequires:  python-zope.interface
21 22
 
22 23
 Requires:       python2
23 24
 Requires:       python2-libs
24
-requires:       python-zope.interface
25
+Requires:       python-zope.interface
25 26
 
26 27
 BuildArch:      x86_64
27 28
 
... ...
@@ -35,9 +36,12 @@ Summary:        python-Twisted
35 35
 BuildRequires:  python3-devel
36 36
 BuildRequires:  python3-libs
37 37
 BuildRequires:  python3-incremental
38
+BuildRequires:  python3-zope.interface
38 39
 
39 40
 Requires:       python3
40 41
 Requires:       python3-libs
42
+Requires:       python3-zope.interface
43
+
41 44
 %description -n python3-Twisted
42 45
 Python 3 version.
43 46
 
... ...
@@ -62,6 +66,8 @@ python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
62 62
 %{_bindir}/*
63 63
 
64 64
 %changelog
65
+*   Tue Mar 14 2017 Anish Swaminathan <anishs@vmware.com> 17.1.0-2
66
+-   Change requires
65 67
 *   Wed Mar 01 2017 Xiaolin Li <xiaolinl@vmware.com> 17.1.0-1
66 68
 -   Added python3 package and updated to version 17.1.0.
67 69
 *   Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 15.5.0-2
68 70
new file mode 100644
... ...
@@ -0,0 +1,75 @@
0
+%{!?python2_sitelib: %define python2_sitelib %(python2 -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:        Attributes without boilerplate.
4
+Name:           python-attrs
5
+Version:        16.3.0
6
+Release:        1%{?dist}
7
+Url:            https://pypi.python.org/pypi/attrs
8
+License:        MIT
9
+Group:          Development/Languages/Python
10
+Vendor:         VMware, Inc.
11
+Distribution:   Photon
12
+Source0:        attrs-%{version}.tar.gz
13
+%define sha1    attrs=ce3d6456b024a21cc20291d605964dbcff205e64
14
+
15
+BuildArch:      noarch
16
+
17
+BuildRequires:  python2
18
+BuildRequires:  python2-libs
19
+BuildRequires:  python2-devel
20
+BuildRequires:  python-setuptools
21
+
22
+Requires:       python2
23
+Requires:       python2-libs
24
+
25
+%description
26
+Attributes without boilerplate.
27
+
28
+%package -n     python3-attrs
29
+Summary:        python-attrs
30
+BuildRequires:  python3
31
+BuildRequires:  python3-devel
32
+BuildRequires:  python3-libs
33
+
34
+Requires:       python3
35
+Requires:       python3-libs
36
+
37
+%description -n python3-attrs
38
+
39
+Python 3 version.
40
+
41
+%prep
42
+%setup -q -n attrs-%{version}
43
+rm -rf ../p3dir
44
+cp -a . ../p3dir
45
+
46
+%build
47
+python2 setup.py build
48
+pushd ../p3dir
49
+python3 setup.py build
50
+popd
51
+
52
+%install
53
+python2 setup.py install --prefix=%{_prefix} --root=%{buildroot}
54
+pushd ../p3dir
55
+python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
56
+popd
57
+
58
+%check
59
+python2 setup.py test
60
+pushd ../p3dir
61
+python3 setup.py test
62
+popd
63
+
64
+%files
65
+%defattr(-,root,root)
66
+%{python2_sitelib}/*
67
+
68
+%files -n python3-attrs
69
+%defattr(-,root,root,-)
70
+%{python3_sitelib}/*
71
+
72
+%changelog
73
+*   Mon Mar 13 2017 Xiaolin Li <xiaolinl@vmware.com> 16.3.0-1
74
+-   Initial packaging for Photon
... ...
@@ -2,15 +2,15 @@
2 2
 %{!?python3_sitelib: %define python3_sitelib %(python3 -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")}
3 3
 Summary:        Interface for Python to call C code
4 4
 Name:           python-cffi
5
-Version:        1.5.2
6
-Release:        3%{?dist}
5
+Version:        1.9.1
6
+Release:        1%{?dist}
7 7
 Url:            https://pypi.python.org/pypi/cffi
8 8
 License:        MIT
9 9
 Group:          Development/Languages/Python
10 10
 Vendor:         VMware, Inc.
11 11
 Distribution:   Photon
12 12
 Source0:        https://pypi.python.org/packages/source/c/cffi/cffi-%{version}.tar.gz
13
-%define sha1    cffi=5239b3aa4f67eed3559c09778096ecd4faeca876
13
+%define sha1    cffi=16265a4b305d433fb9089b19278502e904b0cb43
14 14
 
15 15
 BuildRequires:  python2
16 16
 BuildRequires:  python2-libs
... ...
@@ -60,6 +60,8 @@ python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
60 60
 %{python3_sitelib}/*
61 61
 
62 62
 %changelog
63
+*   Mon Mar 13 2017 Xiaolin Li <xiaolinl@vmware.com> 1.9.1-1
64
+-   Updated to version 1.9.1.
63 65
 *   Thu Feb 02 2017 Xiaolin Li <xiaolinl@vmware.com> 1.5.2-3
64 66
 -   Added python3 site-packages.
65 67
 *   Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.5.2-2
66 68
new file mode 100644
... ...
@@ -0,0 +1,75 @@
0
+%{!?python2_sitelib: %define python2_sitelib %(python2 -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:        Symbolic constants in Python.
4
+Name:           python-constantly
5
+Version:        15.1.0
6
+Release:        1%{?dist}
7
+Url:            https://pypi.python.org/pypi/constantly
8
+License:        MIT
9
+Group:          Development/Languages/Python
10
+Vendor:         VMware, Inc.
11
+Distribution:   Photon
12
+Source0:        constantly-%{version}.tar.gz
13
+%define sha1    constantly=02e60c17889d029e48a52a74259462e087a3dcdd
14
+
15
+BuildArch:      noarch
16
+
17
+BuildRequires:  python2
18
+BuildRequires:  python2-libs
19
+BuildRequires:  python2-devel
20
+BuildRequires:  python-setuptools
21
+
22
+Requires:       python2
23
+Requires:       python2-libs
24
+
25
+%description
26
+A library that provides symbolic constant support. It includes collections and constants with text, numeric, and bit flag values. Originally twisted.python.constants from the Twisted project.
27
+
28
+%package -n     python3-constantly
29
+Summary:        python-constantly
30
+BuildRequires:  python3
31
+BuildRequires:  python3-devel
32
+BuildRequires:  python3-libs
33
+
34
+Requires:       python3
35
+Requires:       python3-libs
36
+
37
+%description -n python3-constantly
38
+
39
+Python 3 version.
40
+
41
+%prep
42
+%setup -q -n constantly-%{version}
43
+rm -rf ../p3dir
44
+cp -a . ../p3dir
45
+
46
+%build
47
+python2 setup.py build
48
+pushd ../p3dir
49
+python3 setup.py build
50
+popd
51
+
52
+%install
53
+python2 setup.py install --prefix=%{_prefix} --root=%{buildroot}
54
+pushd ../p3dir
55
+python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
56
+popd
57
+
58
+%check
59
+python2 setup.py test
60
+pushd ../p3dir
61
+python3 setup.py test
62
+popd
63
+
64
+%files
65
+%defattr(-,root,root)
66
+%{python2_sitelib}/*
67
+
68
+%files -n python3-constantly
69
+%defattr(-,root,root,-)
70
+%{python3_sitelib}/*
71
+
72
+%changelog
73
+*   Mon Mar 13 2017 Xiaolin Li <xiaolinl@vmware.com> 15.1.0-1
74
+-   Initial packaging for Photon
0 75
new file mode 100644
... ...
@@ -0,0 +1,79 @@
0
+%{!?python2_sitelib: %define python2_sitelib %(python2 -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:        Internationalized Domain Names in Applications (IDNA).
4
+Name:           python-idna
5
+Version:        2.5
6
+Release:        1%{?dist}
7
+Url:            https://pypi.python.org/pypi/idna
8
+License:        BSD-like
9
+Group:          Development/Languages/Python
10
+Vendor:         VMware, Inc.
11
+Distribution:   Photon
12
+Source0:        idna-%{version}.tar.gz
13
+%define sha1    idna=499531b72bf0440ded6ce7f079a1f979270ae2d0
14
+
15
+BuildArch:      noarch
16
+
17
+BuildRequires:  python2
18
+BuildRequires:  python2-libs
19
+BuildRequires:  python2-devel
20
+BuildRequires:  python-setuptools
21
+
22
+Requires:       python2
23
+Requires:       python2-libs
24
+
25
+%description
26
+Support for the Internationalised Domain Names in Applications (IDNA) protocol as specified in RFC 5891. This is the latest version of the protocol and is sometimes referred to as “IDNA 2008”.
27
+
28
+This library also provides support for Unicode Technical Standard 46, Unicode IDNA Compatibility Processing.
29
+
30
+This acts as a suitable replacement for the “encodings.idna” module that comes with the Python standard library, but only supports the old, deprecated IDNA specification (RFC 3490).
31
+
32
+%package -n     python3-idna
33
+Summary:        python-idna
34
+BuildRequires:  python3
35
+BuildRequires:  python3-devel
36
+BuildRequires:  python3-libs
37
+
38
+Requires:       python3
39
+Requires:       python3-libs
40
+
41
+%description -n python3-idna
42
+
43
+Python 3 version.
44
+
45
+%prep
46
+%setup -q -n idna-%{version}
47
+rm -rf ../p3dir
48
+cp -a . ../p3dir
49
+
50
+%build
51
+python2 setup.py build
52
+pushd ../p3dir
53
+python3 setup.py build
54
+popd
55
+
56
+%install
57
+python2 setup.py install --prefix=%{_prefix} --root=%{buildroot}
58
+pushd ../p3dir
59
+python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
60
+popd
61
+
62
+%check
63
+python2 setup.py test
64
+pushd ../p3dir
65
+python3 setup.py test
66
+popd
67
+
68
+%files
69
+%defattr(-,root,root)
70
+%{python2_sitelib}/*
71
+
72
+%files -n python3-idna
73
+%defattr(-,root,root,-)
74
+%{python3_sitelib}/*
75
+
76
+%changelog
77
+*   Mon Mar 13 2017 Xiaolin Li <xiaolinl@vmware.com> 2.5-1
78
+-   Initial packaging for Photon
0 79
new file mode 100644
... ...
@@ -0,0 +1,83 @@
0
+%{!?python2_sitelib: %define python2_sitelib %(python2 -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:        A collection of ASN.1-based protocols modules.
4
+Name:           python-pyasn1-modules
5
+Version:        0.0.8
6
+Release:        1%{?dist}
7
+Url:            https://pypi.python.org/pypi/pyasn1-modules
8
+License:        BSD
9
+Group:          Development/Languages/Python
10
+Vendor:         VMware, Inc.
11
+Distribution:   Photon
12
+Source0:        pyasn1-modules-%{version}.tar.gz
13
+%define sha1    pyasn1-modules=0ee39382b5b97c8694a3373706edc1baea2e0e71
14
+
15
+BuildArch:      noarch
16
+
17
+BuildRequires:  python2
18
+BuildRequires:  python2-libs
19
+BuildRequires:  python2-devel
20
+BuildRequires:  python-setuptools
21
+
22
+Requires:       python2
23
+Requires:       python2-libs
24
+
25
+%description
26
+This is a small but growing collection of ASN.1 data structures expressed in Python terms using pyasn1 data model.
27
+
28
+It’s thought to be useful to protocol developers and testers.
29
+
30
+All modules are py2k/py3k-compliant.
31
+
32
+If you happen to convert some ASN.1 module into pyasn1 that is not yet present in this collection and wish to contribute - please send it to me.
33
+
34
+Written by Ilya Etingof <ilya@glas.net>.
35
+
36
+%package -n     python3-pyasn1-modules
37
+Summary:        python-pyasn1-modules
38
+BuildRequires:  python3
39
+BuildRequires:  python3-devel
40
+BuildRequires:  python3-libs
41
+
42
+Requires:       python3
43
+Requires:       python3-libs
44
+
45
+%description -n python3-pyasn1-modules
46
+
47
+Python 3 version.
48
+
49
+%prep
50
+%setup -q -n pyasn1-modules-%{version}
51
+rm -rf ../p3dir
52
+cp -a . ../p3dir
53
+
54
+%build
55
+python2 setup.py build
56
+pushd ../p3dir
57
+python3 setup.py build
58
+popd
59
+
60
+%install
61
+python2 setup.py install --prefix=%{_prefix} --root=%{buildroot}
62
+pushd ../p3dir
63
+python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
64
+popd
65
+
66
+%check
67
+python2 setup.py test
68
+pushd ../p3dir
69
+python3 setup.py test
70
+popd
71
+
72
+%files
73
+%defattr(-,root,root)
74
+%{python2_sitelib}/*
75
+
76
+%files -n python3-pyasn1-modules
77
+%defattr(-,root,root,-)
78
+%{python3_sitelib}/*
79
+
80
+%changelog
81
+*   Mon Mar 13 2017 Xiaolin Li <xiaolinl@vmware.com> 0.0.8-1
82
+-   Initial packaging for Photon
... ...
@@ -1,16 +1,19 @@
1
+%{!?python2_sitelib: %define python2_sitelib %(python2 -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-pyasn1
2
-Version:        0.1.9
3
-Release:        2%{?dist}
5
+Version:        0.2.3
6
+Release:        1%{?dist}
4 7
 Summary:        Implementation of ASN.1 types and codecs in Python programming language
5 8
 License:        BSD
6 9
 Group:          Development/Languages/Python
7 10
 Url:            https://pypi.python.org/packages/source/p/pyasn1/pyasn1-%{version}.tar.gz
8
-Source0:        %{name}-%{version}.tar.gz
9
-%define sha1 python-pyasn1=d19599c5d9d039ead21ffcd1a2392c29a838ae03
11
+Source0:        pyasn1-%{version}.tar.gz
12
+%define sha1    pyasn1=e30253a024d1388a96be8e84245a0d38f47467ff
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 18
 Requires: python2
16 19
 Requires: python2-libs
... ...
@@ -20,25 +23,52 @@ BuildArch:      noarch
20 20
 %description
21 21
 This is an implementation of ASN.1 types and codecs in Python programming language. It has been first written to support particular protocol (SNMP) but then generalized to be suitable for a wide range of protocols based on ASN.1 specification.
22 22
 
23
+%package -n     python3-pyasn1
24
+Summary:        python-pyasn1
25
+BuildRequires:  python3
26
+BuildRequires:  python3-devel
27
+BuildRequires:  python3-libs
28
+
29
+Requires:       python3
30
+Requires:       python3-libs
31
+
32
+%description -n python3-pyasn1
33
+
34
+Python 3 version.
35
+
23 36
 %prep
24 37
 %setup -n pyasn1-%{version}
38
+rm -rf ../p3dir
39
+cp -a . ../p3dir
25 40
 
26 41
 %build
27
-python setup.py build
42
+python2 setup.py build
43
+pushd ../p3dir
44
+python3 setup.py build
45
+popd
28 46
 
29 47
 %install
30
-python setup.py install --prefix=%{_prefix} --root=%{buildroot}
48
+python2 setup.py install --prefix=%{_prefix} --root=%{buildroot}
49
+pushd ../p3dir
50
+python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
51
+popd
31 52
 
32 53
 %files
33 54
 %defattr(-,root,root,-)
34 55
 %{python_sitelib}/*
35 56
 
57
+%files -n python3-pyasn1
58
+%defattr(-,root,root,-)
59
+%{python3_sitelib}/*
60
+
36 61
 %changelog
37
-*	Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 0.1.9-2
38
--	GA - Bump release of all rpms
39
-* Tue Feb 23 2016 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 0.1.9-1
40
-- Upgraded to version 0.1.9
41
-* Thu Aug 6 2015 Anish Swaminathan <anishs@vmware.com>
42
-- Added sha1sum
43
-* Fri Mar 13 2015 Mahmoud Bassiouny <mbassiouny@vmware.com>
44
-- Initial packaging for Photon
62
+*   Mon Mar 13 2017 Xiaolin Li <xiaolinl@vmware.com> 0.2.3-1
63
+-   Updated to version 0.2.3.
64
+*   Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 0.1.9-2
65
+-   GA - Bump release of all rpms
66
+*   Tue Feb 23 2016 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 0.1.9-1
67
+-   Upgraded to version 0.1.9
68
+*   Thu Aug 6 2015 Anish Swaminathan <anishs@vmware.com>
69
+-   Added sha1sum
70
+*   Fri Mar 13 2015 Mahmoud Bassiouny <mbassiouny@vmware.com>
71
+-   Initial packaging for Photon
... ...
@@ -2,15 +2,15 @@
2 2
 %{!?python3_sitelib: %define python3_sitelib %(python3 -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")}
3 3
 Summary:        Python C parser
4 4
 Name:           python-pycparser
5
-Version:        2.14
6
-Release:        3%{?dist}
5
+Version:        2.17
6
+Release:        1%{?dist}
7 7
 Url:            https://pypi.python.org/pypi/pycparser
8 8
 License:        BSD
9 9
 Group:          Development/Languages/Python
10 10
 Vendor:         VMware, Inc.
11 11
 Distribution:   Photon
12
-Source0:        https://pypi.python.org/packages/source/p/pycparser/pycparser-2.14.tar.gz
13
-%define sha1    pycparser=922162bad4aa8503988035506c1c65bbf8690ba4
12
+Source0:        https://pypi.python.org/packages/source/p/pycparser/pycparser-2.17.tar.gz
13
+%define sha1    pycparser=afc1f70c6fce0e196dece88d6da3b8d5b2af6297
14 14
 
15 15
 BuildRequires:  python2
16 16
 BuildRequires:  python2-libs
... ...
@@ -55,6 +55,8 @@ python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
55 55
 %{python3_sitelib}/*
56 56
 
57 57
 %changelog
58
+*   Mon Mar 13 2017 Xiaolin Li <xiaolinl@vmware.com> 2.17-1
59
+-   Updated to version 2.17.
58 60
 *   Thu Feb 02 2017 Xiaolin Li <xiaolinl@vmware.com> 2.14-3
59 61
 -   Added python3 site-packages.
60 62
 *   Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 2.14-2
61 63
new file mode 100644
... ...
@@ -0,0 +1,75 @@
0
+%{!?python2_sitelib: %define python2_sitelib %(python2 -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:        Python parsing module.
4
+Name:           python-pyparsing
5
+Version:        2.1.10
6
+Release:        1%{?dist}
7
+Url:            https://pypi.python.org/pypi/pyparsing/2.1.10
8
+License:        MIT
9
+Group:          Development/Languages/Python
10
+Vendor:         VMware, Inc.
11
+Distribution:   Photon
12
+Source0:        pyparsing-%{version}.tar.gz
13
+%define sha1    pyparsing=3fc0a5109b6b178899927b773f77a32d504ee00f
14
+
15
+BuildArch:      noarch
16
+
17
+BuildRequires:  python2
18
+BuildRequires:  python2-libs
19
+BuildRequires:  python2-devel
20
+BuildRequires:  python-setuptools
21
+
22
+Requires:       python2
23
+Requires:       python2-libs
24
+
25
+%description
26
+Python parsing module.
27
+
28
+%package -n     python3-pyparsing
29
+Summary:        python-pyparsing
30
+BuildRequires:  python3
31
+BuildRequires:  python3-devel
32
+BuildRequires:  python3-libs
33
+
34
+Requires:       python3
35
+Requires:       python3-libs
36
+
37
+%description -n python3-pyparsing
38
+
39
+Python 3 version.
40
+
41
+%prep
42
+%setup -q -n pyparsing-%{version}
43
+rm -rf ../p3dir
44
+cp -a . ../p3dir
45
+
46
+%build
47
+python2 setup.py build
48
+pushd ../p3dir
49
+python3 setup.py build
50
+popd
51
+
52
+%install
53
+python2 setup.py install --prefix=%{_prefix} --root=%{buildroot}
54
+pushd ../p3dir
55
+python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
56
+popd
57
+
58
+%check
59
+python2 setup.py test
60
+pushd ../p3dir
61
+python3 setup.py test
62
+popd
63
+
64
+%files
65
+%defattr(-,root,root)
66
+%{python2_sitelib}/*
67
+
68
+%files -n python3-pyparsing
69
+%defattr(-,root,root,-)
70
+%{python3_sitelib}/*
71
+
72
+%changelog
73
+*   Mon Mar 13 2017 Xiaolin Li <xiaolinl@vmware.com> 2.1.10-1
74
+-   Initial packaging for Photon
... ...
@@ -3,15 +3,15 @@
3 3
 
4 4
 Summary:        Awesome Python HTTP Library That's Actually Usable
5 5
 Name:           python-requests
6
-Version:        2.9.1
7
-Release:        3%{?dist}
6
+Version:        2.13.0
7
+Release:        1%{?dist}
8 8
 License:        Apache2
9 9
 Group:          Development/Languages/Python
10 10
 Vendor:         VMware, Inc.
11 11
 Distribution:   Photon
12 12
 Url:            http://python-requests.org
13 13
 Source0:        http://pypi.python.org/packages/source/r/requests/requests-%{version}.tar.gz
14
-%define sha1 requests=17f01c47a0d7c676f6291608ef2f43db3fa74095
14
+%define sha1    requests=827f7c8abb5a57d980d9870908724613b8b120c1
15 15
 
16 16
 BuildRequires:  python2
17 17
 BuildRequires:  python2-libs
... ...
@@ -78,6 +78,8 @@ python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
78 78
 %{python3_sitelib}/*
79 79
 
80 80
 %changelog
81
+*   Mon Mar 13 2017 Xiaolin Li <xiaolinl@vmware.com> 2.13.0-1
82
+-   Updated to version 2.13.0.
81 83
 *   Wed Mar 01 2017 Xiaolin Li <xiaolinl@vmware.com> 2.9.1-3
82 84
 -   Added python3 package.
83 85
 *   Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 2.9.1-2
... ...
@@ -1,19 +1,22 @@
1
+%{!?python2_sitelib: %define python2_sitelib %(python2 -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-zope.interface
2
-Version:        4.1.3
3
-Release:        2%{?dist}
5
+Version:        4.3.3
6
+Release:        1%{?dist}
4 7
 Url:            https://github.com/zopefoundation/zope.interface
5 8
 Summary:        Interfaces for Python
6 9
 License:        ZPL 2.1
7 10
 Group:          Development/Languages/Python
8 11
 Source0:        https://pypi.python.org/packages/source/z/zope.interface/zope.interface-%{version}.tar.gz
9
-%define sha1 zope.interface=207161e27880d07679aff6d712ed12f55e3d91b6
12
+%define sha1 zope.interface=66bd8e4af0f16468914fefc90ba9cca23e66cd9d
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 18
 Requires:       python2
16
-Requires:		python2-libs
19
+Requires:       python2-libs
17 20
 
18 21
 %description
19 22
 This package is intended to be independently reusable in any Python project. It is maintained by the Zope Toolkit project.
... ...
@@ -22,21 +25,47 @@ This package provides an implementation of “object interfaces” for Python. I
22 22
 
23 23
 For detailed documentation, please see http://docs.zope.org/zope.interface
24 24
 
25
+%package -n     python3-zope.interface
26
+Summary:        python-zope.interface
27
+BuildRequires:  python3
28
+BuildRequires:  python3-devel
29
+BuildRequires:  python3-libs
30
+
31
+Requires:       python3
32
+Requires:       python3-libs
33
+
34
+%description -n python3-zope.interface
35
+
36
+Python 3 version.
25 37
 %prep
26 38
 %setup -q -n zope.interface-%{version}
39
+rm -rf ../p3dir
40
+cp -a . ../p3dir
27 41
 
28 42
 %build
29
-python setup.py build
43
+python2 setup.py build
44
+pushd ../p3dir
45
+python3 setup.py build
46
+popd
30 47
 
31 48
 %install
32
-python setup.py install --prefix=%{_prefix} --root=%{buildroot}
49
+python2 setup.py install --prefix=%{_prefix} --root=%{buildroot}
50
+pushd ../p3dir
51
+python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
52
+popd
33 53
 
34 54
 %files
35 55
 %defattr(-,root,root)
36
-%{python_sitelib}/*
56
+%{python2_sitelib}/*
57
+
58
+%files -n python3-zope.interface
59
+%defattr(-,root,root,-)
60
+%{python3_sitelib}/*
37 61
 
38 62
 %changelog
39
-*	Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 4.1.3-2
40
--	GA - Bump release of all rpms
41
-* Tue Oct 27 2015 Mahmoud Bassiouny <mbassiouny@vmware.com>
42
-- Initial packaging for Photon
63
+*   Mon Mar 13 2017 Xiaolin Li <xiaolinl@vmware.com> 4.3.3-1
64
+-   Updated to version 4.3.3.
65
+*   Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 4.1.3-2
66
+-   GA - Bump release of all rpms
67
+*   Tue Oct 27 2015 Mahmoud Bassiouny <mbassiouny@vmware.com>
68
+-   Initial packaging for Photon