Browse code

Modified %check for SPEC files - 22

Change-Id: Ifba5c4529828cd467e766e0308b588e0921cd1c3
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/1505
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Sarah Choi <sarahc@vmware.com>

Chang authored on 2016/10/11 03:02:02
Showing 10 changed files
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:	A macro processor
2 2
 Name:		m4
3 3
 Version:	1.4.17
4
-Release:	2%{?dist}
4
+Release:	3%{?dist}
5 5
 License:	GPLv3+
6 6
 URL:		http://www.gnu.org/software/m4
7 7
 Group:		Development/Tools
... ...
@@ -23,12 +23,14 @@ make DESTDIR=%{buildroot} install
23 23
 rm -rf %{buildroot}%{_infodir}
24 24
 %check
25 25
 sed -i -e '41s/ENOENT/& || errno == EINVAL/' tests/test-readlink.h
26
-make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck}
26
+make  %{?_smp_mflags}  check
27 27
 %files
28 28
 %defattr(-,root,root)
29 29
 %{_bindir}/*
30 30
 %{_mandir}/*/*
31 31
 %changelog
32
+*       Fri Oct 07 2016 ChangLee <changlee@vmware.com> 1.4.17-3
33
+-       Modified %check
32 34
 *	Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.4.17-2
33 35
 -	GA - Bump release of all rpms
34 36
 *	Wed Nov 5 2014 Divya Thaluru <dthaluru@vmware.com> 1.4.17-1
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:	Mercurial-3.1.2
2 2
 Name:		mercurial
3 3
 Version:	3.7.1
4
-Release:	3%{?dist}
4
+Release:	4%{?dist}
5 5
 License:	GPLv2+
6 6
 URL:		https://www.ruby-lang.org/en/
7 7
 Group:		System Environment/Security
