Browse code

Add conflict toybox and fix bug in check_spec_files.sh

Change-Id: I040e45eb48ee051bde156cbed5a40cd65ed566cd
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/5935
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Alexey Makhalov <amakhalov@vmware.com>

michellew-vmware authored on 2018/10/17 22:27:24
Showing 9 changed files
... ...
@@ -1,33 +1,35 @@
1
-Summary:	Contains programs for compressing and decompressing files
2
-Name:		bzip2
3
-Version:	1.0.6
4
-Release:	8%{?dist}
5
-License:	BSD
6
-URL:		http://www.bzip.org/
7
-Group:		System Environment/Base
8
-Vendor:		VMware, Inc.
9
-Distribution: Photon
10
-Source0:		http://www.bzip.org/%{version}/%{name}-%{version}.tar.gz
11
-Provides:    libbz2.so.1()(64bit)
1
+Summary:        Contains programs for compressing and decompressing files
2
+Name:           bzip2
3
+Version:        1.0.6
4
+Release:        9%{?dist}
5
+License:        BSD
6
+URL:            http://www.bzip.org/
7
+Group:          System Environment/Base
8
+Vendor:         VMware, Inc.
9
+Distribution:   Photon
10
+Source0:        http://www.bzip.org/%{version}/%{name}-%{version}.tar.gz
11
+Provides:       libbz2.so.1()(64bit)
12 12
 %define sha1 bzip2=3f89f861209ce81a6bab1fd1998c0ef311712002
13
-Patch0:		http://www.linuxfromscratch.org/patches/lfs/7.2/bzip2-1.0.6-install_docs-1.patch
13
+Patch0:         http://www.linuxfromscratch.org/patches/lfs/7.2/bzip2-1.0.6-install_docs-1.patch
14 14
 Patch1:         CVE-2016-3189.patch
15 15
 Requires:       bzip2-libs = %{version}-%{release}
16
+Conflicts:      toybox
17
+
16 18
 %description
17 19
 The Bzip2 package contains programs for compressing and
18 20
 decompressing files.  Compressing text files with bzip2 yields a much better
19 21
 compression percentage than with the traditional gzip.
20 22
 
21
-%package	devel
22
-Summary:	Header and development files for bzip2
23
-Requires:	bzip2
24
-%description	devel
25
-It contains the libraries and header files to create applications 
23
+%package        devel
24
+Summary:        Header and development files for bzip2
25
+Requires:       bzip2
26
+%description    devel
27
+It contains the libraries and header files to create applications
26 28
 
27 29
 %package libs
28
-Summary: Libraries for bzip2
29
-Group:      System Environment/Libraries
30
-%description libs
30
+Summary:        Libraries for bzip2
31
+Group:          System Environment/Libraries
32
+%description    libs
31 33
 This package contains minimal set of shared bzip2 libraries.
32 34
 
33 35
 %prep
... ...
@@ -36,10 +38,12 @@ This package contains minimal set of shared bzip2 libraries.
36 36
 %patch1 -p1
37 37
 sed -i 's@\(ln -s -f \)$(PREFIX)/bin/@\1@' Makefile
38 38
 sed -i "s@(PREFIX)/man@(PREFIX)/share/man@g" Makefile
39
+
39 40
 %build
40 41
 make VERBOSE=1 %{?_smp_mflags} -f Makefile-libbz2_so
41 42
 make clean
42 43
 make VERBOSE=1 %{?_smp_mflags}
44
+
43 45
 %install
44 46
 make PREFIX=%{buildroot}/usr install
45 47
 install -vdm 0755 %{buildroot}/%{_lib}
... ...
@@ -52,10 +56,13 @@ rm -v %{buildroot}%{_bindir}/{bunzip2,bzcat}
52 52
 ln -sv bzip2 %{buildroot}/usr/bin/bunzip2
53 53
 ln -sv bzip2 %{buildroot}/usr/bin/bzcat
54 54
 find %{buildroot} -name '*.a'  -delete
55
+
55 56
 %check
56 57
 make %{?_smp_mflags} check
58
+
57 59
 %post	-p /sbin/ldconfig
58 60
 %postun	-p /sbin/ldconfig
61
+
59 62
 %files
60 63
 %defattr(-,root,root)
61 64
 %{_bindir}/bzcat
... ...
@@ -87,19 +94,21 @@ make %{?_smp_mflags} check
87 87
 %{_lib}/libbz2.so.*
88 88
 
89 89
 %changelog
90
+*   Tue Oct 2 2018 Michelle Wang <michellew@vmware.com> 1.0.6-9
91
+-   Add conflicts toybox.
90 92
 *   Sun Jun 04 2017 Bo Gan <ganb@vmware.com> 1.0.6-8
91
--   Fix symlink
93
+-   Fix symlink.
92 94
 *   Fri Apr 14 2017 Alexey Makhalov <amakhalov@vmware.com> 1.0.6-7
93
--   Added -libs subpackage
95
+-   Added -libs subpackage.
94 96
 *   Fri Oct 21 2016 Kumar Kaushik <kaushikk@vmware.com> 1.0.6-6
95 97
 -   Fixing security bug CVE-2016-3189.
96 98
 *   Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.0.6-5
