Browse code

Modified %check for SPEC files - 17

Change-Id: Id8f7b8591405506f1c4400c159fba1a20f3136be
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/1488
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Danut Moraru <dmoraru@vmware.com>

Chang authored on 2016/10/06 05:30:30
Showing 10 changed files
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:	RPC program number mapper
2 2
 Name:		rpcbind
3 3
 Version:	0.2.3
4
-Release:	6%{?dist}
4
+Release:	7%{?dist}
5 5
 License:	BSD
6 6
 URL:		http://nfsv4.bullopensource.org
7 7
 Group:	    Applications/Daemons
... ...
@@ -40,6 +40,9 @@ install -m644 %{SOURCE1} %{buildroot}%{_unitdir}
40 40
 install -m644 %{SOURCE2} %{buildroot}%{_unitdir}
41 41
 install -m644 %{SOURCE3} %{buildroot}/etc/sysconfig/rpcbind
42 42
 
43
+%check
44
+make %{?_smp_mflags} check
45
+
43 46
 %files
44 47
 %defattr(-,root,root)
45 48
 %config(noreplace) /etc/sysconfig/rpcbind
... ...
@@ -48,9 +51,6 @@ install -m644 %{SOURCE3} %{buildroot}/etc/sysconfig/rpcbind
48 48
 %dir %{_localstatedir}/lib/rpcbind