... ...
@@ -43,7 +43,8 @@ EOF
43 43
 %{_fixperms} %{buildroot}/*
44 44
 
45 45
 %check
46
-make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck}
46
+cd  %{buildroot}/var/opt/%{name}-%{version}
47
+make tests
47 48
 
48 49
 %post -p /sbin/ldconfig
49 50
 
... ...
@@ -62,6 +63,8 @@ rm -rf %{buildroot}/*
62 62
 %exclude /var/opt/%{name}-%{version}/contrib/plan9
63 63
 %exclude /var/opt/%{name}-%{version}/build/temp.*
64 64
 %changelog
65
+*       Fri Oct 07 2016 ChangLee <changlee@vmware.com> 3.7.1-4
66
+-       Modified %check
65 67
 *	Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 3.7.1-3
66 68
 -	GA - Bump release of all rpms
67 69
 *	Wed May 04 2016 Anish Swaminathan <anishs@vmware.com> 3.7.1-2
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:	Libraries for terminal handling of character screens
2 2
 Name:		ncurses
3 3
 Version:	6.0
4
-Release:	2%{?dist}
4
+Release:	3%{?dist}
5 5
 License:	MIT
6 6
 URL:		http://www.gnu.org/software/ncurses
7 7
 Group:		Applications/System
... ...
@@ -80,6 +80,11 @@ ln -sv %{_lib}/libncursesw.so.6.0 %{buildroot}%{_libdir}/libncurses.so.6
80 80
 cp -v -R doc/* %{buildroot}%{_defaultdocdir}/%{name}-%{version}
81 81
 ln -sv %{_lib}/libncursesw.so.5.9 %{buildroot}%{_libdir}/libncurses.so.5
82 82
 
83
+%check
84
+cd test
85
+./configure
86
+make
87
+
83 88
 %post	-p /sbin/ldconfig
84 89
 %postun	-p /sbin/ldconfig
85 90
 %post compat -p /sbin/ldconfig
... ...
@@ -146,6 +151,8 @@ ln -sv %{_lib}/libncursesw.so.5.9 %{buildroot}%{_libdir}/libncurses.so.5
146 146
 %{_libdir}/libpanel.so
147 147
 %{_libdir}/libmenu.so
148 148
 %changelog
149
+*       Fri Oct 07 2016 ChangLee <changlee@vmware.com> 6.0-3
150
+-       Modified %check
149 151
 *	Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 6.0-2
150 152
 -	GA - Bump release of all rpms
151 153
 *	Wed Apr 27 2016 Xiaolin Li <xiaolinl@vmware.com> 6.0-1
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:	Git for operating system binaries
2 2
 Name:		ostree
3 3
 Version:	2015.7
4
-Release:	5%{?dist}
4
+Release:	6%{?dist}
5 5
 Source0:	http://ftp.gnome.org/pub/GNOME/sources/ostree/%{version}/%{name}-%{version}.tar.gz
6 6
 %define sha1 ostree=baa502aa46363cd4828d257fb87f5e18a7ed000a
7 7
 Source1:	91-ostree.preset
... ...
@@ -86,6 +86,9 @@ mkdir -p %{buildroot}%{_prefix}/lib/systemd/system/
86 86
 cp -R %{buildroot}/lib/systemd/system/*.service %{buildroot}%{_prefix}/lib/systemd/system/
87 87
 rm -rf %{buildroot}/lib
88 88
 
89
+%check
90
+make %{?_smp_mflags} check
91
+
89 92
 %clean
90 93
 rm -rf %{buildroot}
91 94
 
... ...
@@ -126,8 +129,10 @@ rm -rf %{buildroot}
126 126
 %{_datadir}/gir-1.0/OSTree-1.0.gir
127 127
 
128 128
 %changelog
129
-*   Thu May 26 2016 Divya Thaluru <dthaluru@vmware.com>  2015.7-5
130
--   Fixed logic to restart the active services after upgrade 
129
+*       Fri Oct 07 2016 ChangLee <changlee@vmware.com> 2015.7-6
130
+-       Modified %check
131
+*       Thu May 26 2016 Divya Thaluru <dthaluru@vmware.com>  2015.7-5
132
+-       Fixed logic to restart the active services after upgrade
131 133
 *	Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 2015.7-4
132 134
 -	GA - Bump release of all rpms
133 135
 *	Wed May 04 2016 Anish Swaminathan <anishs@vmware.com> 2015.7-3
... ...
@@ -1,7 +1,7 @@
1 1
 Summary: Python SSH module
2 2
 Name: paramiko
3 3
 Version: 1.16.0
4
-Release: 2%{?dist}
4
+Release: 3%{?dist}
5 5
 License: LGPL
6 6
 Group: System Environment/Security
7 7
 URL: http://www.paramiko.org/
... ...
@@ -36,6 +36,9 @@ easy_install ./
36 36
     --root "%{buildroot}" \
37 37
     --single-version-externally-managed
38 38
 
39
+%check
40
+%{__python}  test.py
41
+
39 42
 %clean
40 43
 %{__rm} -rf %{buildroot}
41 44
 
... ...
@@ -45,7 +48,9 @@ easy_install ./
45 45
 %{python_sitelib}/*
46 46
 
47 47
 %changelog
48
+*       Fri Oct 07 2016 ChangLee <changlee@vmware.com> 1.16.0-3
49
+-       Modified %check
48 50
 *	Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.16.0-2
49 51
 -	GA - Bump release of all rpms
50 52
 *	Tue Jan 5 2016 Xiaolin Li <xiaolinl@vmware.com> 1.16.0-1
51
--	Initial build.	First version
52 53
\ No newline at end of file
54
+-	Initial build.	First version
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:	My summary.
2 2
 Name:		parted
3 3
 Version:	3.2
4
-Release:	2%{?dist}
4
+Release:	3%{?dist}
5 5
 License:	GPLv3+
6 6
 URL:		http://ftp.gnu.org/gnu/parted/parted-3.2.tar.xz
7 7
 Group:		Applications/System
... ...
@@ -25,6 +25,8 @@ My lib
25 25
 make %{?_smp_mflags}
26 26
 %install
27 27
 make DESTDIR=%{buildroot} install
28
+%check
29
+make  %{?_smp_mflags} check
28 30
 %post	-p /sbin/ldconfig
29 31
 %postun	-p /sbin/ldconfig
30 32
 %files 
... ...
@@ -39,6 +41,8 @@ make DESTDIR=%{buildroot} install
39 39
 %{_infodir}/%{name}-%{version}/*
40 40
 %{_datadir}/*
41 41
 %changelog
42
+*       Fri Oct 07 2016 ChangLee <changlee@vmware.com> 3.2-3
43
+-       Modified %check
42 44
 *	Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 3.2-2
43 45
 -	GA - Bump release of all rpms
44 46
 *	Thu Nov 12 2014 Mahmoud Bassiouny <mbassiouny@vmware.com> 3.2-1
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:	Program for modifying or creating files
2 2
 Name:		patch
3 3
 Version:	2.7.5
4
-Release:	2%{?dist}
4
+Release:	3%{?dist}
5 5
 License:	GPLv3+
6 6
 URL:		http://www.gnu.org/software/%{name}
7 7
 Source0:	ftp://ftp.gnu.org/gnu/patch/%{name}-%{version}.tar.gz
... ...
@@ -22,12 +22,14 @@ make %{?_smp_mflags}
22 22
 %install
23 23
 make DESTDIR=%{buildroot} install
24 24
 %check
25
-make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck}
25
+make  %{?_smp_mflags} check
26 26
 %files
27 27
 %defattr(-,root,root)
28 28
 %{_bindir}/*
29 29
 %{_mandir}/*/*
30 30
 %changelog