97
--   GA - Bump release of all rpms
99
+-   GA - Bump release of all rpms.
98 100
 *   Tue Nov 10 2015 Mahmoud Bassiouny <mbassiouny@vmware.com> 1.0.6-4
99 101
 -   Providing libbz2.so.1, miror fix for devel provides.
100 102
 *   Fri Jun 5 2015 Divya Thaluru <dthaluru@vmware.com> 1.0.6-3
101
--   Adding bzip2 package run time required package for bzip2-devel package 
103
+-   Adding bzip2 package run time required package for bzip2-devel package.
102 104
 *   Mon May 18 2015 Touseef Liaqat <tliaqat@vmware.com> 1.0.6-2
103 105
 -   Update according to UsrMove.
104 106
 *   Wed Nov 5 2014 Divya Thaluru <dthaluru@vmware.com> 1.0.6-1
105
--   Initial build.	First version
107
+-   Initial build First version.
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:	Programs that show the differences between files or directories
2 2
 Name:		diffutils
3 3
 Version:	3.6
4
-Release:	1%{?dist}
4
+Release:	2%{?dist}
5 5
 License:	GPLv3+
6 6
 URL:		http://www.gnu.org/software/diffutils
7 7
 Group:		System Environment/Base
... ...
@@ -9,21 +9,26 @@ Vendor:		VMware, Inc.
9 9
 Distribution:	Photon
10 10
 Source0:	http://ftp.gnu.org/gnu/diffutils/%{name}-%{version}.tar.xz
11 11
 %define sha1 diffutils=1287a553868b808ebfff3790a5cdc6fdf7cb2886
12
-BuildRequires:	coreutils
12
+BuildRequires:  coreutils
13
+Conflicts:      toybox
14
+
13 15
 %description
14 16
 The Diffutils package contains programs that show the
15 17
 differences between files or directories.
16 18
 %prep
17 19
 %setup -q
18 20
 sed -i 's:= @mkdir_p@:= /bin/mkdir -p:' po/Makefile.in.in
21
+
19 22
 %build
20
-./configure \
21
-	--prefix=%{_prefix} \
22
-	--disable-silent-rules
23
+
24
+%configure --disable-silent-rules
25
+
23 26
 make %{?_smp_mflags}
27
+
24 28
 %install
25 29
 make DESTDIR=%{buildroot} install
26 30
 rm -rf %{buildroot}%{_infodir}
31
+
27 32
 %find_lang %{name}
28 33
 
29 34
 %check
... ...
@@ -34,16 +39,19 @@ make %{?_smp_mflags} check
34 34
 %defattr(-,root,root)
35 35
 %{_bindir}/*
36 36
 %{_mandir}/*/*
37
+
37 38
 %changelog
39
+*       Tue Oct 2 2018 Michelle Wang <michellew@vmware.com> 3.6-2
40
+-       Add conflicts toybox.
38 41
 *       Fri Aug 03 2018 Srivatsa S. Bhat <srivatsa@csail.mit.edu> 3.6-1
39
--       Update to version 3.6 to get it to build with gcc 7.3
42
+-       Update to version 3.6 to get it to build with gcc 7.3.
40 43
 *       Wed Apr 19 2017 Bo Gan <ganb@vmware.com> 3.5-1
41
--       Update to 3.5
44
+-       Update to 3.5.
42 45
 *       Wed Oct 05 2016 ChangLee <changlee@vmware.com> 3.3-4
43
--       Modified %check
44
-*	Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 3.3-3
45
--	GA - Bump release of all rpms
46
-*	Wed Jun 3 2015 Divya Thaluru <dthaluru@vmware.com> 3.3-2
47
--	Adding coreutils package to build requires
48
-*	Wed Nov 5 2014 Divya Thaluru <dthaluru@vmware.com> 3.3-1
49
--	Initial build.	First version
46
+-       Modified %check.
47
+*       Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 3.3-3
48
+-       GA Bump release of all rpms.
49
+*       Wed Jun 3 2015 Divya Thaluru <dthaluru@vmware.com> 3.3-2
50
+-       Adding coreutils package to build requires.
51
+*       Wed Nov 5 2014 Divya Thaluru <dthaluru@vmware.com> 3.3-1
52
+-       Initial build First version.
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:        Contains the utilities for the ext2 file system
2 2
 Name:           e2fsprogs
3 3
 Version:        1.44.3
4
-Release:        1%{?dist}
4
+Release:        2%{?dist}
5 5
 License:        GPLv2+
6 6
 URL:            http://e2fsprogs.sourceforge.net
7 7
 Group:          System Environment/Base
... ...
@@ -10,9 +10,10 @@ Distribution:   Photon
10 10
 Source0:        http://prdownloads.sourceforge.net/e2fsprogs/%{name}-%{version}.tar.gz
11 11
 %define sha1    e2fsprogs=bfe11b75fee61c4d3795ac27eea11f9f7843294b
12 12
 Requires:       %{name}-libs = %{version}-%{release}
13
+Conflicts:      toybox
14
+
13 15
 %description
14
-The E2fsprogs package contains the utilities for handling
15
-the ext2 file system.
16
+The E2fsprogs package contains the utilities for handling the ext2 file system.
16 17
 
17 18
 %package    libs
