Browse code

Fixed python-Twisted pkg test

python-Twisted requires python-attrs library

Change-Id: I5f311ca607e4a7d85517492465beca33f4ce6963
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/6047
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/30 21:10:41
Showing 1 changed files
... ...
@@ -4,7 +4,7 @@
4 4
 Summary:        An asynchronous networking framework written in Python
5 5
 Name:           python-Twisted
6 6
 Version:        18.7.0
7
-Release:        1%{?dist}
7
+Release:        2%{?dist}
8 8
 License:        MIT
9 9
 Group:          Development/Languages/Python
10 10
 Vendor:         VMware, Inc.
... ...
@@ -12,8 +12,8 @@ Distribution:   Photon
12 12
 Url:            https://twistedmatrix.com
13 13
 Source0:        https://pypi.python.org/packages/source/T/Twisted/Twisted-%{version}.tar.bz2
14 14
 %define sha1 Twisted=949c75da0426ca139a3128fecb484eeb7513087e
15
-Patch0:        extra_dependency.patch 
16
-Patch1:        no_packet.patch 
15
+Patch0:        extra_dependency.patch
16
+Patch1:        no_packet.patch
17 17
 
18 18
 BuildRequires:  python2
19 19
 BuildRequires:  python2-libs
... ...
@@ -25,6 +25,12 @@ BuildRequires:  python-cryptography
25 25
 BuildRequires:  python-pyOpenSSL
26 26
 BuildRequires:  python-six
27 27
 
28
+BuildRequires:  python3-devel
29
+BuildRequires:  python3-libs
30
+BuildRequires:  python3-incremental
31
+BuildRequires:  python3-zope.interface
32
+BuildRequires:  python3-setuptools
33
+BuildRequires:  python3-xml
28 34
 Requires:       python2
29 35
 Requires:       python2-libs
30 36
 Requires:       python-zope.interface
... ...
@@ -32,20 +38,14 @@ Requires:       python-netaddr
32 32
 Requires:       python-incremental
33 33
 Requires:       python-constantly
34 34
 Requires:       python-hyperlink
35
-
35
+Requires:       python-attrs
36 36
 %description
37
-Twisted is an event-driven networking engine written in Python and licensed under the open source ​MIT license. Twisted runs on Python 2 and an ever growing subset also works with Python 3. 
37
+Twisted is an event-driven networking engine written in Python and licensed under the open source ​MIT license. Twisted runs on Python 2 and an ever growing subset also works with Python 3.
38 38
 
39 39
 Twisted also supports many common network protocols, including SMTP, POP3, IMAP, SSHv2, and DNS.
40 40
 
41 41
 %package -n     python3-Twisted
42 42
 Summary:        python-Twisted
43
-BuildRequires:  python3-devel
44
-BuildRequires:  python3-libs
45
-BuildRequires:  python3-incremental
46
-BuildRequires:  python3-zope.interface
47
-BuildRequires:  python3-setuptools
48
-BuildRequires:  python3-xml
49 43
 
50 44
 Requires:       python3
51 45
 Requires:       python3-libs
... ...
@@ -54,6 +54,7 @@ Requires:       python3-netaddr
54 54
 Requires:       python3-incremental
55 55
 Requires:       python3-constantly
56 56
 Requires:       python3-hyperlink
57
+Requires:       python3-attrs
57 58
 
58 59
 %description -n python3-Twisted
59 60
 Python 3 version.
... ...
@@ -127,6 +128,9 @@ popd
127 127
 %{_bindir}/cftp3
128 128
 
129 129
 %changelog
130
+*   Tue Oct 30 2018 Tapas Kundu <tkundu@vmware.com> 18.7.0-2
131
+-   Moved build requires from subpackage
132
+-   Added attrs package in requires.
130 133
 *   Thu Sep 13 2018 Tapas Kundu <tkundu@vmware.com> 18.7.0-1
131 134
 -   Upgraded to release 18.7.0
132 135
 *   Fri Oct 13 2017 Alexey Makhalov <amakhalov@vmware.com> 17.5.0-3