31
+*       Fri Oct 07 2016 ChangLee <changlee@vmware.com> 2.7.5-3
32
+-       Modified %check
31 33
 *	Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 2.7.5-2
32 34
 -	GA - Bump release of all rpms
33 35
 *	Tue Aug 11 2015 Divya Thaluru <dthaluru@vmware.com> 2.7.5-1
... ...
@@ -9,7 +9,7 @@
9 9
 Summary:	Practical Extraction and Report Language
10 10
 Name:		perl
11 11
 Version:	5.22.1
12
-Release:	3%{?dist}
12
+Release:	4%{?dist}
13 13
 License:	GPLv1+
14 14
 URL:		http://www.perl.org/
15 15
 Group:		Development/Languages
... ...
@@ -52,6 +52,8 @@ make VERBOSE=1 %{?_smp_mflags}
52 52
 %install
53 53
 make DESTDIR=%{buildroot} install
54 54
 unset BUILD_ZLIB BUILD_BZIP2
55
+%check
56
+make  %{?_smp_mflags} check
55 57
 %post	-p /sbin/ldconfig
56 58
 %postun	-p /sbin/ldconfig
57 59
 %files
... ...
@@ -62,6 +64,8 @@ unset BUILD_ZLIB BUILD_BZIP2
62 62
 %{_libdir}/perl5/%{version}/*
63 63
 %{_mandir}/*/*
64 64
 %changelog
65
+*       Mon Oct 10 2016 ChangLee <changlee@vmware.com> 5.22.1-4
66
+-       Modified %check
65 67
 *	Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 5.22.1-3
66 68
 -	GA - Bump release of all rpms
67 69
 *	Thu Jan 26 2016 Anish Swaminathan <anishs@vmware.com> 5.22.1-2
... ...
@@ -2,7 +2,7 @@
2 2
 
3 3
 Name:           pycurl
4 4
 Version:        7.21.5
5
-Release:        3%{?dist}
5
+Release:        4%{?dist}
6 6
 Summary:        A Python interface to libcurl
7 7
 Group:          Development/Languages
8 8
 License:        LGPLv2+ and an MIT/X
... ...
@@ -48,6 +48,13 @@ python setup.py install -O1 --skip-build --root %{buildroot}
48 48
 rm -rf %{buildroot}%{_datadir}/doc/pycurl
49 49
 chmod 755 %{buildroot}%{python_sitelib}/pycurl.so
50 50
 
51
+%check
52
+easy_install nose
53
+easy_install bottle
54
+easy_install flakey
55
+sed -i 's/--with-flaky//g' tests/run.sh
56
+make  %{?_smp_mflags} test
57
+
51 58
 %clean
52 59
 rm -rf %{buildroot}
53 60
 
... ...
@@ -59,6 +66,8 @@ rm -rf %{buildroot}
59 59
 %doc COPYING-LGPL COPYING-MIT RELEASE-NOTES.rst ChangeLog README.rst examples doc tests
60 60
 
61 61
 %changelog
62
+*       Mon Oct 10 2016 ChangLee <changlee@vmware.com> 7.21.5-4
63
+-       Modified %check
62 64
 *	Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 7.21.5-3
63 65
 -	GA - Bump release of all rpms
64 66
 *	Fri Apr 29 2016 Divya Thaluru <dthaluru@vmware.com> 7.21.5-2
... ...
@@ -1,7 +1,7 @@
1 1
 Summary: Download, build, install, upgrade, and uninstall Python packages
2 2
 Name: python-setuptools
3 3
 Version: 21.0.0
4
-Release: 2%{?dist}
4
+Release: 3%{?dist}
5 5
 License: Python or ZPLv2.0
6 6
 Group: Development/Languages
7 7
 URL: https://pypi.python.org/pypi/setuptools
... ...
@@ -37,6 +37,9 @@ find %{buildroot}%{python_sitelib} -name '*.exe' | xargs rm -f
37 37
 find %{buildroot}%{python_sitelib} -name '*.txt' | xargs chmod -x
38 38
 chmod +x %{buildroot}%{python_sitelib}/setuptools/command/easy_install.py
39 39
 
40
+%check
41
+%{__python} setup.py test
42
+
40 43
 %clean
41 44
 %{__rm} -rf %{buildroot}
42 45
 
... ...
@@ -46,6 +49,8 @@ chmod +x %{buildroot}%{python_sitelib}/setuptools/command/easy_install.py
46 46
 %{python_sitelib}/*
47 47
 
48 48
 %changelog
49
+*       Mon Oct 10 2016 ChangLee <changlee@vmware.com> 21.0.0-3
50
+-       Modified %check
49 51
 *	Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 21.0.0-2
50 52
 -	GA - Bump release of all rpms
51 53
 *	Wed May 4 2016 Xiaolin Li <xiaolinl@vmware.com> 21.0.0-1