18 19
 Summary:    contains libraries used by other packages
... ...
@@ -23,7 +24,7 @@ It contains the libraries: libss and libcom_err
23 23
 Summary:    Header and development files for e2fsprogs
24 24
 Requires:   %{name} = %{version}
25 25
 %description    devel
26
-It contains the libraries and header files to create applications 
26
+It contains the libraries and header files to create applications
27 27
 
28 28
 %package lang
29 29
 Summary: Additional language files for e2fsprogs
... ...
@@ -34,16 +35,13 @@ These are the additional language files of e2fsprogs
34 34
 
35 35
 %prep
36 36
 %setup -q
37
-install -vdm 755 build
38 37
 sed -i -e 's|^LD_LIBRARY_PATH.*|&:/tools/lib|' tests/test_config
39 38
 
40 39
 %build
41
-cd build
42 40
 LIBS=-L/tools/lib \
43 41
 CFLAGS=-I/tools/include \
44 42
 PKG_CONFIG_PATH=/tools/lib/pkgconfig \
45
-../configure \
46
-    --prefix=%{_prefix} \
43
+%configure \
47 44
     --with-root-prefix='' \
48 45
     --enable-elf-shlibs \
49 46
     --disable-libblkid \
... ...
@@ -55,20 +53,18 @@ PKG_CONFIG_PATH=/tools/lib/pkgconfig \
55 55
 make %{?_smp_mflags}
56 56
 
57 57
 %install
58
-pushd build
59 58
 make DESTDIR=%{buildroot} install
60 59
 make DESTDIR=%{buildroot} install-libs
61 60
 chmod -v u+w %{buildroot}/%{_libdir}/{libcom_err,libe2p,libext2fs,libss}.a
62 61
 rm -rf %{buildroot}%{_infodir}
63
-popd
64 62
 %find_lang %{name}
65 63
 
66 64
 %check
67
-cd build
68 65
 make %{?_smp_mflags} check
69 66
 
70 67
 %post
71 68
 /sbin/ldconfig
69
+
72 70
 %postun
73 71
 /sbin/ldconfig
74 72
 
... ...
@@ -88,21 +84,17 @@ make %{?_smp_mflags} check
88 88
 %{_mandir}/man1/*
89 89
 %{_mandir}/man5/*
90 90
 %{_sbindir}/*
91
-/lib/libext2fs.so.2.4
92
-/lib/libe2p.so.2.3
93
-/lib/libe2p.so.2
94
-/lib/libext2fs.so.2
95
-/sbin/*
91
+%{_libdir}/libext2fs.so.2.4
92
+%{_libdir}/libe2p.so.2.3
93
+%{_libdir}/libe2p.so.2
94
+%{_libdir}/libext2fs.so.2
96 95
 %{_libdir}/libe2p.so
97 96
 %{_libdir}/libext2fs.so
98 97
 
99 98
 %files libs
100
-/lib/libss.so.2
101
-/lib/libcom_err.so.2.1
102
-/lib/libss.so.2.0
103
-/lib/libcom_err.so.2
104
-%{_libdir}/libcom_err.so
105 99
 %{_libdir}/libss.so
100
+%{_libdir}/libss.so.*
101
+%{_libdir}/libcom_err.*
106 102
 
107 103
 %files devel
108 104
 %{_includedir}/ss/ss_err.h
... ...
@@ -135,28 +127,29 @@ make %{?_smp_mflags} check
135 135
 %defattr(-,root,root)
136 136
 
137 137
 %changelog
138
+*   Tue Oct 2 2018 Michelle Wang <michellew@vmware.com> 1.44.3-2
139
+-   Add conflicts toybox.
138 140
 *   Mon Sep 10 2018 Alexey Makhalov <amakhalov@vmware.com> 1.44.3-1
139
--   Version update to fix compilation issue againts glibc-2.28
141
+-   Version update to fix compilation issue againts glibc-2.28.
140 142
 *   Tue May 02 2017 Anish Swaminathan <anishs@vmware.com> 1.43.4-2
141 143
 -   Add lang package.
142 144
 *   Mon Apr 03 2017 Chang Lee <changlee@vmware.com> 1.43.4-1
143
--   Updated to version 1.43.4
145
+-   Updated to version 1.43.4.
144 146
 *   Wed Dec 07 2016 Xiaolin Li <xiaolinl@vmware.com> 1.42.13-5
145 147
 -   Moved man3 to devel subpackage.
146 148
 *   Wed Nov 16 2016 Alexey Makhalov <amakhalov@vmware.com> 1.42.13-4
147
--   Create libs subpackage for krb5
149
+-   Create libs subpackage for krb5.
148 150
 *   Tue Sep 20 2016 Alexey Makhalov <amakhalov@vmware.com> 1.42.13-3
149
--   Use symlinks - save a diskspace
151
+-   Use symlinks - save a diskspace.
150 152
 *   Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.42.13-2
151
--   GA - Bump release of all rpms
153
+-   GA - Bump release of all rpms.
152 154
 *   Tue Jan 12 2016 Xiaolin Li <xiaolinl@vmware.com> 1.42.13-1
153
--   Updated to version 1.42.13
155
+-   Updated to version 1.42.13.
154 156
 *   Wed Dec 09 2015 Anish Swaminathan <anishs@vmware.com> 1.42.9-4
155 157
 -   Edit post script.
156 158
 *   Tue Nov 10 2015 Xiaolin Li <xiaolinl@vmware.com> 1.42.9-3
157
--   Handled locale files with macro find_lang
159
+-   Handled locale files with macro find_lang.
158 160
 *   Mon May 18 2015 Touseef Liaqat <tliaqat@vmware.com> 1.42.9-2
159 161
 -   Update according to UsrMove.
160 162
 *   Wed Nov 5 2014 Divya Thaluru <dthaluru@vmware.com> 1.42.9-1
161
--   Initial build. First version
162
-
163
+-   Initial build First version.
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:	Key table files, console fonts, and keyboard utilities
2 2
 Name:		kbd
3 3
 Version:	2.0.4
4
-Release:	2%{?dist}
4
+Release:	3%{?dist}
5 5
 License:	GPLv2
6 6
 URL:		http://ftp.altlinux.org/pub/people/legion/kbd
7 7
 Group:		Applications/System
... ...
@@ -11,20 +11,22 @@ Source0:	http://ftp.altlinux.org/pub/people/legion/kbd/%{name}-%{version}.tar.xz
11 11
 %define sha1 kbd=cf5d45c62d6af70b8b1f210d89193b52f5efb05d
12 12
 Patch0:		kbd-2.0.4-backspace-1.patch
13 13
 BuildRequires:	check >= 0.9.4
14
+Conflicts:      toybox
15
+
14 16
 %description
15 17
 The Kbd package contains key-table files, console fonts, and keyboard utilities.
18
+
16 19
 %prep
17 20
 %setup -q
18 21
 %patch0 -p1
19 22
 sed -i 's/\(RESIZECONS_PROGS=\)yes/\1no/g' configure
20 23
 sed -i 's/resizecons.8 //'  docs/man/man8/Makefile.in
24
+
21 25
 %build
22 26
 PKG_CONFIG_PATH=/tools/lib/pkgconfig \
23
-./configure \
24
-	--prefix=%{_prefix} \
25
-	--disable-vlock \
26
-	--disable-silent-rules
27
+%configure --disable-vlock --disable-silent-rules
27 28
 make %{?_smp_mflags}
29
+
28 30
 %install
29 31
 make DESTDIR=%{buildroot} install
30 32
 install -vdm 755 %{buildroot}%{_defaultdocdir}/%{name}-%{version}
... ...
@@ -46,14 +48,17 @@ make %{?_smp_mflags} check
46 46
 %{_datarootdir}/keymaps/*
47 47
 %{_datarootdir}/unimaps/*
48 48
 %{_mandir}/*/*