49 49
 %{_unitdir}/*
50 50
 
51
-%check
52
-make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck}
53
-
54 51
 %pre
55 52
 rpcid=`getent passwd rpc | cut -d: -f 3`
56 53
 if [ -n "$rpcid" -a "$rpcid" != "31" ]; then
... ...
@@ -82,6 +82,8 @@ fi
82 82
 %clean
83 83
 rm -rf %{buildroot}/*
84 84
 %changelog
85
+*       Wed Oct 05 2016 ChangLee <changlee@vmware.com> 0.2.3-7
86
+-       Modified %check
85 87
 *	Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 0.2.3-6
86 88
 -	GA - Bump release of all rpms
87 89
 *	Wed May 04 2016 Anish Swaminathan <anishs@vmware.com> 0.2.3-5
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:        Commit RPMs to an OSTree repository
2 2
 Name:           rpm-ostree
3 3
 Version:        2015.7
4
-Release:        2%{?dist}
4
+Release:        3%{?dist}
5 5
 Source0:        rpm-ostree-%{version}.tar.gz
6 6
 %define sha1 rpm-ostree=9a0fa260d8671d9998b5f5509de1bbadd42f7127
7 7
 Source1:        libglnx-58a9a5c.tar.gz
... ...
@@ -70,6 +70,9 @@ make %{?_smp_mflags}
70 70
 make install DESTDIR=%{buildroot} INSTALL="install -p -c"
71 71
 find %{buildroot} -name '*.la' -delete
72 72
 
73
+%check
74
+make %{?_smp_mflags}  check
75
+
73 76
 %files
74 77
 %{_bindir}/rpm-ostree
75 78
 %{_bindir}/atomic
... ...
@@ -87,6 +90,8 @@ find %{buildroot} -name '*.la' -delete
87 87
 %{_datadir}/gir-1.0/*-1.0.gir
88 88
 
89 89
 %changelog
90
+*       Wed Oct 05 2016 ChangLee <changlee@vmware.com> 2015.7-3
91
+-       Modified %check
90 92
 *	Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 2015.7-2
91 93
 -	GA - Bump release of all rpms
92 94
 *	Thu Jun 18 2015 Anish Swaminathan <anishs@vmware.com> 2015.7-1
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:          Package manager
2 2
 Name:              rpm
3 3
 Version:          4.11.2
4
-Release:          11%{?dist}
4
+Release:          12%{?dist}
5 5
 License:          GPLv2+
6 6
 URL:              http://rpm.org
7 7
 Group:            Applications/System
... ...
@@ -92,6 +92,10 @@ install -dm 755 %{buildroot}%{_sysconfdir}/rpm
92 92
 install -vm644 %{SOURCE2} %{buildroot}%{_sysconfdir}/rpm/
93 93
 install -vm755 %{SOURCE3} %{buildroot}%{_libdir}/rpm/
94 94
 install -vm755 %{SOURCE4} %{buildroot}%{_libdir}/rpm/
95
+
96
+%check
97
+make %{?_smp_mflags} check
98
+
95 99
 %post -p /sbin/ldconfig
96 100
 %postun -p /sbin/ldconfig
97 101
 %clean
... ...
@@ -197,6 +201,8 @@ rm -rf %{buildroot}
197 197
 %{_libdir}/librpmsign.so.*
198 198
 
199 199
 %changelog
200
+*    Wed Oct 05 2016 ChangLee <changlee@vmware.com> 4.11.2-12
201
+-    Modified %check
200 202
 *    Fri Aug 26 2016 Alexey Makhalov <amakhalov@vmware.com> 4.11.2-11
201 203
 -    find-debuginfo...patch: exclude non existing .build-id from packaging
202 204
 -    Move all files from rpm-system-configuring-scripts tarball to here 
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:	Fast incremental file transfer. 
2 2
 Name:		rsync
3 3
 Version:	3.1.2
4
-Release:	2%{?dist}
4
+Release:	3%{?dist}
5 5
 License:	GPLv3+
6 6
 URL:		https://rsync.samba.org/
7 7
 Source0:	https://download.samba.org/pub/rsync/src/%{name}-%{version}.tar.gz
... ...
@@ -38,6 +38,9 @@ ExecStart=/usr/bin/rsync --daemon --no-detach
38 38
 WantedBy=multi-user.target
39 39
 EOF
40 40
 
41
+%check
42
+make %{?_smp_mflags} check
43
+
41 44
 %post
42 45
 /sbin/ldconfig
43 46
 %postun	-p /sbin/ldconfig
... ...
@@ -51,6 +54,8 @@ EOF
51 51
 %{_libdir}/systemd/system/rsyncd.service
52 52
 %{_sysconfdir}/rsyncd.conf
53 53
 %changelog
54
+*       Wed Oct 05 2016 ChangLee <changlee@vmware.com> 3.1.2-3
55
+-       Modified %check
54 56
 *	Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 3.1.2-2
55 57
 -	GA - Bump release of all rpms
56 58
 *   Thu Jan 21 2016 Xiaolin Li <xiaolinl@vmware.com> 3.1.2-1
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:	Rocket-fast system for log processing
2 2
 Name:		rsyslog
3 3
 Version:	8.15.0
4
-Release:	5%{?dist}
4
+Release:	6%{?dist}
5 5
 License:	GPLv3+ and ASL 2.0
6 6
 URL:		http://www.rsyslog.com/
7 7
 Source0:	http://www.rsyslog.com/files/download/rsyslog/%{name}-%{version}.tar.gz
... ...
@@ -50,8 +50,10 @@ rm -f %{buildroot}/lib/systemd/system/rsyslog.service
50 50
 install -p -m 644 %{SOURCE1} %{buildroot}%{_libdir}/systemd/system/
51 51
 install -p -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/systemd/journald.conf.d/
52 52
 find %{buildroot} -name '*.la' -delete
53
+
53 54
 %check
54
-make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck}
55
+make %{?_smp_mflags} check
56
+
55 57
 %post
56 58
 /sbin/ldconfig
57 59
 %systemd_post rsyslog.service
... ...
@@ -72,8 +74,10 @@ make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck}
72 72
 %{_libdir}/systemd/system/rsyslog.service
73 73
 %{_sysconfdir}/systemd/journald.conf.d/*
74 74
 %changelog
75
-*   Thu May 26 2016 Divya Thaluru <dthaluru@vmware.com>  8.15.0-5
76
--   Fixed logic to restart the active services after upgrade 
75
+*       Wed Oct 05 2016 ChangLee <changlee@vmware.com> 8.15.0-6
76
+-       Modified %check
77
+*       Thu May 26 2016 Divya Thaluru <dthaluru@vmware.com>  8.15.0-5
78
+-       Fixed logic to restart the active services after upgrade
77 79
 *	Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 8.15.0-4
78 80
 -	GA - Bump release of all rpms
79 81
 *   	Wed May 4 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com>  8.15.0-3
... ...
@@ -5,7 +5,7 @@
5 5
 Summary: Builders for MarkUp
6 6
 Name: rubygem-builder
7 7
 Version: 3.2.2
8
-Release: 2%{?dist}
8
+Release: 3%{?dist}
9 9
 Group: Development/Languages
10 10
 License: MIT
11 11
 URL: http://onestepback.org
... ...
@@ -23,11 +23,21 @@ data simple to do. Currently the following builder objects are supported:
23 23
 %build
24 24
 %install
25 25
 gem install -V --local --force --install-dir %{buildroot}/%{gemdir} %{SOURCE0}
26
+
27
+%check
28
+pushd /usr/src/photon/BUILDROOT/rubygem-builder-%{version}-%{release}.x86_64/usr/lib/ruby/gems/2.3.0/gems/builder-%{version}/
29
+curl -sSL https://get.rvm.io | bash -s stable --without-gems="rvm rubygems-bundler"
30
+export PATH=$PATH:/usr/local/rvm/bin
31
+rake test
32
+popd
33
+
26 34
 %files
27 35
 %defattr(-,root,root,-)
28 36
 %{gemdir}
29 37
 
30 38
 %changelog
39
+*       Wed Oct 05 2016 ChangLee <changlee@vmware.com> 3.2.2-3
40
+-       Modified %check
31 41
 *	Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 3.2.2-2
32 42
 -	GA - Bump release of all rpms
33 43
 * Wed Nov 11 2015 Xiaolin Li <amakhalov@vmware.com> 3.2.2-1
... ...
@@ -5,7 +5,7 @@
5 5
 Summary: Ruby interface to the VMware vSphere API.
6 6
 Name: rubygem-rbvmomi
7 7
 Version: 1.8.2
8
-Release: 2%{?dist}
8
+Release: 3%{?dist}
9 9
 Group: Development/Languages
10 10
 License: MIT
11 11
 URL: https://github.com/vmware/rbvmomi
... ...
@@ -22,11 +22,22 @@ RbVmomi is a Ruby interface to the vSphere API. Like the Perl and Java SDKs, you
22 22
 %build
23 23
 %install
24 24
 gem install -V --local --force --install-dir %{buildroot}/%{gemdir} %{SOURCE0}
25
+
26
+%check
27
+pushd /usr/src/photon/BUILDROOT/rubygem-rbvmomi-%{version}-%{release}.x86_64/usr/lib/ruby/gems/2.3.0/gems/rbvmomi-%{version}/
28
+gem install yard
29
+gem install jeweler
30
+gem install rake
31
+rake test
32
+popd
33
+
25 34
 %files
26 35
 %defattr(-,root,root,-)
27 36
 %{gemdir}
28 37
 
29 38
 %changelog
39
+*       Wed Oct 05 2016 ChangLee <changlee@vmware.com> 1.8.2-3
40
+-       Modified %check
30 41
 *	Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.8.2-2
31 42
 -	GA - Bump release of all rpms
32 43
 * 	Thu Feb 25 2016 Anish Swaminathan <anishs@vmware.com>  1.8.2-1
... ...
@@ -3,7 +3,7 @@
3 3
 %define gem_name zip
4 4
 Name: rubygem-zip
5 5
 Version: 2.0.2
6
-Release: 2%{?dist}
6
+Release: 3%{?dist}
7 7
 Summary: Ruby library for reading and writing Zip files
8 8
 Group: Applications/Programming
9 9
 License: BSD
... ...
@@ -19,10 +19,19 @@ Ruby library for reading and writing Zip files
19 19
 %build
20 20
 %install
21 21
 gem install -V --local --force --install-dir %{buildroot}/%{gemdir} %{SOURCE0}
22
+
23
+%check
24
+pushd /usr/src/photon/BUILDROOT/rubygem-zip-%{version}-%{release}.x86_64/usr/lib/ruby/gems/2.3.0/gems/zip-%{version}/
25
+gem install jeweler
26
+rake test
27
+popd
28
+
22 29
 %files
23 30
 %defattr(-,root,root,-)
24 31
 %{gemdir}
25 32
 %changelog
33
+*       Wed Oct 05 2016 ChangLee <changlee@vmware.com> 2.0.2-3
34
+-       Modified %check
26 35
 *	Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 2.0.2-2
27 36
 -	GA - Bump release of all rpms
28 37
 * Wed Nov 11 2015 Anish Swaminathan <anishs@vmware.com> 2.0.2-1
... ...
@@ -2,7 +2,7 @@
2 2
 Summary:        A UNIX init scheme with service supervision
3 3
 Name:           runit
4 4
 Version:        2.1.2
5
-Release:        2%{?dist}
5
+Release:        3%{?dist}
6 6
 License:        BSD
7 7
 Group:		System Environment/Base
8 8
 Vendor:		VMware, Inc.
... ...
@@ -38,6 +38,8 @@ install -d -m 0755 %{buildroot}/etc/service
38 38
 install -D -m 0750 etc/2 %{buildroot}%{_sbindir}/runsvdir-start
39 39
 install -D -m 0755 %{SOURCE1} %{buildroot}/lib/systemd/system/runit.service
40 40
 
41
+%check
42
+sh package/check
41 43
 
42 44
 %clean
43 45
 rm -rf %{buildroot}
... ...
@@ -50,6 +52,8 @@ rm -rf %{buildroot}
50 50
 %dir /etc/service
51 51
 
52 52
 %changelog
53
+*       Wed Oct 05 2016 ChangLee <changlee@vmware.com> 2.1.2-3
54
+-       Modified %check
53 55
 *	Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 2.1.2-2
54 56
 -	GA - Bump release of all rpms
55 57
 *	Tue Aug 4 2015 Divya Thaluru <dthaluru@vmware.com> 2.1.2-1
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:	Stream editor
2 2
 Name:		sed
3 3
 Version:	4.2.2
4
-Release:	2%{?dist}
4
+Release:	3%{?dist}
5 5
 License:	GPLv3
6 6
 URL:		http://www.gnu.org/software/sed
7 7
 Group:		Applications/Editors
... ...
@@ -32,8 +32,10 @@ make %{?_smp_mflags}
32 32
 make DESTDIR=%{buildroot} install
33 33
 rm -rf %{buildroot}%{_infodir}
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
 %files
38 40
 %defattr(-,root,root)
39 41
 /bin/*
... ...
@@ -43,6 +45,8 @@ make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck}
43 43
 %defattr(-,root,root)
44 44
 
45 45
 %changelog
46
+*       Wed Oct 05 2016 ChangLee <changlee@vmware.com> 4.2.2-3
47
+-       Modified %check
46 48
 *	Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 4.2.2-2
47 49
 -	GA - Bump release of all rpms
48 50
 *	Wed Nov 5 2014 Divya Thaluru <dthaluru@vmware.com> 4.2.2-1