Browse code

Modified %check for SPEC files - 16

Change-Id: I24018134432cc63cea0924242124ef2f5fcc48a5
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/1410
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: aditij <aditij@vmware.com>

Chang authored on 2016/09/17 09:42:53
Showing 10 changed files
... ...
@@ -1,6 +1,6 @@
1 1
 Name:           python-jsonpatch
2 2
 Version:        1.9
3
-Release:        2%{?dist}
3
+Release:        3%{?dist}
4 4
 Summary:        Applying JSON Patches in Python
5 5
 License:        Modified BSD License
6 6
 Group:          Development/Languages/Python
... ...
@@ -11,7 +11,7 @@ Source0:        jsonpatch-%{version}.tar.gz
11 11
 BuildRequires: python2
12 12
 BuildRequires: python2-libs
13 13
 BuildRequires: python-setuptools
14
-
14
+BuildRequires: python-jsonpointer
15 15
 Requires: python-jsonpointer
16 16
 
17 17
 BuildArch:      noarch
... ...
@@ -28,6 +28,9 @@ python setup.py build
28 28
 %install
29 29
 python setup.py install --prefix=%{_prefix} --root=%{buildroot}
30 30
 
31
+%check
32
+python ext_tests.py && python tests.py
33
+
31 34
 %files
32 35
 %defattr(-,root,root,-)