49
+
49 50
 %changelog
51
+*   Tue Oct 2 2018 Michelle Wang <michellew@vmware.com> 2.0.4-3
52
+-   Add conflict toybox.
50 53
 *   Mon Sep 11 2017 Anish Swaminathan <anishs@vmware.com> 2.0.4-2
51
--   Remove FAQs from main package
54
+-   Remove FAQs from main package.
52 55
 *   Mon Apr 03 2017 Divya Thaluru <dthaluru@vmware.com> 2.0.4-1
53
--   Updated to version 2.0.4
56
+-   Updated to version 2.0.4.
54 57
 *   Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 2.0.3-2
55
--   GA - Bump release of all rpms
58
+-   GA - Bump release of all rpms.
56 59
 *   Wed Jan 13 2016 Xiaolin Li <xiaolinl@vmware.com> 2.0.3-1
57
--   Updated to version 2.0.3
60
+-   Updated to version 2.0.3.
58 61
 *   Wed Nov 5 2014 Divya Thaluru <dthaluru@vmware.com> 2.0.1-1
59
--   Initial build. First version
62
+-   Initial build First version.
... ...
@@ -1,39 +1,39 @@
1
-Summary:	GNU Parted manipulates partition tables
2
-Name:		parted
3
-Version:	3.2
4
-Release:	6%{?dist}
5
-License:	GPLv3+
6
-URL:		http://ftp.gnu.org/gnu/parted/parted-3.2.tar.xz
7
-Group:		Applications/System
8
-Vendor:		VMware, Inc.
9
-Distribution:	Photon
10
-Source0:	http://ftp.gnu.org/gnu/parted/%{name}-%{version}.tar.xz
1
+Summary:        GNU Parted manipulates partition tables
2
+Name:           parted
3
+Version:        3.2
4
+Release:        7%{?dist}
5
+License:        GPLv3+
6
+URL:            http://ftp.gnu.org/gnu/parted/parted-3.2.tar.xz
7
+Group:          Applications/System
8
+Vendor:         VMware, Inc.
9
+Distribution:   Photon
10
+Source0:        http://ftp.gnu.org/gnu/parted/%{name}-%{version}.tar.xz
11 11
 %define sha1 parted=8cabb2d6789badec15c857dcc003d0dd931a818b
12
+Conflicts:      toybox
13
+
12 14
 %description
13 15
 This is useful for creating space for new operating systems,
14 16
 reorganizing disk usage, copying data on hard disks and disk imaging.
15 17
 The package contains a library, libparted, as well as well as a
