Browse code

In libxmls2.spec, move python2 requires to python subpackage.

Change-Id: I679ef3f9e398c9123c7c0ac10d87152a86328c87
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/2806
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Alexey Makhalov <amakhalov@vmware.com>

xiaolin-vmware authored on 2017/05/27 02:58:09
Showing 1 changed files
... ...
@@ -4,7 +4,7 @@
4 4
 Summary:        Libxml2
5 5
 Name:           libxml2
6 6
 Version:        2.9.4
7
-Release:        4%{?dist}
7
+Release:        5%{?dist}
8 8
 License:        MIT
9 9
 URL:            http://xmlsoft.org/
10 10
 Group:          System Environment/General Libraries
... ...
@@ -17,20 +17,19 @@ Patch1:         libxml2-2.9.4-cve-2016-5131.patch
17 17
 # Fix for CVE-2016-9318
18 18
 Patch2:         cve-2016-9318.patch
19 19
 %define sha1    libxml2=958ae70baf186263a4bd801a81dd5d682aedd1db
20
-Requires:       python2
21
-BuildRequires:  python2-devel
22
-BuildRequires:  python2-libs
23 20
 Provides:       pkgconfig(libxml-2.0)
24 21
 
25 22
 %description
26 23
 The libxml2 package contains libraries and utilities used for parsing XML files. 
27 24
 
28 25
 %package python
29
-Summary:    The libxml2 python module
30
-Group:      Development/Languages/Python
31
-Requires:   %{name} = %{version}
32
-Requires:   python2
33
-Requires:   python2-libs
26
+Summary:        The libxml2 python module
27
+Group:          Development/Languages/Python
28
+BuildRequires:  python2-devel
29
+BuildRequires:  python2-libs
30
+Requires:       %{name} = %{version}
31
+Requires:       python2
32
+Requires:       python2-libs
34 33
 
35 34
 %description python
36 35
 The libxml2 python module
... ...
@@ -39,6 +38,7 @@ The libxml2 python module
39 39
 Summary:        Python 3 bindings for libxml2.
40 40
 Group:          Development/Libraries
41 41
 BuildRequires:  python3-devel
42
+Requires:       %{name} = %{version}
42 43
 Requires:       python3
43 44
 
44 45
 %description -n python3-libxml2
... ...
@@ -120,6 +120,8 @@ rm -rf %{buildroot}/*
120 120
 
121 121
 
122 122
 %changelog
123
+*   Thu May 18 2017 Xiaolin Li <xiaolinl@vmware.com> 2.9.4-5
124
+-   Move python2 requires to python subpackage.
123 125
 *   Thu Apr 13 2017 Xiaolin Li <xiaolinl@vmware.com> 2.9.4-4
124 126
 -   Added python3-libxml2 package.
125 127
 *   Tue Jan 3 2017 Alexey Makhalov <amakhalov@vmware.com> 2.9.4-3