Browse code

Modified %check for SPEC files - 14

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

Chang authored on 2016/10/06 05:11:08
Showing 10 changed files
... ...
@@ -2,7 +2,7 @@
2 2
 Summary:	OpenLdap-2.4.43
3 3
 Name:		openldap
4 4
 Version:	2.4.43
5
-Release:	2%{?dist}
5
+Release:	3%{?dist}
6 6
 License:	OpenLDAP
7 7
 URL:		http://cyrusimap.web.cmu.edu/
8 8
 Group:		System Environment/Security
... ...
@@ -53,8 +53,10 @@ make %{?_smp_mflags}
53 53
 make install DESTDIR=%{buildroot}
54 54
 find %{buildroot}/%{_libdir} -name '*.la' -delete
55 55
 %{_fixperms} %{buildroot}/*
56
+
56 57
 %check
57
-make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck}
58
+make %{?_smp_mflags} test
59
+
58 60
 %post	-p /sbin/ldconfig
59 61
 %postun	-p /sbin/ldconfig
60 62
 %clean
... ...
@@ -71,6 +73,8 @@ rm -rf %{buildroot}/*
71 71
 /etc/openldap/*
72 72
 
73 73
 %changelog
74
+*       Wed Oct 05 2016 ChangLee <changlee@vmware.com> 2.4.43-3
75
+-       Modified %check
74 76
 *	Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 2.4.43-2
75 77
 -	GA - Bump release of all rpms
76 78
 * 	Thu Jan 21 2016 Xiaolin Li <xiaolinl@vmware.com> 2.4.43-1
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:	Free version of the SSH connectivity tools
2 2
 Name:		openssh
3 3
 Version:	7.1p2
4
-Release:	4%{?dist}
4
+Release:	5%{?dist}
5 5
 License:	BSD
6 6
 URL:		http://openssh.org
7 7
 Group:		System Environment/Security
... ...
@@ -90,8 +90,14 @@ WantedBy=multi-user.target
90 90
 EOF
91 91
 
92 92
 %{_fixperms} %{buildroot}/*
93
+
93 94
 %check
94
-make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck}
95
+useradd sshd
96
+if [ ! -d /var/lib/sshd ]; then
97
+   mkdir /var/lib/sshd
98
+   chmod 0755 /var/lib/sshd
99
+fi
100
+make %{?_smp_mflags} tests
95 101
 
96 102
 %pre
97 103
 getent group sshd >/dev/null || groupadd -g 50 sshd
... ...
@@ -139,6 +145,8 @@ rm -rf %{buildroot}/*
139 139
 %{_mandir}/man8/*
140 140
 %attr(700,root,sys)/var/lib/sshd
141 141
 %changelog
142
+*       Wed Oct 05 2016 ChangLee <changlee@vmware.com> 7.1p2-5
143
+-       Modified %check
142 144
 *	Thu Sep 15 2016 Anish Swaminathan <anishs@vmware.com> 7.1p2-4
143 145
 -	Add patch to fix CVE-2016-6515
144 146
 *	Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 7.1p2-3
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:	Management tools and libraries relating to cryptography
2 2
 Name:		openssl
3 3
 Version:	1.0.2j
4
-Release:	1%{?dist}
4
+Release:	2%{?dist}
5 5
 License:	OpenSSL
6 6
 URL:		http://www.openssl.org
7 7
 Group:		System Environment/Security
... ...
@@ -73,7 +73,8 @@ ln -sf %{_libdir}/libssl.so.1.0.0 %{buildroot}%{_libdir}/libssl.so.1.0.2
73 73
 ln -sf %{_libdir}/libcrypto.so.1.0.0 %{buildroot}%{_libdir}/libcrypto.so.1.0.2
74 74
 
75 75
 %check
76
-make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck}
76
+make %{?_smp_mflags} tests
77
+
77 78
 %post	-p /sbin/ldconfig
78 79
 %postun	-p /sbin/ldconfig
79 80
 %clean
... ...
@@ -112,6 +113,8 @@ rm -rf %{buildroot}/*
112 112
 /%{_bindir}/c_rehash
113 113
 
114 114
 %changelog
115
+*   Wed Oct 05 2016 ChangLee <changlee@vmware.com> 1.0.2j-2
116
+-   Modified %check
115 117
 *   Mon Sep 26 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.0.2j-1
116 118
 -   Update to 1.0.2.j
117 119
 *   Wed Sep 21 2016 Kumar Kaushik <kaushikk@vmware.com> 1.0.2h-5
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:        Grep for perl compatible regular expressions
2 2
 Name:           pcre
3 3
 Version:        8.39
4
-Release:        1%{?dist}
4
+Release:        2%{?dist}
5 5
 License:        BSD
6 6
 URL:            ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.39.tar.bz2
7 7
 Group:          Applications/System
... ...
@@ -43,6 +43,10 @@ make DESTDIR=%{buildroot} install
43 43
 mv -v %{buildroot}/usr/lib/libpcre.so.* %{buildroot}/lib &&
44 44
 ln -sfv ../../lib/$(readlink %{buildroot}/usr/lib/libpcre.so) %{buildroot}/usr/lib/libpcre.so
45 45
 ln -sfv $(readlink %{buildroot}/usr/lib/libpcre.so) %{buildroot}/usr/lib/libpcre.so.0
46
+
47
+%check
48
+make %{?_smp_mflags} check
49
+
46 50
 %post   -p /sbin/ldconfig
47 51
 %postun -p /sbin/ldconfig
48 52
 %files 
... ...
@@ -65,6 +69,8 @@ ln -sfv $(readlink %{buildroot}/usr/lib/libpcre.so) %{buildroot}/usr/lib/libpcre
65 65
 %{_libdir}/pkgconfig/*.pc
66 66
 %{_includedir}/*
67 67
 %changelog
68
+*   Wed Oct 05 2016 ChangLee <changlee@vmware.com> 8.39-2
69
+-   Modified %check
68 70
 *   Fri Sep 9 2016 Xiaolin Li <xiaolinl@vmware.com> 8.39-1
69 71
 -   Update to version 8.39
70 72
 *   Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 8.38-3
... ...
@@ -3,7 +3,7 @@
3 3
 Summary:        Handle Common Gateway Interface requests and responses
4 4
 Name:           perl-CGI
5 5
 Version:        4.26
6
-Release:        2%{?dist}
6
+Release:        3%{?dist}
7 7
 License:        GPL+ or Artistic
8 8
 Group:          Development/Libraries
9 9
 Source0:        http://search.cpan.org/CPAN/authors/id/L/LE/LEEJO/CGI-%{version}.tar.gz
... ...
@@ -54,7 +54,13 @@ find %{buildroot} -type f -name .packlist -delete
54 54
 %{_fixperms} %{buildroot}/*
55 55
 
56 56
 %check
57
-make test
57
+export PERL_MM_USE_DEFAULT=1
58
+cpan local::lib
59
+cpan Test::Deep
60
+cpan HTML::Entities
61
+cpan Test::Warn
62
+cpan Test::NoWarnings
63
+make %{?_smp_mflags} test
58 64
 
59 65
 %files
60 66
 %license LICENSE
... ...
@@ -63,6 +69,8 @@ make test
63 63
 %{_mandir}/man3/*.3*
64 64
 
65 65
 %changelog
66
+*       Wed Oct 05 2016 ChangLee <changlee@vmware.com> 4.26-3
67
+-       Modified %check
66 68
 *	Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 4.26-2
67 69
 -	GA - Bump release of all rpms
68 70
 *   Tue Feb 23 2016 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 4.26-1
... ...
@@ -5,7 +5,7 @@
5 5
 Summary:        Standalone, extensible Perl module installer
6 6
 Name:           perl-Module-Install
7 7
 Version:        1.16
8
-Release:        2%{?dist}
8
+Release:        3%{?dist}
9 9
 License:        GPL+ or Artistic
10 10
 Group:          Development/Libraries
11 11
 URL:            http://search.cpan.org/dist/Module-Install/
... ...
@@ -39,13 +39,18 @@ rm -rf %{buildroot}/blib/lib/auto/share/dist/Module-Install/dist_file.txt
39 39
 %{_fixperms} %{buildroot}/*
40 40
 
41 41
 %check
42
-make test AUTOMATED_TESTING=1
42
+export PERL_MM_USE_DEFAULT=1
43
+cpan local::lib
44
+cpan File::Remove
45
+make %{?_smp_mflags} test AUTOMATED_TESTING=1
43 46
 
44 47
 %files
45 48
 %{perl_vendorlib}/*
46 49
 %{_mandir}/man3/*
47 50
 
48 51
 %changelog
52
+*       Wed Oct 05 2016 ChangLee <changlee@vmware.com> 1.16-3
53
+-       Modified %check
49 54
 *	Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.16-2
50 55
 -	GA - Bump release of all rpms
51 56
 *	Thu Feb 25 2016 Anish Swaminathan <anishs@vmware.com> 1.16-1
... ...
@@ -2,7 +2,7 @@
2 2
 Summary:        Recursively scan Perl code for dependencies
3 3
 Name:           perl-Module-ScanDeps
4 4
 Version:        1.18
5
-Release:        2%{?dist}
5
+Release:        3%{?dist}
6 6
 License:        GPL+ or Artistic
7 7
 Group:          Development/Libraries
8 8
 Source0:        http://search.cpan.org/CPAN/authors/id/R/RS/RSCHUPP/Module-ScanDeps-%{version}.tar.gz 
... ...
@@ -32,7 +32,10 @@ find %{buildroot} -type f -name .packlist -exec rm -f {} +
32 32
 %{_fixperms} %{buildroot}
33 33
 
34 34
 %check
35
-make test
35
+export PERL_MM_USE_DEFAULT=1
36
+cpan local::lib
37
+cpan Test::Requires
38
+make %{?_smp_mflags} test
36 39
 
37 40
 %files
38 41
 %{_bindir}/scandeps.pl
... ...
@@ -41,6 +44,8 @@ make test
41 41
 %{_mandir}/man3/*
42 42
 
43 43
 %changelog
44
+*       Wed Oct 05 2016 ChangLee <changlee@vmware.com> 1.18-3
45
+-       Modified %check
44 46
 *	Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.18-2
45 47
 -	GA - Bump release of all rpms
46 48
 *	Fri Apr 3 2015 Divya Thaluru <dthaluru@vmware.com> 1.18-1
... ...
@@ -2,7 +2,7 @@
2 2
 Summary:        YAML Ain't Markup Language (tm)
3 3
 Name:           perl-YAML
4 4
 Version:        1.15
5
-Release:        2%{?dist}
5
+Release:        3%{?dist}
6 6
 License:        GPL+ or Artistic
7 7
 Group:          Development/Libraries
8 8
 URL:            http://search.cpan.org/dist/YAML/
... ...
@@ -39,7 +39,9 @@ make install DESTDIR=%{buildroot}
39 39
 find %{buildroot} -name 'perllocal.pod' -delete
40 40
 
41 41
 %check
42
-make test
42
+export PERL_MM_USE_DEFAULT=1
43
+cpan Test::YAML
44
+make %{?_smp_mflags} test
43 45
 
44 46
 %files
45 47
 %dir %{perl_vendorlib}/YAML/
... ...
@@ -81,6 +83,8 @@ make test
81 81
 %{_mandir}/man3/YAML::Types.3*
82 82
 
83 83
 %changelog
84
+*       Wed Oct 05 2016 ChangLee <changlee@vmware.com> 1.15-3
85
+-       Modified %check
84 86
 *	Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.15-2
85 87
 -	GA - Bump release of all rpms
86 88
 *   Tue Feb 23 2016 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 1.15-1
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:	Build tool
2 2
 Name:		pkg-config
3 3
 Version:	0.28
4
-Release:	2%{?dist}
4
+Release:	3%{?dist}
5 5
 License:	GPLv2+
6 6
 URL:		http://www.freedesktop.org/wiki/Software/pkg-config
7 7
 Group:		Development/Tools
... ...
@@ -24,8 +24,10 @@ to build tools during the configure and make file execution.
24 24
 make %{?_smp_mflags}
25 25
 %install
26 26
 make DESTDIR=%{buildroot} install
27
+
27 28
 %check
28
-make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck}
29
+make %{?_smp_mflags} check
30
+
29 31
 %files
30 32
 %defattr(-,root,root)
31 33
 %{_bindir}/pkg-config
... ...
@@ -33,6 +35,8 @@ make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck}
33 33
 %{_docdir}/pkg-config-0.28/pkg-config-guide.html
34 34
 %{_mandir}/man1/pkg-config.1.gz
35 35
 %changelog
36
+*       Wed Oct 05 2016 ChangLee <changlee@vmware.com> 0.28-3
37
+-       Modified %check
36 38
 *	Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 0.28-2
37 39
 -	GA - Bump release of all rpms
38 40
 *	Wed Nov 5 2014 Divya Thaluru <dthaluru@vmware.com> 0.28-1
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:	Programs to parse command-line options
2 2
 Name:		popt
3 3
 Version:	1.16
4
-Release:	2%{?dist}
4
+Release:	3%{?dist}
5 5
 License:	MIT
6 6
 URL:		http://rpm5.org/files/popt
7 7
 Group:		Applications/System
... ...
@@ -32,8 +32,10 @@ make %{?_smp_mflags}
32 32
 make DESTDIR=%{buildroot} install
33 33
 find %{buildroot} -name '*.la' -delete
34 34
 %find_lang %{name}
35
+
35 36
 %check
36
-make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck}
37
+make %{?_smp_mflags} check
38
+
37 39
 %post	-p /sbin/ldconfig
38 40
 %postun	-p /sbin/ldconfig
39 41
 %files -f %{name}.lang
... ...
@@ -49,6 +51,8 @@ make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck}
49 49
 %{_libdir}/libpopt.so
50 50
 
51 51
 %changelog
52
+*       Wed Oct 05 2016 ChangLee <changlee@vmware.com> 1.16-3
53
+-       Modified %check
52 54
 *	Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.16-2
53 55
 -	GA - Bump release of all rpms
54 56
 *	Wed Nov 5 2014 Divya Thaluru <dthaluru@vmware.com> 1.16-1