16 18
 command-line frontend, parted, which can also be used in scripts.
19
+
17 20
 %prep
18 21
 %setup -q
19 22
 %build
20 23
 #Add a header to allow building with glibc-2.28 or later
21 24
 sed -i '/utsname.h/a#include <sys/sysmacros.h>' libparted/arch/linux.c &&
22
-./configure \
23
-	--prefix=%{_prefix} \
24
-	--bindir=%{_bindir} \
25
-	--infodir=%{_infodir}/%{name}-%{version} \
26
-	--without-readline \
27
-	--disable-debug \
28
-	--disable-nls \
29
-	--disable-device-mapper
25
+
26
+%configure --without-readline --disable-debug \
27
+	   --disable-nls --disable-device-mapper
30 28
 make %{?_smp_mflags}
29
+
31 30
 %install
32 31
 make DESTDIR=%{buildroot} install
33 32
 
34 33
 %post	-p /sbin/ldconfig
35 34
 %postun	-p /sbin/ldconfig
36
-%files 
35
+
36
+%files
37 37
 %defattr(-,root,root)
38 38
 %{_sbindir}/*
39 39
 %{_libdir}/*.a
... ...
@@ -42,18 +42,21 @@ make DESTDIR=%{buildroot} install
42 42
 %{_libdir}/*.so.*
43 43
 %{_libdir}/pkgconfig/*.pc
44 44
 %{_includedir}/*
45
-%{_infodir}/%{name}-%{version}/*
45
+%{_infodir}/*
46 46
 %{_datadir}/*
47
+
47 48
 %changelog
48
-* Sun Sep 09 2018 Alexey Makhalov <amakhalov@vmware.com> 3.2-6
49
-- Fix compilation issue against glibc-2.28
50
-* Wed Aug 16 2017 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 3.2-5
51
-- Fix summary and description
52
-* Tue Jun 06 2017 ChangLee <changlee@vmware.com> 3.2-4
53
-- Remove %check
54
-* Fri Oct 07 2016 ChangLee <changlee@vmware.com> 3.2-3
55
-- Modified %check
56
-* Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 3.2-2
57
-- GA - Bump release of all rpms
58
-* Wed Nov 12 2014 Mahmoud Bassiouny <mbassiouny@vmware.com> 3.2-1
59
-- Initial version
49
+*  Tue Oct 2 2018 Michelle Wang <michellew@vmware.com> 3.2-7
50
+-  Add conflict toybox.
51
+*  Sun Sep 09 2018 Alexey Makhalov <amakhalov@vmware.com> 3.2-6
52
+-  Fix compilation issue against glibc-2.28.
53
+*  Wed Aug 16 2017 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 3.2-5
54
+-  Fix summary and description.
55
+*  Tue Jun 06 2017 ChangLee <changlee@vmware.com> 3.2-4
56
+-  Remove %check.
57
+*  Fri Oct 07 2016 ChangLee <changlee@vmware.com> 3.2-3
58
+-  Modified %check.
59
+*  Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 3.2-2
60
+-  GA Bump release of all rpms.
61
+*  Wed Nov 12 2014 Mahmoud Bassiouny <mbassiouny@vmware.com> 3.2-1
62
+-  Initial version.
... ...
@@ -1,43 +1,51 @@
1
-Summary:	Program for modifying or creating files
2
-Name:		patch
3
-Version:	2.7.6
4
-Release:	1%{?dist}
5
-License:	GPLv3+
6
-URL:		http://www.gnu.org/software/%{name}
7
-Source0:	ftp://ftp.gnu.org/gnu/patch/%{name}-%{version}.tar.gz
1
+Summary:        Program for modifying or creating files
2
+Name:           patch
3
+Version:        2.7.6
4
+Release:        2%{?dist}
5
+License:        GPLv3+
6
+URL:            http://www.gnu.org/software/%{name}
7
+Source0:        ftp://ftp.gnu.org/gnu/patch/%{name}-%{version}.tar.gz
8 8
 %define sha1 patch=0ed8f3e49d84964f27e27c712fc8780e291dfa60
9
-Group:		Development/Tools
10
-Vendor:		VMware, Inc.
11
-Distribution: 	Photon
9
+Group:          Development/Tools
10
+Vendor:         VMware, Inc.
11
+Distribution:   Photon
12
+Conflicts:      toybox
13
+
12 14
 %description
13 15
 Program for modifying or creating files by applying a patch
14 16
 file typically created by the diff program.
17
+
15 18
 %prep
16 19
 %setup -q
20
+
17 21
 %build
18
-./configure \
19
-	--prefix=%{_prefix} \
20
-	--disable-silent-rules
22
+%configure --disable-silent-rules
21 23
 make %{?_smp_mflags}
24
+
22 25
 %install
23 26
 make DESTDIR=%{buildroot} install
27
+
24 28
 %check
25 29
 sed -i "s/ulimit -n 32/ulimit -n 1024/g" tests/deep-directories
26 30
 make  %{?_smp_mflags} check
31
+
27 32
 %files
28 33
 %defattr(-,root,root)
29 34
 %{_bindir}/*
30 35
 %{_mandir}/*/*
36
+
31 37
 %changelog