33 36
 %{python_sitelib}/*
... ...
@@ -35,6 +38,8 @@ python setup.py install --prefix=%{_prefix} --root=%{buildroot}
35 35
 %{_bindir}/jsonpatch
36 36
 
37 37
 %changelog
38
+*       Mon Oct 04 2016 ChangLee <changlee@vmware.com> 1.9-3
39
+-       Modified %check
38 40
 *	Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.9-2
39 41
 -	GA - Bump release of all rpms
40 42
 * Wed Mar 04 2015 Mahmoud Bassiouny <mbassiouny@vmware.com>
... ...
@@ -1,6 +1,6 @@
1 1
 Name:           python-jsonpointer
2 2
 Version:        1.10
3
-Release:        2%{?dist}
3
+Release:        3%{?dist}
4 4
 Summary:        Applying JSON Patches in Python
5 5
 License:        Modified BSD License
6 6
 Group:          Development/Languages/Python
... ...
@@ -26,6 +26,9 @@ Library to apply JSON Patches according to RFC 6902.
26 26
 %build
27 27
 python setup.py build
28 28
 
29
+%check
30
+python tests.py
31
+
29 32
 %install
30 33
 python setup.py install --prefix=%{_prefix} --root=%{buildroot}
31 34
 
... ...
@@ -35,9 +38,11 @@ python setup.py install --prefix=%{_prefix} --root=%{buildroot}
35 35
 %{_bindir}/jsonpointer
36 36
 
37 37
 %changelog
38
+*       Mon Oct 04 2016 ChangLee <changlee@vmware.com> 1.10-3
39
+-       Modified %check
38 40
 *	Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.10-2
39 41
 -	GA - Bump release of all rpms
40
-*   Tue Feb 23 2016 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 1.10-1
41
--   Updated to version 1.10
42
-*   Wed Mar 04 2015 Mahmoud Bassiouny <mbassiouny@vmware.com>
43
--   Initial packaging for Photon
42
+*       Tue Feb 23 2016 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 1.10-1
43
+-       Updated to version 1.10
44
+*       Wed Mar 04 2015 Mahmoud Bassiouny <mbassiouny@vmware.com>
45
+-       Initial packaging for Photon
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:        XML and HTML with Python
2 2
 Name:           python-lxml
3 3
 Version:        3.5.0b1
4
-Release:        2%{?dist}
4
+Release:        3%{?dist}
5 5
 Group:          Development/Libraries
6 6
 License:        BSD
7 7
 URL:            http://lxml.de
... ...
@@ -31,6 +31,9 @@ The lxml XML toolkit is a Pythonic binding for the C libraries libxml2 and libxs
31 31
 %install
32 32
 %{__python} setup.py install --skip-build --root %{buildroot}
33 33
 
34
+%check
35
+make test
36
+
34 37
 %clean
35 38
 rm -rf %{buildroot}
36 39
 
... ...
@@ -42,6 +45,8 @@ rm -rf %{buildroot}
42 42
 
43 43
 
44 44
 %changelog
45
+*       Mon Oct 04 2016 ChangLee <changlee@vmware.com> 3.5.0b1-3
46
+-       Modified %check
45 47
 *	Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 3.5.0b1-2
46 48
 -	GA - Bump release of all rpms
47 49
 * 	Wed Oct 28 2015 Divya Thaluru <dthaluru@vmware.com> 3.5.0b1-1
... ...
@@ -1,6 +1,6 @@
1 1
 Name:           python-prettytable
2 2
 Version:        0.7.2
3
-Release:        2%{?dist}
3
+Release:        3%{?dist}
4 4
 Summary:        Library for displaying tabular data in a visually appealing ASCII format
5 5
 License:        BSD-2-Clause
6 6
 Group:          Development/Languages/Python
... ...
@@ -34,11 +34,16 @@ python setup.py build
34 34
 %install
35 35
 python setup.py install --prefix=%{_prefix} --root=%{buildroot}
36 36
 
37
+%check
38
+python prettytable_test.py
39
+
37 40
 %files
38 41
 %defattr(-,root,root,-)
39 42
 %{python_sitelib}/*
40 43
 
41 44
 %changelog
45
+*       Mon Oct 04 2016 ChangLee <changlee@vmware.com> 0.7.2-3
46
+-       Modified %check
42 47
 *	Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 0.7.2-2
43 48
 -	GA - Bump release of all rpms
44 49
 * Wed Mar 04 2015 Mahmoud Bassiouny <mbassiouny@vmware.com>
... ...
@@ -1,6 +1,6 @@
1 1
 Name:           python-pyasn1
2 2
 Version:        0.1.9
3
-Release:        2%{?dist}
3
+Release:        3%{?dist}
4 4
 Summary:        Implementation of ASN.1 types and codecs in Python programming language
5 5
 License:        BSD
6 6
 Group:          Development/Languages/Python
... ...
@@ -29,11 +29,16 @@ python setup.py build
29 29
 %install
30 30
 python setup.py install --prefix=%{_prefix} --root=%{buildroot}
31 31
 
32
+%check
33
+python setup.py test
34
+
32 35
 %files
33 36
 %defattr(-,root,root,-)
34 37
 %{python_sitelib}/*
35 38
 
36 39
 %changelog
40
+*       Mon Oct 04 2016 ChangLee <changlee@vmware.com> 0.1.9-3
41
+-       Modified %check
37 42
 *	Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 0.1.9-2
38 43
 -	GA - Bump release of all rpms
39 44
 * Tue Feb 23 2016 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 0.1.9-1
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:        Python C parser
2 2
 Name:           python-pycparser
3 3
 Version:        2.14
4
-Release:        2%{?dist}
4
+Release:        3%{?dist}
5 5
 Url:            https://pypi.python.org/pypi/pycparser
6 6
 License:        BSD
7 7
 Group:          Development/Languages/Python
... ...
@@ -29,12 +29,18 @@ python setup.py build
29 29
 %install
30 30
 python setup.py install --prefix=%{_prefix} --root=%{buildroot}
31 31
 
32
+%check
33
+cd tests
34
+python all_tests.py
35
+
32 36
 %files
33 37
 %defattr(-,root,root)
34 38
 %{python_sitelib}/*
35 39
 
36 40
 
37 41
 %changelog
42
+*       Mon Oct 04 2016 ChangLee <changlee@vmware.com> 2.14-3
43
+-       Modified %check
38 44
 *	Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 2.14-2
39 45
 -	GA - Bump release of all rpms
40 46
 * Wed Nov 18 2015 Divya Thaluru <dthaluru@vmware.com> 2.14-1
... ...
@@ -1,6 +1,6 @@
1 1
 Name:           python-requests
2 2
 Version:        2.9.1
3
-Release:        2%{?dist}
3
+Release:        3%{?dist}
4 4
 Url:            http://python-requests.org
5 5
 Summary:        Awesome Python HTTP Library That's Actually Usable
6 6
 License:        Apache2
... ...
@@ -50,15 +50,20 @@ python setup.py build
50 50
 %install
51 51
 python setup.py install --prefix=%{_prefix} --root=%{buildroot}
52 52
 
53
+%check
54
+python setup.py test
55
+
53 56
 %files
54 57
 %defattr(-,root,root)
55 58
 %doc README.rst HISTORY.rst LICENSE NOTICE
56 59
 %{python_sitelib}/*
57 60
 
58 61
 %changelog
62
+*       Mon Oct 04 2016 ChangLee <changlee@vmware.com> 2.9.1-3
63
+-       Modified %check
59 64
 *	Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 2.9.1-2
60 65
 -	GA - Bump release of all rpms
61
-* Tue Feb 23 2016 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 2.9.1-1
62
-- Updated to version 2.9.1
63
-* Wed Mar 04 2015 Mahmoud Bassiouny <mbassiouny@vmware.com>
64
-- Initial packaging for Photon
66
+*       Tue Feb 23 2016 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 2.9.1-1
67
+-       Updated to version 2.9.1
68
+*       Wed Mar 04 2015 Mahmoud Bassiouny <mbassiouny@vmware.com>
69
+-       Initial packaging for Photon
... ...
@@ -1,6 +1,6 @@
1 1
 Name:           python-zope.interface
2 2
 Version:        4.1.3
3
-Release:        2%{?dist}
3
+Release:        3%{?dist}
4 4
 Url:            https://github.com/zopefoundation/zope.interface
5 5
 Summary:        Interfaces for Python
6 6
 License:        ZPL 2.1
... ...
@@ -8,7 +8,7 @@ Group:          Development/Languages/Python
8 8
 Source0:        https://pypi.python.org/packages/source/z/zope.interface/zope.interface-%{version}.tar.gz
9 9
 %define sha1 zope.interface=207161e27880d07679aff6d712ed12f55e3d91b6
10 10
 
11
-BuildRequires: python2
11
+BuildRequires: python2-devel
12 12
 BuildRequires: python2-libs
13 13
 BuildRequires: python-setuptools
14 14
 
... ...
@@ -31,11 +31,16 @@ python setup.py build
31 31
 %install
32 32
 python setup.py install --prefix=%{_prefix} --root=%{buildroot}
33 33
 
34
+%check
35
+python setup.py test
36
+
34 37
 %files
35 38
 %defattr(-,root,root)
36 39
 %{python_sitelib}/*
37 40
 
38 41
 %changelog
42
+*       Mon Oct 04 2016 ChangLee <changlee@vmware.com> 4.1.3-3
43
+-       Modified %check
39 44
 *	Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 4.1.3-2
40 45
 -	GA - Bump release of all rpms
41 46
 * Tue Oct 27 2015 Mahmoud Bassiouny <mbassiouny@vmware.com>
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:	Command-line editing and history capabilities
2 2
 Name:		readline
3 3
 Version:	6.3
4
-Release:	4%{?dist}
4
+Release:	5%{?dist}
5 5
 License:	GPLv3+
6 6
 URL:		http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html
7 7
 Group:		Applications/System
... ...
@@ -38,6 +38,10 @@ ln -sfv ../..%{_lib}/$(readlink %{buildroot}%{_libdir}/libhistory.so ) %{buildro
38 38
 install -vdm 755 %{buildroot}%{_defaultdocdir}/%{name}-%{version}
39 39
 install -v -m644 doc/*.{ps,pdf,html,dvi} %{buildroot}%{_defaultdocdir}/%{name}-%{version}
40 40
 rm -rf %{buildroot}%{_infodir}
41
+
42
+%check
43
+make %{?_smp_mflags} check
44
+
41 45
 %post	-p /sbin/ldconfig
42 46
 %postun	-p /sbin/ldconfig
43 47
 %files
... ...
@@ -93,6 +97,8 @@ rm -rf %{buildroot}%{_infodir}
93 93
 %{_libdir}/libhistory.so
94 94
 %{_libdir}/libreadline.so
95 95
 %changelog
96
+*       Mon Oct 04 2016 ChangLee <changlee@vmware.com> 6.3-5
97
+-       Modified %check
96 98
 *	Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 6.3-4
97 99
 -	GA - Bump release of all rpms
98 100
 *	Wed Jun 3 2015 Divya Thaluru <dthaluru@vmware.com> 6.3-3
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:        Rocket
2 2
 Name:           rocket
3 3
 Version:        1.4.0
4
-Release:        3%{?dist}
4
+Release:        4%{?dist}
5 5
 License:        ASL 2.0
6 6
 URL:            http://rocket.readthedocs.org/en/latest/
7 7
 Group:          Applications/File
... ...
@@ -30,8 +30,7 @@ install -vdm755 %{buildroot}/var/lib/rkt/tmp
30 30
 install -vdm755 %{buildroot}/var/lib/rkt/containers
31 31
 
32 32
 %{_fixperms} %{buildroot}/*
33
-%check
34
-make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck}
33
+
35 34
 %post   -p /sbin/ldconfig
36 35
 %postun -p /sbin/ldconfig
37 36
 %clean
... ...
@@ -47,6 +46,8 @@ rm -rf %{buildroot}/*
47 47
 /var/lib/rkt/containers
48 48
 
49 49
 %changelog
50
+*       Mon Oct 04 2016 ChangLee <changlee@vmware.com> 1.4.0-4
51
+-       Modified %check
50 52
 *	Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.4.0-3
51 53
 -	GA - Bump release of all rpms
52 54
 *       Mon Apr 18 2016 Kumar Kaushik <kaushikk@vmware.com> 1.4.0-2