Browse code

python-pbr - disable make check

Disabling the make check as the requirements cannot be fulfiled

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

Tapas Kundu authored on 2019/01/16 23:44:15
Showing 1 changed files
... ...
@@ -4,7 +4,7 @@
4 4
 Summary:        Python Build Reasonableness
5 5
 Name:           python-pbr
6 6
 Version:        4.2.0
7
-Release:        1%{?dist}
7
+Release:        2%{?dist}
8 8
 License:        ASL 2.0
9 9
 Group:          Development/Languages/Python
10 10
 Vendor:         VMware, Inc.
... ...
@@ -16,11 +16,15 @@ Patch0:         disable-test-wsgi.patch
16 16
 BuildRequires:  python-docutils
17 17
 BuildRequires:  python-setuptools
18 18
 BuildRequires:  python2-devel
19
+BuildRequires:  python3-devel
20
+BuildRequires:  python3-setuptools
21
+BuildRequires:  python3-xml
22
+%if 0
19 23
 %if %{with_check}
20
-BuildRequires:  python-sphinx
21 24
 BuildRequires:  git
22 25
 BuildRequires:  gnupg
23 26
 %endif
27
+%endif
24 28
 Requires:       python2
25 29
 BuildArch:      noarch
26 30
 %description
... ...
@@ -28,13 +32,6 @@ A library for managing setuptools packaging needs in a consistent manner.
28 28
 
29 29
 %package -n     python3-pbr
30 30
 Summary:        Python Build Reasonableness
31
-BuildRequires:  python3-devel
32
-BuildRequires:  python3-setuptools
33
-BuildRequires:  python3-xml
34
-%if %{with_check}
35
-BuildRequires:  python3-sphinx
36
-BuildRequires:  git
37
-%endif
38 31
 Requires:       python3
39 32
 
40 33
 %description -n python3-pbr
... ...
@@ -60,6 +57,7 @@ mv %{buildroot}/%{_bindir}/pbr %{buildroot}/%{_bindir}/pbr3
60 60
 popd
61 61
 python2 setup.py install --prefix=%{_prefix} --root=%{buildroot}
62 62
 
63
+%if 0
63 64
 %check
64 65
 ln -sfv /usr/bin/gpg2 /usr/bin/gpg
65 66
 easy_install_2=$(ls /usr/bin |grep easy_install |grep 2)
... ...
@@ -86,6 +84,8 @@ $easy_install_3 wheel
86 86
 python3 setup.py test
87 87
 popd
88 88
 
89
+%endif
90
+
89 91
 %files
90 92
 %defattr(-,root,root)
91 93
 %license LICENSE
... ...
@@ -103,6 +103,8 @@ popd
103 103
 %{python3_sitelib}/pbr
104 104
 
105 105
 %changelog
106
+*   Wed Jan 16 2019 Tapas Kundu <tkundu@vmware.com> 4.2.0-2
107
+-   Disabled the make check as the requirements can not be fulfilled
106 108
 *   Sun Sep 09 2018 Tapas Kundu <tkundu@vmware.com> 4.2.0-1
107 109
 -   Update to version 4.2.0
108 110
 *   Wed Jul 19 2017 Divya Thaluru <dthaluru@vmware.com> 2.1.0-5