38
+*   Tue Oct 2 2018 Michelle Wang <michellew@vmware.com> 2.7.6-2
39
+-   Add conflicts toybox.
32 40
 *   Tue Sep 11 2018 Him Kalyan Bordoloi <bordoloih@vmware.com> 2.7.6-1
33
--   Upgrade to 2.7.6
41
+-   Upgrade to 2.7.6.
34 42
 *   Fri Apr 28 2017 Divya Thaluru <dthaluru@vmware.com> 2.7.5-4
35
--   Fixed ulimit in test script
43
+-   Fixed ulimit in test script.
36 44
 *   Fri Oct 07 2016 ChangLee <changlee@vmware.com> 2.7.5-3
37
--   Modified %check
45
+-   Modified %check.
38 46
 *   Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 2.7.5-2
39
--   GA - Bump release of all rpms
47
+-   GA - Bump release of all rpms.
40 48
 *   Tue Aug 11 2015 Divya Thaluru <dthaluru@vmware.com> 2.7.5-1
41
--   Updating to 2.7.5 version
49
+-   Updating to 2.7.5 version.
42 50
 *   Wed Nov 5 2014 Divya Thaluru <dthaluru@vmware.com> 2.7.1-1
43
--   Initial build. First version
51
+-   Initial build First version.
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:        Programs for handling passwords in a secure way
2 2
 Name:           shadow
3 3
 Version:        4.6
4
-Release:        1%{?dist}
4
+Release:        3%{?dist}
5 5
 URL:            https://github.com/shadow-maint/
6 6
 License:        BSD
7 7
 Group:          Applications/System
... ...
@@ -33,16 +33,17 @@ The Shadow package contains programs for handling passwords
33 33
 in a secure way.
34 34
 
35 35
 %package tools
36
-Summary: Contains subset of tools which might be replaced by toybox
37
-Group:      Applications/System
38
-Requires: %{name} = %{version}-%{release}
36
+Summary:     Contains subset of tools which might be replaced by toybox
37
+Group:       Applications/System
38
+Requires:    %{name} = %{version}-%{release}
39
+Conflicts:   toybox
39 40
 %description tools
40 41
 Contains subset of tools which might be replaced by toybox
41 42
 
42 43
 %package lang
43
-Summary: Additional language files for shadow
44
-Group:      Applications/System
45
-Requires: %{name} = %{version}-%{release}
44
+Summary:     Additional language files for shadow
45
+Group:       Applications/System
46
+Requires:    %{name} = %{version}-%{release}
46 47
 %description lang
47 48
 These are the additional language files of shadow.
48 49
 
... ...
@@ -58,13 +59,10 @@ sed -i 's@DICTPATH.*@DICTPATH\t/usr/share/cracklib/pw_dict@' \
58 58
     etc/login.defs
59 59
 
60 60
 %build
61
-./configure \
62
-    --sysconfdir=/etc \
63
-    --with-libpam \
64
-        --with-libcrack \
65
-    --with-group-name-max-length=32
66
-
61
+%configure --sysconfdir=/etc --with-libpam \
62
+           --with-libcrack --with-group-name-max-length=32
67 63
 make %{?_smp_mflags}
64
+
68 65
 %install
69 66
 make DESTDIR=%{buildroot} install
70 67
 install -vdm 755 %{buildroot}/bin
... ...
@@ -116,6 +114,7 @@ do
116 116
     install -v -m644 %{buildroot}%{_sysconfdir}/pam.d/chage %{buildroot}%{_sysconfdir}/pam.d/${PROGRAM}
117 117
     sed -i "s/chage/$PROGRAM/" %{buildroot}%{_sysconfdir}/pam.d/${PROGRAM}
118 118
 done
119
+
119 120
 %find_lang %{name}
120 121
 
121 122
 %check
... ...
@@ -131,12 +130,13 @@ make %{?_smp_mflags} check
131 131
 %config(noreplace) /etc/login.access
132 132
 %config(noreplace) /etc/default/useradd
133 133
 %config(noreplace) /etc/limits
