Browse code

Modified %check for SPEC files - 21

Change-Id: Iadad7ef0b09011c97083631b54ee8feff149bcca
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/1501
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: rongrong qiu <rqiu@vmware.com>

Chang authored on 2016/10/07 02:59:05
Showing 10 changed files
... ...
@@ -3,7 +3,7 @@
3 3
 Summary:	GRand Unified Bootloader
4 4
 Name:		grub2
5 5
 Version:	2.02
6
-Release:	4%{?dist}
6
+Release:	5%{?dist}
7 7
 License:	GPLv3+
8 8
 URL:		http://www.gnu.org/software/grub
9 9
 Group:		Applications/System
... ...
@@ -52,8 +52,6 @@ ln -sf %{_sysconfdir}/default/grub %{buildroot}%{_sysconfdir}/sysconfig/grub
52 52
 mkdir -p %{buildroot}/boot/%{name}
53 53
 touch %{buildroot}/boot/%{name}/grub.cfg
54 54
 rm -rf %{buildroot}%{_infodir}
55
-%check
56
-make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck}
57 55
 %post	-p /sbin/ldconfig
58 56
 %postun	-p /sbin/ldconfig
59 57
 %files
... ...
@@ -80,6 +78,8 @@ make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck}
80 80
 /usr/share/locale/*
81 81
 
82 82
 %changelog
83
+*       Thu Oct 06 2016 ChangLee <changlee@vmware.com> 2.02-5
84
+-       Modified %check
83 85
 *	Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 2.02-4
84 86
 -	GA - Bump release of all rpms
85 87
 *	Fri Oct 02 2015 Divya Thaluru <dthaluru@vmware.com> 2.02-3
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:	GNU Ubiquitous Intelligent Language for Extensions
2 2
 Name:		guile
3 3
 Version:	2.0.11
4
-Release:	2%{?dist}
4
+Release:	3%{?dist}
5 5
 License: 	LGPLv3+
6 6
 URL:		http://www.gnu.org/software/guile/
7 7
 Source0: 	ftp://ftp.gnu.org/pub/gnu/guile/%{name}-%{version}.tar.gz
... ...
@@ -46,7 +46,7 @@ make DESTDIR=%{buildroot} install
46 46
 rm %{buildroot}%{_libdir}/*.scm
47 47
 rm %{buildroot}%{_infodir}/*
48 48
 %check
49
-make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck}
49
+make  %{?_smp_mflags} check
50 50
 %post	-p /sbin/ldconfig
51 51
 %postun	-p /sbin/ldconfig
52 52
 %files
... ...
@@ -65,6 +65,8 @@ make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck}
65 65
 %{_libdir}/*.so
66 66
 %{_libdir}/pkgconfig/*.pc
67 67
 %changelog
68
+*       Thu Oct 06 2016 ChangLee <changlee@vmware.com> 2.0.11-3
69
+-       Modified %check
68 70
 *	Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 2.0.11-2
69 71
 -	GA - Bump release of all rpms
70 72
 *	Thu Jun 18 2015 Divya Thaluru <dthaluru@vmware.com> 2.0.11-1
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:	Hawkey
2 2
 Name:		hawkey
3 3
 Version:	2014.1
4
-Release:	4%{?dist}
4
+Release:	5%{?dist}
5 5
 License:	LGPLv2+
6 6
 URL:		http://fedoraproject.org/wiki/Features/Hawkey
7 7
 Source0:	https://github.com/rpm-software-management/hawkey/archive/%{name}-%{version}.tar.gz
... ...
@@ -50,7 +50,10 @@ make %{?_smp_mflags}
50 50
 make DESTDIR=%{buildroot} install
51 51
 find %{buildroot} -name '*.la' -delete
52 52
 %check
53
-make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck}
53
+cp src/libhawkey.* /lib
54
+easy_install nose
55
+PYTHONPATH=`readlink -f ./src/python/` nosetests -s tests/python/tests/
56
+tests/test_main tests/repos/
54 57
 
55 58
 %files
56 59
 %defattr(-,root,root)
... ...
@@ -68,6 +71,8 @@ make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck}
68 68
 %exclude %{python_sitearch}/*
69 69
 
70 70
 %changelog
71
+*       Thu Oct 06 2016 ChangLee <changlee@vmware.com> 2014.1-5
72
+-       Modified %check
71 73
 *	Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 2014.1-4
72 74
 -	GA - Bump release of all rpms
73 75
 *	Thu Jun 18 2015 Anish Swaminathan <anishs@vmware.com> 2014.1-3
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:    	Library providing serialization and deserialization support for the JSON format
2 2
 Name:       	json-glib
3 3
 Version:    	1.0.4
4
-Release:    	2%{?dist}
4
+Release:    	3%{?dist}
5 5
 License:    	LGPLv2+
6 6
 Group:      	Development/Libraries
7 7
 Source0:    	http://ftp.gnome.org/pub/GNOME/sources/json-glib/1.0/%{name}-%{version}.tar.xz
... ...
@@ -62,6 +62,9 @@ rm -rf $RPM_BUILD_ROOT
62 62
 
63 63
 %find_lang json-glib-1.0
64 64
 
65
+%check
66
+make  %{?_smp_mflags} check
67
+
65 68
 %clean
66 69
 rm -rf $RPM_BUILD_ROOT
67 70
 
... ...
@@ -89,6 +92,8 @@ rm -rf $RPM_BUILD_ROOT
89 89
 %{_libdir}/girepository-1.0/Json-1.0.typelib
90 90
 
91 91
 %changelog
92
+*       Thu Oct 06 2016 ChangLee <changlee@vmware.com> 1.0.4-3
93
+-       Modified %check
92 94
 *	Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.0.4-2
93 95
 -	GA - Bump release of all rpms
94 96
 * 	Thu Feb 25 2016 Anish Swaminathan <anishs@vmware.com>  1.0.4-1
... ...
@@ -1,7 +1,7 @@
1 1
 Summary: A New Scripting Dynamic Tracing Tool For Linux
2 2
 Name:    ktap
3 3
 Version: 0.4
4
-Release: 3%{?kernelsubrelease}%{?dist}
4
+Release: 4%{?kernelsubrelease}%{?dist}
5 5
 License: GPLv2
6 6
 URL: https://github.com/ktap/ktap
7 7
 Source: %{name}-master.zip
... ...
@@ -35,6 +35,10 @@ make KVERSION=%{KERNEL_VERSION} mod
35 35
 mkdir -p %{buildroot}%{_bindir}
36 36
 make install DESTDIR=%{buildroot} KVERSION=%{KERNEL_VERSION}
37 37
 
38
+%check
39
+cpan Test::Base
40
+make  %{?_smp_mflags} test
41
+
38 42
 %post
39 43
 /sbin/depmod -a
40 44
 
... ...
@@ -48,8 +52,10 @@ make install DESTDIR=%{buildroot} KVERSION=%{KERNEL_VERSION}
48 48
 /lib/modules/%{KERNEL_VERSION}/extra/ktapvm.ko
49 49
 
50 50
 %changelog
51
-*   Mon Aug 1 2016 Divya Thaluru <dthaluru@vmware.com> 0.4-3
52
--   Added kernel macros
51
+*       Thu Oct 06 2016 ChangLee <changlee@vmware.com> 0.4-4
52
+-       Modified %check
53
+*       Mon Aug 1 2016 Divya Thaluru <dthaluru@vmware.com> 0.4-3
54
+-       Added kernel macros
53 55
 *	Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 0.4-3
54 56
 -	GA - Bump release of all rpms
55 57
 *   Thu Apr 28 2016 Alexey Makhalov <amakhalov@vmware.com> 0.4-2
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:	Libcap-2.24
2 2
 Name:		libcap
3 3
 Version:	2.25
4
-Release:	2%{?dist}
4
+Release:	3%{?dist}
5 5
 License:	GPLv2+
6 6
 URL:		https://www.gnu.org/software/hurd/community/gsoc/project_ideas/libcap.html
7 7
 Source0:	https://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/%{name}-%{version}.tar.xz
... ...
@@ -34,7 +34,8 @@ make %{?_smp_mflags}
34 34
 make prefix=%{_prefix}	SBINDIR=%{_sbindir} PAM_LIBDIR=%{_libdir} RAISE_SETFCAP=no DESTDIR=%{buildroot} install
35 35
 chmod -v 755 %{buildroot}/usr/lib64/libcap.so
36 36
 %check
37
-make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck}
37
+cd progs
38
+./quicktest.sh
38 39
 %files
39 40
 %defattr(-,root,root)
40 41
 %{_lib64dir}/libcap.so.*
... ...
@@ -51,6 +52,8 @@ make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck}
51 51
 %{_lib64dir}/libcap.so
52 52
 
53 53
 %changelog
54
+*       Thu Oct 06 2016 ChangLee <changlee@vmware.com> 2.25-3
55
+-       Modified %check
54 56
 *	Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 2.25-2
55 57
 -	GA - Bump release of all rpms
56 58
 *       Wed Feb 24 2016 Kumar Kaushik <kaushikk@vmware.com> 2.25-1
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:	A simplified, portable interface to several low-level networking routines
2 2
 Name:		libdnet
3 3
 Version:	1.11
4
-Release:	2%{?dist}
4
+Release:	3%{?dist}
5 5
 License:	BSD
6 6
 URL:		http://prdownloads.sourceforge.net/libdnet/libdnet-1.11.tar.gz
7 7
 Group:		Applications/System
... ...
@@ -18,6 +18,8 @@ libdnet provides a simplified, portable interface to several low-level networkin
18 18
 make %{?_smp_mflags}
19 19
 %install
20 20
 make DESTDIR=%{buildroot} install
21
+%check
22
+make  %{?_smp_mflags} check
21 23
 %post	-p /sbin/ldconfig
22 24
 %postun	-p /sbin/ldconfig
23 25
 %files 
... ...
@@ -28,6 +30,8 @@ make DESTDIR=%{buildroot} install
28 28
 %{_sbindir}/*
29 29
 %{_prefix}/man/*
30 30
 %changelog
31
+*       Thu Oct 06 2016 ChangLee <changlee@vmware.com> 1.11-3
32
+-       Modified %check
31 33
 *	Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.11-2
32 34
 -	GA - Bump release of all rpms
33 35
 *	Thu Nov 06 2014 Sharath George <sharathg@vmware.com> 1.11-1
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:	A portable, high level programming interface to various calling conventions
2 2
 Name:		libffi
3 3
 Version:	3.2.1
4
-Release:	2%{?dist}
4
+Release:	3%{?dist}
5 5
 License:	BSD
6 6
 URL:		http://sourceware.org/libffi/
7 7
 Group:		System Environment/GeneralLibraries
... ...
@@ -42,7 +42,33 @@ find %{buildroot}/%{_libdir} -name '*.la' -delete
42 42
 rm -rf %{buildroot}/%{_infodir}
43 43
 %{_fixperms} %{buildroot}/*
44 44
 %check
45
-make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck}
45
+wget https://ftp.gnu.org/pub/gnu/dejagnu/dejagnu-1.5.3.tar.gz --no-check-certificate
46
+wget http://prdownloads.sourceforge.net/expect/expect5.45.tar.gz --no-check-certificate
47
+wget http://heanet.dl.sourceforge.net/sourceforge/tcl/tcl8.5.14-src.tar.gz --no-check-certificate
48
+
49
+tar xvf dejagnu-1.5.3.tar.gz
50
+tar xvf expect5.45.tar.gz
51
+tar xvf tcl8.5.14-src.tar.gz
52
+
53
+pushd tcl8.5.14/unix
54
+./configure --enable-threads --prefix=/usr
55
+make install
56
+popd
57
+
58
+pushd expect5.45
59
+./configure --prefix=/usr
60
+make
61
+make install
62
+ln -svf expect5.45/libexpect5.45.so /usr/lib
63
+popd
64
+
65
+pushd dejagnu-1.5.3
66
+./configure --prefix=/usr
67
+make install
68
+popd
69
+
70
+make %{?_smp_mflags} check
71
+
46 72
 %post	-p /sbin/ldconfig
47 73
 %postun	-p /sbin/ldconfig
48 74
 %clean
... ...
@@ -59,6 +85,8 @@ rm -rf %{buildroot}/*
59 59
 %{_datarootdir}/licenses/libffi/LICENSE
60 60
 %{_mandir}/man3/*
61 61
 %changelog
62
+*       Thu Oct 06 2016 ChangLee <changlee@vmware.com> 3.2.1-3
63
+-       Modified %check
62 64
 *	Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 3.2.1-2
63 65
 -	GA - Bump release of all rpms
64 66
 * 	Fri Jan 15 2016 Xiaolin Li <xiaolinl@vmware.com> 3.2.1-1
... ...
@@ -4,7 +4,7 @@
4 4
 Summary:   	Simple package manager built on top of hawkey and librepo
5 5
 Name:		libhif
6 6
 Version:   	0.2.2
7
-Release:   	2%{?dist}
7
+Release:   	3%{?dist}
8 8
 License:   	LGPLv2+
9 9
 URL:       	https://github.com/hughsie/libhif
10 10
 Source0:   	http://people.freedesktop.org/~hughsient/releases/%{name}-%{version}.tar.xz
... ...
@@ -64,6 +64,9 @@ make %{?_smp_mflags}
64 64
 make install DESTDIR=$RPM_BUILD_ROOT
65 65
 rm -f $RPM_BUILD_ROOT%{_libdir}/libhif*.la
66 66
 
67
+%check
68
+make  %{?_smp_mflags} check
69
+
67 70
 %post -p /sbin/ldconfig
68 71
 
69 72
 %postun -p /sbin/ldconfig
... ...
@@ -82,6 +85,8 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/libhif*.la
82 82
 %{_datadir}/gir-1.0/*.gir
83 83
 
84 84
 %changelog
85
+*       Thu Oct 06 2016 ChangLee <changlee@vmware.com> 0.2.2-3
86
+-       Modified %check
85 87
 *	Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 0.2.2-2
86 88
 -	GA - Bump release of all rpms
87 89
 *       Tue Feb 23 2016 Kumar Kaushik <kaushikk@vmware.com> 0.2.2-1
... ...
@@ -5,7 +5,7 @@
5 5
 Summary:       	Repodata downloading library
6 6
 Name:          	librepo
7 7
 Version:       	1.7.17
8
-Release:       	2%{?dist}
8
+Release:       	3%{?dist}
9 9
 License:       	LGPLv2+
10 10
 URL:           	https://github.com/Tojaj/librepo/
11 11
 Group:         	System Environment/Libraries
... ...
@@ -59,6 +59,16 @@ cp %{_builddir}/%{librepo_name}-%{version}/build/librepo/librepo.so* %{buildroot
59 59
 cp %{_builddir}/%{librepo_name}-%{version}/build/librepo.pc %{buildroot}%{_libdir}/pkgconfig
60 60
 cp %{_builddir}/%{librepo_name}-%{version}/librepo/*.h %{buildroot}%{_includedir}/librepo
61 61
 
62
+%check
63
+easy_install nose flask pyxattr
64
+wget https://launchpad.net/pygpgme/trunk/0.3/+download/pygpgme-0.3.tar.gz
65
+tar xvf pygpgme-0.3.tar.gz
66
+pushd pygpgme-0.3
67
+python setup.py install
68
+popd
69
+
70
+PYTHONPATH=`readlink -f ./librepo/python/python2/` nosetests -s -v tests/python/tests/
71
+
62 72
 %post 
63 73
 /sbin/ldconfig
64 74
 
... ...
@@ -74,6 +84,8 @@ cp %{_builddir}/%{librepo_name}-%{version}/librepo/*.h %{buildroot}%{_includedir
74 74
 %{_includedir}/librepo/*.h
75 75
 
76 76
 %changelog
77
+*       Thu Oct 06 2016 ChangLee <changlee@vmware.com> 1.7.1-3
78
+-       Modified %check
77 79
 *	Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.7.17-2
78 80
 -	GA - Bump release of all rpms
79 81
 *   Fri Jan 22 2016 Xiaolin Li <xiaolinl@vmware.com> 1.7.17-1