134
-/sbin/nologin
135 134
 %{_bindir}/*
136 135
 %{_sbindir}/*
137 136
 %{_mandir}/man1
138 137
 %{_mandir}/man5
139 138
 %{_mandir}/man8
139
+%exclude %{_bindir}/su
140
+%exclude %{_bindir}/login
140 141
 %exclude %{_mandir}/cs
141 142
 %exclude %{_mandir}/da
142 143
 %exclude %{_mandir}/de
... ...
@@ -159,59 +159,65 @@ make %{?_smp_mflags} check
159 159
 
160 160
 %files tools
161 161
 %defattr(-,root,root)
162
-/bin/*
162
+/bin/passwd
163
+%{_bindir}/su
164
+%{_bindir}/login
163 165
 
164 166
 %files lang -f %{name}.lang
165 167
 %defattr(-,root,root)
166 168
 
167 169
 %changelog
170
+*   Wed Oct 24 2018 Michelle Wang <michellew@vmware.com> 4.6-3
171
+-   Add su and login into shadow-tool.
172
+*   Tue Oct 2 2018 Michelle Wang <michellew@vmware.com> 4.6-2
173
+-   Add conflict toybox for shadow-tools.
168 174
 *   Wed Sep 19 2018 Srinidhi Rao <srinidhir@vmware.com> 4.6-1
169
--   Upgrading the version to 4.6
175
+-   Upgrading the version to 4.6.
170 176
 *   Mon Jul 30 2018 Tapas Kundu <tkundu@vmware.com> 4.2.1-16
171
--   Added fix for CVE-2018-7169
177
+-   Added fix for CVE-2018-7169.
172 178
 *   Fri Apr 20 2018 Alexey Makhalov <amakhalov@vmware.com> 4.2.1-15
173 179
 -   Move pam.d config file to here for better tracking.
174 180
 -   Add pam_loginuid module as optional in a session.
175 181
 *   Tue Oct 10 2017 Alexey Makhalov <amakhalov@vmware.com> 4.2.1-14
176
--   Added -tools subpackage
177
--   Main package requires -tools or toybox
182
+-   Added -tools subpackage.
183
+-   Main package requires -tools or toybox.
178 184
 *   Tue Aug 15 2017 Anish Swaminathan <anishs@vmware.com> 4.2.1-13
179
--   Added fix for CVE-2017-12424, CVE-2016-6252
185
+-   Added fix for CVE-2017-12424, CVE-2016-6252.
180 186
 *   Thu Apr 27 2017 Divya Thaluru <dthaluru@vmware.com> 4.2.1-12
181
--   Allow '.' in username
187
+-   Allow '.' in username.
182 188
 *   Wed Dec 07 2016 Xiaolin Li <xiaolinl@vmware.com> 4.2.1-11
183
--   BuildRequires Linux-PAM-devel
189
+-   BuildRequires Linux-PAM-devel.
184 190
 *   Wed Nov 23 2016 Alexey Makhalov <amakhalov@vmware.com> 4.2.1-10
185
--   Added -lang subpackage
186
-*   Mon Oct 04 2016 ChangLee <changlee@vmware.com> 4.2.1-9
187
--   Modified %check
191
+-   Added -lang subpackage.
192
+*   Tue Oct 04 2016 ChangLee <changlee@vmware.com> 4.2.1-9
193
+-   Modified %check.
188 194
 *   Tue Jun 21 2016 Divya Thaluru <dthaluru@vmware.com> 4.2.1-8
189
--   Added logic to not replace pam.d conf files in upgrade scenario
195
+-   Added logic to not replace pam.d conf files in upgrade scenario.
190 196
 *   Fri May 27 2016 Divya Thaluru <dthaluru@vmware.com> 4.2.1-7
191
--   Adding pam_cracklib module as requisite to pam password configuration
197
+-   Adding pam_cracklib module as requisite to pam password configuration.
192 198
 *   Wed May 25 2016 Divya Thaluru <dthaluru@vmware.com> 4.2.1-6
193
--   Modifying pam_systemd module as optional in a session
199
+-   Modifying pam_systemd module as optional in a session.
194 200
 *   Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 4.2.1-5
195
--   GA - Bump release of all rpms
201
+-   GA Bump release of all rpms.
196 202
 *   Mon May 2 2016 Xiaolin Li <xiaolinl@vmware.com> 4.2.1-4
197 203
 -   Enabling pam_systemd module in a session.
198 204
 *   Fri Apr 29 2016 Divya Thaluru <dthaluru@vmware.com> 4.2.1-3
199
--   Setting password aging limits to 90 days
205
+-   Setting password aging limits to 90 days.
200 206
 *   Wed Apr 27 2016 Divya Thaluru <dthaluru@vmware.com> 4.2.1-3
201
--   Setting password aging limits to 365 days
207
+-   Setting password aging limits to 365 days.
202 208
 *   Wed Mar 23 2016 Divya Thaluru <dthaluru@vmware.com> 4.2.1-2
203
--   Enabling pam_limits module in a session
209
+-   Enabling pam_limits module in a session.
204 210
 *   Tue Jan 12 2016 Anish Swaminathan <anishs@vmware.com> 4.2.1-1
205
--   Update version
211
+-   Update version.
206 212
 *   Wed Dec 2 2015 Divya Thaluru <dthaluru@vmware.com> 4.1.5.1-6
207
--   Fixed PAM Configuration file for passwd
213
+-   Fixed PAM Configuration file for passwd.
208 214
 *   Mon Oct 26 2015 Sharath George <sharathg@vmware.com> 4.1.5.1-5
209 215
 -   Allow mixed case in username.
210 216
 *   Mon Jun 29 2015 Divya Thaluru <dthaluru@vmware.com> 4.1.5.1-4
211
--   Fixed PAM Configuration file for chpasswd
217
+-   Fixed PAM Configuration file for chpasswd.
212 218
 *   Tue Jun 16 2015 Alexey Makhalov <amakhalov@vmware.com> 4.1.5.1-3
213
--   Use group id 100(users) by default
219
+-   Use group id 100(users) by default.
214 220
 *   Wed May 27 2015 Divya Thaluru <dthaluru@vmware.com> 4.1.5.1-2
215
--   Adding PAM support
221
+-   Adding PAM support.
216 222
 *   Wed Nov 5 2014 Divya Thaluru <dthaluru@vmware.com> 4.1.5.1-1
217
--   Initial build. First version
223
+-   Initial build First version.
... ...
@@ -3,7 +3,7 @@
3 3
 Summary:        Text editor
4 4
 Name:           vim
5 5
 Version:        8.1.0388
6
-Release:        1%{?dist}
6
+Release:        2%{?dist}
7 7
 License:        Charityware
8 8
 URL:            http://www.vim.org
9 9
 Group:          Applications/Editors
... ...
@@ -20,6 +20,7 @@ The Vim package contains a powerful text editor.
20 20
 Summary:    Extra files for Vim text editor
21 21
 Group:      Applications/Editors
22 22
 Requires:   tcsh
23
+Conflicts:  toybox
23 24
 
24 25
 %description extra
25 26
 The vim extra package contains a extra files for powerful text editor.
... ...
@@ -29,10 +30,10 @@ The vim extra package contains a extra files for powerful text editor.
29 29
 
30 30
 echo '#define SYS_VIMRC_FILE "/etc/vimrc"' >> src/feature.h
31 31
 %build
32
-./configure \
33
-    --prefix=%{_prefix} \
34
-    --enable-multibyte
32
+
33
+%configure --enable-multibyte
35 34
 make VERBOSE=1 %{?_smp_mflags}
35
+
36 36
 %install
37 37
 #cd %{_builddir}/%{name}74
38 38
 make DESTDIR=%{buildroot} install
... ...
@@ -172,28 +173,30 @@ make test
172 172
 %{_bindir}/vimdiff
173 173
 
174 174
 %changelog
175
+*   Wed Sep 12 2018 Anish Swaminathan <anishs@vmware.com> 8.1.0388-2
176
+-   Add conflicts toybox for vim-extra.
175 177
 *   Wed Sep 12 2018 Anish Swaminathan <anishs@vmware.com> 8.1.0388-1
176
--   Update to version 8.1.0388
178
+-   Update to version 8.1.0388.
177 179
 *   Tue Jul 10 2018 Tapas Kundu <tkundu@vmware.com> 8.0.0533-4
178 180
 -   Fix for CVE-2017-17087 and CVE-2017-1000382.
179 181
 *   Mon Aug 14 2017 Chang Lee <changlee@vmware.com>  8.0.0533-3
180
--   Disabled Test_recover_root_dir in %check
182
+-   Disabled Test_recover_root_dir in %check.
181 183
 *   Tue May 02 2017 Anish Swaminathan <anishs@vmware.com>  8.0.0533-2
182
--   Remove tcsh requires
184
+-   Remove tcsh requires.
183 185
 *   Fri Apr 14 2017 Xiaolin Li <xiaolinl@vmware.com> 8.0.0533-1
184 186
 -   Updated to version 8.0.0533.
185 187
 *   Tue Feb 28 2017 Anish Swaminathan <anishs@vmware.com>  7.4-10
186
--   Fix for CVE-2017-6349 and CVE-2017-6350
188
+-   Fix for CVE-2017-6349 and CVE-2017-6350.
187 189
 *   Fri Feb 17 2017 Anish Swaminathan <anishs@vmware.com>  7.4-9
188
--   Fix for CVE-2017-5953
190
+-   Fix for CVE-2017-5953.
189 191
 *   Fri Nov 18 2016 Anish Swaminathan <anishs@vmware.com>  7.4-8
190
--   Fix for CVE-2016-1248
192
+-   Fix for CVE-2016-1248.
191 193
 *   Wed Oct 05 2016 ChangLee <changlee@vmware.com> 7.4-7
192
--   Modified %check
194
+-   Modified %check.
193 195
 *   Wed Aug 24 2016 Alexey Makhalov <amakhalov@vmware.com> 7.4-6
194
--   vimrc: Added tags search, tab->spaces and some bindings
196
+-   vimrc: Added tags search, tab->spaces and some bindings.
195 197
 *   Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 7.4-5
196
--   GA - Bump release of all rpms
198
+-   GA - Bump release of all rpms.
197 199
 *   Thu Jul 16 2015 Touseef Liaqat <tliaqat@vmware.com> 7.4-3
198 200
 -   Added profile related files in minimal vim package.
199 201
 *   Tue Jun 30 2015 Touseef Liaqat <tliaqat@vmware.com> 7.4-3
... ...
@@ -201,4 +204,4 @@ make test
201 201
 *   Fri Jun 19 2015 Alexey Makhalov <amakhalov@vmware.com> 7.4-2
202 202
 -   Disable debug package. Use 'desert' colorscheme.
203 203
 *   Wed Nov 5 2014 Divya Thaluru <dthaluru@vmware.com> 7.4-1
204
--   Initial build. First version
204
+-   Initial build First version.
... ...
@@ -52,7 +52,7 @@ function check-for-bogus-dates()
52 52
   local y=''
53 53
   local epoch_seconds=''
54 54
   
55
-  sed -e '1,/%changelog/d' "$1" | grep -v '^[[:space:]]*-' | awk '{printf "%s %s %02d %04d\n", $2, $3, $4, $5}' | \
55
+  sed -e '1,/%changelog/d' "$1" | grep '^\*' | awk '{printf "%s %s %02d %04d\n", $2, $3, $4, $5}' | \
56 56
   while read D m d y
57 57
   do
58 58
     day=$(date --date="$m $d $y" '+%a')