Browse code

docker-image: reduce size

18M compressed (bz2) and 50M uncompressed

extras:
1. adjust-gcc-spec: link libgcc_s is needed
2. contain: mount /dev/shm tmpfs
3. Makefile: use symlink from stage/SOURCES to cached sources instead of copying
current source cache size is 14GB
4. rpm: find-debuginfo.sh does not generate %dir entries in debuginfo.list file
5. package-builder: verbose output if sha1 for local cache does not match

Change-Id: I6ee284f3c0bec39a4e5b170e8ed952eee36f942e
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/2443
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Xiaolin Li <xiaolinl@vmware.com>

Alexey Makhalov authored on 2017/04/15 13:41:09
Showing 40 changed files
... ...
@@ -314,8 +314,7 @@ sources:
314 314
 
315 315
 sources-cached:
316 316
 	@echo "Using cached SOURCES..."
317
-	@$(MKDIR) -p $(PHOTON_SRCS_DIR) && \
318
-	 $(CP) -rf $(PHOTON_SOURCES_PATH)/* $(PHOTON_SRCS_DIR)/
317
+	@ln -sf $(PHOTON_SOURCES_PATH) $(PHOTON_SRCS_DIR)
319 318
 
320 319
 publish-rpms:
321 320
 	@echo "Pulling publish rpms from bintray..."
... ...
@@ -9,7 +9,7 @@ Source0:		http://search.cpan.org/CPAN/authors/id/T/TO/TODDR/%{name}-%{version}.t
9 9
 Group:		Development/Tools
10 10
 Vendor:		VMware, Inc.
11 11
 Distribution:	Photon
12
-BuildRequires:	expat
12
+BuildRequires:	expat-devel
13 13
 Requires:	expat
14 14
 %description
15 15
 The XML::Parser module is a Perl extension interface to James Clark's XML parser, expat
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:    The Apache Portable Runtime Utility Library
2 2
 Name:       apr-util
3 3
 Version:    1.5.4
4
-Release:    8%{?dist}
4
+Release:    9%{?dist}
5 5
 License:    Apache License 2.0
6 6
 URL:        https://apr.apache.org/
7 7
 Group:      System Environment/Libraries
... ...
@@ -15,8 +15,10 @@ BuildRequires:   apr-devel
15 15
 BuildRequires:   sqlite-devel
16 16
 BuildRequires:   openssl-devel
17 17
 BuildRequires:   nss-devel
18
+BuildRequires:   expat-devel
18 19
 Requires:   apr
19 20
 Requires:   openssl
21
+Requires:   expat
20 22
 %description
21 23
 The Apache Portable Runtime Utility Library.
22 24
 
... ...
@@ -24,7 +26,8 @@ The Apache Portable Runtime Utility Library.
24 24
 Group: Development/Libraries
25 25
 Summary: APR utility library development kit
26 26
 Requires: apr-devel
27
-Requires: %{name} = %{version}
27
+Requires: expat-devel
28
+Requires: %{name} = %{version}-%{release}
28 29
 %description devel
29 30
 This package provides the support files which can be used to 
30 31
 build applications using the APR utility library.
... ...
@@ -115,6 +118,8 @@ rm -rf $RPM_BUILD_ROOT
115 115
 %{_libdir}/apr-util-%{apuver}/apr_dbd_sqlite*
116 116
 
117 117
 %changelog
118
+*   Tue Apr 18 2017 Alexey Makhalov <amakhalov@vmware.com> 1.5.4-9
119
+-   Add expat-devel build deps otherwise it builds expat from its source tree
118 120
 *   Fri Nov 18 2016 Alexey Makhalov <amakhalov@vmware.com> 1.5.4-8
119 121
 -   Add sqlite-devel build deps
120 122
 *   Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.5.4-7
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:	Contains programs for compressing and decompressing files
2 2
 Name:		bzip2
3 3
 Version:	1.0.6
4
-Release:	6%{?dist}
4
+Release:	7%{?dist}
5 5
 License:	BSD
6 6
 URL:		http://www.bzip.org/
7 7
 Group:		System Environment/Base
... ...
@@ -12,15 +12,24 @@ Provides:    libbz2.so.1()(64bit)
12 12
 %define sha1 bzip2=3f89f861209ce81a6bab1fd1998c0ef311712002
13 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
+Requires:       bzip2-libs = %{version}-%{release}
15 16
 %description
16 17
 The Bzip2 package contains programs for compressing and
17 18
 decompressing files.  Compressing text files with bzip2 yields a much better
18 19
 compression percentage than with the traditional gzip.
20
+
19 21
 %package	devel
20 22
 Summary:	Header and development files for bzip2
21 23
 Requires:	bzip2
22 24
 %description	devel
23 25
 It contains the libraries and header files to create applications 
26
+
27
+%package libs
28
+Summary: Libraries for bzip2
29
+Group:      System Environment/Libraries
30
+%description libs
31
+This package contains minimal set of shared bzip2 libraries.
32
+
24 33
 %prep
25 34
 %setup -q
26 35
 %patch0 -p1
... ...
@@ -60,10 +69,6 @@ make %{?_smp_mflags} check
60 60
 %{_bindir}/bzip2recover
61 61
 %{_bindir}/bzegrep
62 62
 %{_bindir}/bzmore
63
-%{_docdir}/bzip2-1.0.6/manual.pdf
64
-%{_docdir}/bzip2-1.0.6/bzip2.txt
65
-%{_docdir}/bzip2-1.0.6/manual.ps
66
-%{_docdir}/bzip2-1.0.6/manual.html
67 63
 %{_mandir}/man1/bzmore.1.gz
68 64
 %{_mandir}/man1/bzfgrep.1.gz
69 65
 %{_mandir}/man1/bzegrep.1.gz
... ...
@@ -72,22 +77,27 @@ make %{?_smp_mflags} check
72 72
 %{_mandir}/man1/bzcmp.1.gz
73 73
 %{_mandir}/man1/bzless.1.gz
74 74
 %{_mandir}/man1/bzip2.1.gz
75
-%{_lib}/libbz2.so.1.0.6
76
-%{_lib}/libbz2.so.1.0
77
-%{_lib}/libbz2.so.1
75
+
78 76
 %files devel
79 77
 %{_includedir}/bzlib.h
80 78
 %{_libdir}/libbz2.so
79
+%{_docdir}/*
80
+
81
+%files libs
82
+%{_lib}/libbz2.so.*
83
+
81 84
 %changelog
82
-*       Fri Oct 21 2016 Kumar Kaushik <kaushikk@vmware.com> 1.0.6-6
83
--       Fixing security bug CVE-2016-3189.
84
-*	Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.0.6-5
85
--	GA - Bump release of all rpms
86
-*	Tue Nov 10 2015 Mahmoud Bassiouny <mbassiouny@vmware.com> 1.0.6-4
87
--	Providing libbz2.so.1, miror fix for devel provides.
88
-*	Fri Jun 5 2015 Divya Thaluru <dthaluru@vmware.com> 1.0.6-3
89
--	Adding bzip2 package run time required package for bzip2-devel package 
90
-*	Mon May 18 2015 Touseef Liaqat <tliaqat@vmware.com> 1.0.6-2
91
--	Update according to UsrMove.
92
-*	Wed Nov 5 2014 Divya Thaluru <dthaluru@vmware.com> 1.0.6-1
93
--	Initial build.	First version
85
+*   Fri Apr 14 2017 Alexey Makhalov <amakhalov@vmware.com> 1.0.6-7
86
+-   Added -libs subpackage
87
+*   Fri Oct 21 2016 Kumar Kaushik <kaushikk@vmware.com> 1.0.6-6
88
+-   Fixing security bug CVE-2016-3189.
89
+*   Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.0.6-5
90
+-   GA - Bump release of all rpms
91
+*   Tue Nov 10 2015 Mahmoud Bassiouny <mbassiouny@vmware.com> 1.0.6-4
92
+-   Providing libbz2.so.1, miror fix for devel provides.
93
+*   Fri Jun 5 2015 Divya Thaluru <dthaluru@vmware.com> 1.0.6-3
94
+-   Adding bzip2 package run time required package for bzip2-devel package 
95
+*   Mon May 18 2015 Touseef Liaqat <tliaqat@vmware.com> 1.0.6-2
96
+-   Update according to UsrMove.
97
+*   Wed Nov 5 2014 Divya Thaluru <dthaluru@vmware.com> 1.0.6-1
98
+-   Initial build.	First version
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:  Certificate Authority certificates 
2 2
 Name:   ca-certificates
3 3
 Version:  20170406
4
-Release:  1%{?dist}
4
+Release:  2%{?dist}
5 5
 License:  Custom
6 6
 URL:    http://mxr.mozilla.org/mozilla/source/security/nss/lib/ckfw/builtins/
7 7
 Group:    System Environment/Security
... ...
@@ -10,6 +10,7 @@ Distribution: Photon
10 10
 Source0:  certdata.txt
11 11
 Requires:   openssl
12 12
 BuildRequires:  openssl
13
+Requires:   ca-certificates-pki = %{version}-%{release}
13 14
 Provides:       ca-certificates-mozilla
14 15
 %description
15 16
 The Public Key Inrastructure is used for many security issues in a
... ...
@@ -19,6 +20,12 @@ certificates loaded by this section are from the list on the Mozilla
19 19
 version control system and formats it into a form used by 
20 20
 OpenSSL-1.0.1e. The certificates can also be used by other applications
21 21
 either directly of indirectly through openssl.
22
+%package pki
23
+Summary:  Certificate Authority certificates (pki tls certs)
24
+Group:    System Environment/Security
25
+%description pki
26
+Certificate Authority certificates (pki tls certs)
27
+
22 28
 %prep -p exit
23 29
 %build
24 30
 [ %{builddir} != "/"] && rm -rf %{builddir}/*
... ...
@@ -226,12 +233,16 @@ exit 0
226 226
 %clean
227 227
 %files
228 228
 %defattr(-,root,root)
229
-/etc/pki/tls/certs/ca-bundle.crt
230 229
 /etc/ssl/certs/*
231 230
 /bin/make-ca.sh
232 231
 /bin/remove-expired-certs.sh
233 232
 /bin/make-cert.pl
233
+%files pki
234
+%defattr(-,root,root)
235
+/etc/pki/tls/certs/ca-bundle.crt
234 236
 %changelog
237
+* Fri Apr 14 2017 Alexey Makhalov <amakhalov@vmware.com> 20170406-2
238
+- Added -pki subpackage
235 239
 * Fri Apr 07 2017 Anish Swaminathan <anishs@vmware.com> 20170406-1
236 240
 - Updating mozilla certdata.txt to latest revision
237 241
 * Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 20160109-5
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:        An URL retrieval utility and library
2 2
 Name:           curl
3 3
 Version:        7.51.0
4
-Release:        4%{?dist}
4
+Release:        5%{?dist}
5 5
 License:        MIT
6 6
 URL:            http://curl.haxx.se
7 7
 Group:          System Environment/NetworkingLibraries
... ...
@@ -17,6 +17,7 @@ Requires:       ca-certificates
17 17
 Requires:       openssl
18 18
 Requires:       krb5
19 19
 Requires:       libssh2
20
+Requires:       curl-libs = %{version}-%{release}
20 21
 %description
21 22
 The cURL package contains an utility and a library used for 
22 23
 transferring files with URL syntax to any of the following 
... ...
@@ -31,6 +32,13 @@ Requires:   %{name} = %{version}-%{release}
31 31
 %description devel
32 32
 Static libraries and header files for the support library for curl
33 33
 
34
+%package libs
35
+Summary: Libraries for curl
36
+Group:      System Environment/Libraries
37
+Requires:       ca-certificates-pki
38
+%description libs
39
+This package contains minimal set of shared curl libraries.
40
+
34 41
 %prep
35 42
 %setup -q
36 43
 sed -i '/--static-libs)/{N;s#echo .*#echo #;}' curl-config.in
... ...
@@ -66,7 +74,6 @@ rm -rf %{buildroot}/*
66 66
 %files
67 67
 %defattr(-,root,root)
68 68
 %{_bindir}/*
69
-%{_libdir}/*.so.*
70 69
 %{_mandir}/man1/*
71 70
 
72 71
 %files devel
... ...
@@ -78,8 +85,12 @@ rm -rf %{buildroot}/*
78 78
 %{_datarootdir}/aclocal/libcurl.m4
79 79
 %{_docdir}/%{name}-%{version}
80 80
 
81
+%files libs
82
+%{_libdir}/libcurl.so.*
81 83
 
82 84
 %changelog
85
+*   Fri Apr 14 2017 Alexey Makhalov <amakhalov@vmware.com> 7.51.0-5
86
+-   Added -libs subpackage
83 87
 *   Wed Dec 07 2016 Xiaolin Li <xiaolinl@vmware.com> 7.51.0-4
84 88
 -   Added -devel subpackage.
85 89
 *   Wed Nov 30 2016 Xiaolin Li <xiaolinl@vmware.com> 7.51.0-3
... ...
@@ -9,7 +9,7 @@ Source0:        http://dbus.freedesktop.org/releases/dbus/%{name}-%{version}.tar
9 9
 %define sha1    dbus=e0d10e8b4494383c7e366ac80a942ba45a705a96
10 10
 Vendor:         VMware, Inc.
11 11
 Distribution:   Photon
12
-BuildRequires:  expat
12
+BuildRequires:  expat-devel
13 13
 BuildRequires:  systemd-devel
14 14
 BuildRequires:  xz-devel
15 15
 Requires:       expat
... ...
@@ -21,6 +21,7 @@ The dbus package contains dbus.
21 21
 %package    devel
22 22
 Summary:    Header and development files
23 23
 Requires:   %{name} = %{version}
24
+Requires:  expat-devel
24 25
 %description    devel
25 26
 It contains the libraries and header files to create applications 
26 27
 
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:	An XML parser library
2 2
 Name:		expat
3 3
 Version:	2.2.0
4
-Release:	1%{?dist}
4
+Release:	2%{?dist}
5 5
 License:	MIT
6 6
 URL:		http://expat.sourceforge.net/
7 7
 Group:		System Environment/GeneralLibraries
... ...
@@ -9,8 +9,22 @@ Vendor:		VMware, Inc.
9 9
 Distribution:	Photon
10 10
 Source0:        https://sourceforge.net/projects/%{name}/files/%{name}/%{version}/%{name}-%{version}.tar.bz2
11 11
 %define sha1 expat=8453bc52324be4c796fd38742ec48470eef358b3
12
+Requires:       expat-libs = %{version}-%{release}
12 13
 %description
13 14
 The Expat package contains a stream oriented C library for parsing XML.
15
+
16
+%package    devel
17
+Summary:    Header and development files for expat
18
+Requires:   %{name} = %{version}-%{release}
19
+%description    devel
20
+It contains the libraries and header files to create applications
21
+
22
+%package libs
23
+Summary: Libraries for expat
24
+Group:      System Environment/Libraries
25
+%description libs
26
+This package contains minimal set of shared expat libraries.
27
+
14 28
 %prep
15 29
 %setup -q
16 30
 %build
... ...
@@ -38,14 +52,22 @@ rm -rf %{buildroot}/*
38 38
 %files
39 39
 %defattr(-,root,root)
40 40
 %{_bindir}/*
41
-%{_libdir}/*.so*
42
-%{_libdir}/pkgconfig/*
43
-%{_includedir}/*
44 41
 %{_mandir}/man1/*
42
+
43
+%files devel
44
+%{_includedir}/*
45
+%{_libdir}/pkgconfig/*
46
+%{_libdir}/libexpat.so
47
+
48
+%files libs
49
+%{_libdir}/libexpat.so.*
50
+
45 51
 %changelog
46
-*       Fri Oct 21 2016 Kumar Kaushik <kaushikk@vmware.com> 2.2.0-1
47
--       Updating Source/Fixing CVE-2015-1283.
48
-*	Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 2.1.0-2
49
--	GA - Bump release of all rpms
50
-*	Wed Nov 5 2014 Divya Thaluru <dthaluru@vmware.com> 2.1.0-1
51
--	Initial build.	First version
52
+*   Fri Apr 14 2017 Alexey Makhalov <amakhalov@vmware.com> 2.2.0-2
53
+-   Added -libs and -devel subpackages
54
+*   Fri Oct 21 2016 Kumar Kaushik <kaushikk@vmware.com> 2.2.0-1
55
+-   Updating Source/Fixing CVE-2015-1283.
56
+*   Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 2.1.0-2
57
+-   GA - Bump release of all rpms
58
+*   Wed Nov 5 2014 Divya Thaluru <dthaluru@vmware.com> 2.1.0-1
59
+-   Initial build.	First version
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:	library for configuring and customizing font access.
2 2
 Name:		fontconfig
3 3
 Version:	2.12.1
4
-Release:	1%{?dist}
4
+Release:	2%{?dist}
5 5
 License:	BSD/GPL
6 6
 URL:		https://www.freedesktop.org/wiki/Software/fontconfig/
7 7
 Group:		System Environment/Libraries
... ...
@@ -12,7 +12,7 @@ Source0:	https://www.freedesktop.org/software/fontconfig/release/%{name}-%{versi
12 12
 Patch0:		0001-Avoid-conflicts-with-integer-width-macros-from-TS-18.patch
13 13
 BuildRequires:	freetype2-devel
14 14
 BuildRequires:	libxml2
15
-BuildRequires:	expat
15
+BuildRequires:	expat-devel
16 16
 Provides:	pkgconfig(fontconfig)
17 17
 %description
18 18
 Fontconfig can discover new fonts when installed automatically, removing a common source of configuration problems, perform font name substitution, so that appropriate alternative fonts can be selected if fonts are missing, identify the set of fonts required to completely cover a set of languages.
... ...
@@ -20,6 +20,7 @@ Fontconfig can discover new fonts when installed automatically, removing a commo
20 20
 %package	devel
21 21
 Summary:	Header and development files
22 22
 Requires:	%{name} = %{version}-%{release}
23
+Requires:	expat-devel
23 24
 %description	devel
24 25
 It contains the libraries and header files to create applications 
25 26
 
... ...
@@ -67,5 +68,7 @@ make %{?_smp_mflags} -k check
67 67
 %{_mandir}/man3/*
68 68
 
69 69
 %changelog
70
-*       Fri Nov 11 2016 Dheeraj Shetty <dheerajs@vmware.com> 2.12.1-1
71
--       Initial version
70
+*   Fri Apr 14 2017 Alexey Makhalov <amakhalov@vmware.com> 2.12.1-2
71
+-   Requires expat-devel
72
+*   Fri Nov 11 2016 Dheeraj Shetty <dheerajs@vmware.com> 2.12.1-1
73
+-   Initial version
... ...
@@ -18,7 +18,7 @@ Distribution:	Photon
18 18
 Requires:	python2
19 19
 Requires:	expat
20 20
 Requires:	ncurses
21
-BuildRequires:	expat
21
+BuildRequires:	expat-devel
22 22
 BuildRequires:	ncurses-devel
23 23
 BuildRequires:	python2-devel
24 24
 BuildRequires:	python2-libs
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:	Low-level libraries useful for providing data structure handling for C.
2 2
 Name:		glib
3 3
 Version:	2.52.1
4
-Release:	1%{?dist}
4
+Release:	2%{?dist}
5 5
 License:	LGPLv2+
6 6
 URL:		https://developer.gnome.org/glib/
7 7
 Group:		Applications/System
... ...
@@ -10,10 +10,10 @@ Distribution:	Photon
10 10
 Source0:	http://ftp.gnome.org/pub/gnome/sources/glib/2.52/%{name}-%{version}.tar.xz
11 11
 %define sha1 glib=ae55d5a476e7e9c08f06e22e9a723e4d0313a873
12 12
 BuildRequires:	pcre-devel
13
-BuildRequires:	libffi
13
+BuildRequires:	libffi-devel
14 14
 BuildRequires:	pkg-config
15 15
 BuildRequires:	cmake
16
-Requires:	pcre
16
+Requires:	pcre-libs
17 17
 Requires:	libffi
18 18
 Provides:	pkgconfig(glib-2.0)
19 19
 Provides:	pkgconfig(gmodule-2.0)
... ...
@@ -35,6 +35,7 @@ BuildRequires:	python2 >= 2.7
35 35
 BuildRequires:	python2-libs >= 2.7
36 36
 Requires:	pcre-devel
37 37
 Requires:	python2
38
+Requires:	libffi-devel
38 39
 
39 40
 %description devel
40 41
 Static libraries and header files for the support library for the glib library
... ...
@@ -87,23 +88,25 @@ make DESTDIR=%{buildroot} install
87 87
 %{_datadir}/glib-2.0/schemas/*
88 88
 
89 89
 %changelog
90
-*   Tue Apr 12 2017 Danut Moraru <dmoraru@vmware.com> 2.52.1-1
90
+*   Fri Apr 14 2017 Alexey Makhalov <amakhalov@vmware.com> 2.52.1-2
91
+-   Requires pcre-libs, BuildRequires libffi-devel.
92
+*   Wed Apr 12 2017 Danut Moraru <dmoraru@vmware.com> 2.52.1-1
91 93
 -   Updated to version 2.52.1-1
92 94
 *   Thu Oct 06 2016 ChangLee <changlee@vmware.com> 2.48.2-2
93 95
 -   Modified %check
94 96
 *   Tue Sep 06 2016 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 2.48.2-1
95 97
 -   Updated to version 2.48.2-1
96
-*	Thu Aug 11 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 2.47.6-3
97
--	Update glib require for devel to use the same version and release
98
-*	Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 2.47.6-2
99
--	GA - Bump release of all rpms
98
+*   Thu Aug 11 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 2.47.6-3
99
+-   Update glib require for devel to use the same version and release
100
+*   Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 2.47.6-2
101
+-   GA - Bump release of all rpms
100 102
 *   Thu Apr 14 2016	Harish Udaiya Kumar<hudaiyakumar@vmware.com> 2.47.6-1
101 103
     Updated to version 2.47.6
102
-* 	Thu Jan 14 2016 Xiaolin Li <xiaolinl@vmware.com> 2.46.2-1
104
+*   Thu Jan 14 2016 Xiaolin Li <xiaolinl@vmware.com> 2.46.2-1
103 105
 -   Updated to version 2.46.2
104
-*	Fri Jun 12 2015 Alexey Makhalov <amakhalov@vmware.com> 2.42.0-3
105
--	Added glib-schemas package
106
-*	Thu Jun 11 2015 Alexey Makhalov <amakhalov@vmware.com> 2.42.0-2
107
--	Added more 'Provides: pkgconfig(...)' for base package
108
-*	Thu Nov 06 2014 Sharath George <sharathg@vmware.com> 2.42.0-1
109
-	Initial version
106
+*   Fri Jun 12 2015 Alexey Makhalov <amakhalov@vmware.com> 2.42.0-3
107
+-   Added glib-schemas package
108
+*   Thu Jun 11 2015 Alexey Makhalov <amakhalov@vmware.com> 2.42.0-2
109
+-   Added more 'Provides: pkgconfig(...)' for base package
110
+*   Thu Nov 06 2014 Sharath George <sharathg@vmware.com> 2.42.0-1
111
+-   Initial version
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:         Math libraries
2 2
 Name:            gmp
3 3
 Version:         6.1.2
4
-Release:         1%{?dist}
4
+Release:         2%{?dist}
5 5
 License:         LGPLv3+
6 6
 URL:             http://www.gnu.org/software/gmp
7 7
 Group:           Applications/System
... ...
@@ -16,29 +16,21 @@ for arbitrary precision arithmetic.
16 16
 
17 17
 %package    devel
18 18
 Summary:    Header and development files for gmp
19
-Requires:   %{name} = %{version}
19
+Requires:   %{name} = %{version}-%{release}
20 20
 
21 21
 %description    devel
22 22
 It contains the libraries and header files to create applications
23 23
 for handling compiled objects.
24 24
 
25 25
 %prep
26
-%setup -q -n %{name}-%{version}
26
+%setup -q
27 27
 
28 28
 %build
29
-%ifarch i386 i486 i586 i686
30
-    ABI=32 ./configure \
31
-    --prefix=%{_prefix} \
32
-    --enable-cxx \
33
-    --disable-silent-rules \
34
-    --disable-assembly
35
-%else
36 29
     ./configure \
37 30
     --prefix=%{_prefix} \
38
-    --enable-cxx \
39 31
     --disable-silent-rules \
32
+    --disable-static \
40 33
     --disable-assembly
41
-%endif
42 34
 make %{?_smp_mflags}
43 35
 
44 36
 %install
... ...
@@ -57,31 +49,26 @@ make %{?_smp_mflags} check
57 57
 
58 58
 %files
59 59
 %defattr(-,root,root)
60
-%{_libdir}/libgmp.so.10
61
-%{_libdir}/libgmpxx.so.4.5.2
62
-%{_libdir}/libgmp.so.10.3.2
63
-%{_libdir}/libgmpxx.so.4
64
-%{_docdir}/%{name}-%{version}/tasks.html
65
-%{_docdir}/%{name}-%{version}/projects.html
66
-%{_docdir}/%{name}-%{version}/configuration
67
-%{_docdir}/%{name}-%{version}/isa_abi_headache
60
+%{_libdir}/libgmp.so.*
68 61
 
69 62
 %files devel
70
-%{_includedir}/gmpxx.h
71 63
 %{_includedir}/gmp.h
72
-%{_libdir}/libgmp.a
73
-%{_libdir}/libgmpxx.a
74
-%{_libdir}/libgmpxx.so
75 64
 %{_libdir}/libgmp.so
65
+%{_docdir}/%{name}-%{version}/tasks.html
66
+%{_docdir}/%{name}-%{version}/projects.html
67
+%{_docdir}/%{name}-%{version}/configuration
68
+%{_docdir}/%{name}-%{version}/isa_abi_headache
76 69
 
77 70
 %changelog
78
-*	Mon Apr 17 2017 Danut Moraru <dmoraru@vmware.com> 6.1.2-1
79
--	Update to 6.1.2
80
-*	Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 6.0.0a-3
81
--	GA - Bump release of all rpms
82
-*    Thu Apr 14 2016 Mahmoud Bassiouny <mbassiouny@vmware.com> 6.0.0a-2
83
--    Disable assembly and use generic C code
84
-*    Tue Jan 12 2016 Xiaolin Li <xiaolinl@vmware.com> 6.0.0a-1
85
--    Updated to version 6.0.0
86
-*    Wed Nov 5 2014 Divya Thaluru <dthaluru@vmware.com> 5.1.3-1
87
--    Initial build. First version
71
+*   Tue Apr 18 2017 Alexey Makhalov <amakhalov@vmware.com> 6.1.2-2
72
+-   Disable cxx (do not build libgmpxx). Disable static.
73
+*   Mon Apr 17 2017 Danut Moraru <dmoraru@vmware.com> 6.1.2-1
74
+-   Update to 6.1.2
75
+*   Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 6.0.0a-3
76
+-   GA - Bump release of all rpms
77
+*   Thu Apr 14 2016 Mahmoud Bassiouny <mbassiouny@vmware.com> 6.0.0a-2
78
+-   Disable assembly and use generic C code
79
+*   Tue Jan 12 2016 Xiaolin Li <xiaolinl@vmware.com> 6.0.0a-1
80
+-   Updated to version 6.0.0
81
+*   Wed Nov 5 2014 Divya Thaluru <dthaluru@vmware.com> 5.1.3-1
82
+-   Initial build. First version
... ...
@@ -16,7 +16,7 @@ BuildRequires:  intltool
16 16
 BuildRequires:  flex
17 17
 BuildRequires:  bison
18 18
 BuildRequires:  glib-devel
19
-BuildRequires:  libffi
19
+BuildRequires:  libffi-devel
20 20
 BuildRequires:	go
21 21
 Requires:	libffi
22 22
 Requires:	glib
... ...
@@ -29,7 +29,7 @@ things.
29 29
 %package python
30 30
 Summary:    Python package for handling GObject introspection data
31 31
 Group:      Development/Languages
32
-Requires:   gobject-introspection
32
+Requires:   %{name} = %{version}-%{release}
33 33
 BuildRequires:	python2-devel
34 34
 BuildRequires:	python2-libs
35 35
 BuildRequires:  python-xml
... ...
@@ -41,7 +41,8 @@ data from Python.
41 41
 %package devel
42 42
 Summary:    Libraries and headers for gobject-introspection
43 43
 Group:      Development/Libraries
44
-Requires:   gobject-introspection
44
+Requires:   %{name} = %{version}-%{release}
45
+Requires:   libffi-devel
45 46
 Requires:   glib-devel
46 47
 Requires:   python2
47 48
 Requires:   python2-devel
... ...
@@ -12,7 +12,7 @@ Distribution:	Photon
12 12
 BuildRequires:	libltdl-devel
13 13
 BuildRequires:	libunistring-devel
14 14
 BuildRequires:	gc-devel
15
-BuildRequires:	libffi
15
+BuildRequires:	libffi-devel
16 16
 Requires:	libltdl
17 17
 Requires:	libunistring
18 18
 Requires:	gc
... ...
@@ -18,7 +18,7 @@ BuildRequires:  apr
18 18
 BuildRequires:  apr-util
19 19
 BuildRequires:  apr-util-devel
20 20
 BuildRequires:  openldap
21
-BuildRequires:  expat
21
+BuildRequires:  expat-devel
22 22
 BuildRequires:  lua-devel
23 23
 Requires:       pcre
24 24
 Requires:       apr-util
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:		Libcap
2 2
 Name:			libcap
3 3
 Version:		2.25
4
-Release:		5%{?dist}
4
+Release:		6%{?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
... ...
@@ -9,8 +9,6 @@ Source0:		https://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/%{n
9 9
 Group:			System Environment/Security
10 10
 Vendor:			VMware, Inc.
11 11
 Distribution:	Photon
12
-Requires:		attr
13
-BuildRequires:	attr-devel
14 12
 %description
15 13
 The libcap package implements the user-space interfaces to the POSIX 1003.1e capabilities available 
16 14
 in Linux kernels. These capabilities are a partitioning of the all powerful root privilege 
... ...
@@ -46,12 +44,14 @@ cd progs
46 46
 %files devel
47 47
 %defattr(-,root,root)
48 48
 %{_includedir}/*
49
-%{_lib64dir}/libcap.a
49
+%exclude %{_lib64dir}/libcap.a
50 50
 %{_lib64dir}/pkgconfig/*
51 51
 %{_lib64dir}/libcap.so
52 52
 %{_mandir}/man3/*
53 53
 
54 54
 %changelog
55
+*   Fri Apr 14 2017 Alexey Makhalov <amakhalov@vmware.com> 2.25-6
56
+-   Remove attr deps.
55 57
 *   Wed Dec 07 2016 Xiaolin Li <xiaolinl@vmware.com> 2.25-5
56 58
 -   Moved man3 to devel subpackage.
57 59
 *   Thu Nov 24 2016 Alexey Makhalov <amakhalov@vmware.com> 2.25-4
... ...
@@ -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:	3%{?dist}
4
+Release:	4%{?dist}
5 5
 License:	BSD
6 6
 URL:		http://sourceware.org/libffi/
7 7
 Group:		System Environment/GeneralLibraries
... ...
@@ -20,6 +20,13 @@ Provides:	pkgconfig(libffi)
20 20
 The libffi library provides a portable, high level programming interface
21 21
 to various calling conventions. This allows a programmer to call any 
22 22
 function specified by a call interface description at run time.
23
+
24
+%package    devel
25
+Summary:    Header and development files for libffi
26
+Requires:   %{name} = %{version}-%{release}
27
+%description    devel
28
+It contains the libraries and header files to create applications 
29
+
23 30
 %prep
24 31
 %setup -q
25 32
 tar xf %{SOURCE1} --no-same-owner
... ...
@@ -74,6 +81,7 @@ make %{?_smp_mflags} check
74 74
 %postun	-p /sbin/ldconfig
75 75
 %clean
76 76
 rm -rf %{buildroot}/*
77
+
77 78
 %files
78 79
 %defattr(-,root,root)
79 80
 %ifarch x86_64
... ...
@@ -81,16 +89,22 @@ rm -rf %{buildroot}/*
81 81
 %else
82 82
 %{_libdir}/*.so*
83 83
 %endif
84
+
85
+%files devel
86
+%defattr(-,root,root)
84 87
 %{_libdir}/pkgconfig/*
85 88
 %{_includedir}/*
86 89
 %{_datarootdir}/licenses/libffi/LICENSE
87 90
 %{_mandir}/man3/*
91
+
88 92
 %changelog
89
-*       Thu Oct 06 2016 ChangLee <changlee@vmware.com> 3.2.1-3
90
--       Modified %check
91
-*	Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 3.2.1-2
92
--	GA - Bump release of all rpms
93
-* 	Fri Jan 15 2016 Xiaolin Li <xiaolinl@vmware.com> 3.2.1-1
94
-- 	Updated to version 3.2.1
95
-*	Wed Nov 5 2014 Divya Thaluru <dthaluru@vmware.com> 3.1-1
96
--	Initial build.	First version
93
+*   Fri Apr 14 2017 Alexey Makhalov <amakhalov@vmware.com> 3.2.1-4
94
+-   Added -devel subpackage
95
+*   Thu Oct 06 2016 ChangLee <changlee@vmware.com> 3.2.1-3
96
+-   Modified %check
97
+*   Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 3.2.1-2
98
+-   GA - Bump release of all rpms
99
+*   Fri Jan 15 2016 Xiaolin Li <xiaolinl@vmware.com> 3.2.1-1
100
+-   Updated to version 3.2.1
101
+*   Wed Nov 5 2014 Divya Thaluru <dthaluru@vmware.com> 3.1-1
102
+-   Initial build.	First version
... ...
@@ -21,7 +21,7 @@ BuildRequires:  rpm
21 21
 BuildRequires:	autoconf
22 22
 BuildRequires:	which
23 23
 BuildRequires:	pcre-devel
24
-BuildRequires:	libffi
24
+BuildRequires:	libffi-devel
25 25
 BuildRequires:	python2
26 26
 BuildRequires:	python2-libs
27 27
 BuildRequires:	gobject-introspection-devel
... ...
@@ -12,7 +12,6 @@ Distribution:	Photon
12 12
 BuildRequires:	gnutls-devel
13 13
 BuildRequires:	autogen
14 14
 Requires:	gnutls
15
-Requires:	gmp
16 15
 %description
17 16
 Librelp is an easy to use library for the RELP protocol. RELP (stands
18 17
 for Reliable Event Logging Protocol) is a general-purpose, extensible
... ...
@@ -5,7 +5,7 @@
5 5
 Summary:        Repodata downloading library
6 6
 Name:           librepo
7 7
 Version:        1.7.17
8
-Release:        5%{?dist}
8
+Release:        6%{?dist}
9 9
 License:        LGPLv2+
10 10
 URL:            https://github.com/Tojaj/librepo/
11 11
 Group:          System Environment/Libraries
... ...
@@ -15,15 +15,15 @@ Source1:        pygpgme-0.3.tar.gz
15 15
 %define sha1    pygpgme=f8df35bd2705ac2e1642209fba732e6a42d03fd4
16 16
 Vendor:         VMware, Inc.
17 17
 Distribution:   Photon
18
-Requires:       curl, gpgme, libassuan, libgpg-error
19
-Requires:       expat
18
+Requires:       curl-libs, gpgme, libassuan, libgpg-error
19
+Requires:       expat-libs
20 20
 Requires:       glib
21 21
 Requires:       openssl
22 22
 
23 23
 BuildRequires:  cmake
24 24
 BuildRequires:  glib-devel
25 25
 BuildRequires:  check
26
-BuildRequires:  expat
26
+BuildRequires:  expat-devel
27 27
 BuildRequires:  curl-devel
28 28
 BuildRequires:  python2-devel
29 29
 BuildRequires:  python2-libs
... ...
@@ -38,10 +38,10 @@ linux repository metadata and packages
38 38
 
39 39
 %package devel
40 40
 Summary: package config and headers for librepo
41
-Requires: librepo
41
+Requires: %{name} = %{version}-%{release}
42 42
 Requires: curl-devel
43
+Requires: expat-devel
43 44
 Provides: pkgconfig(librepo)
44
-
45 45
 %description devel
46 46
 Package config and headers for librepo.
47 47
 
... ...
@@ -86,11 +86,13 @@ PYTHONPATH=`readlink -f ./librepo/python/python2/` nosetests -s -v tests/python/
86 86
 %{_includedir}/librepo/*.h
87 87
 
88 88
 %changelog
89
-*   Wed Dec 07 2016 Xiaolin Li <xiaolinl@vmware.com> 1.7.1-5
89
+*   Fri Apr 14 2017 Alexey Makhalov <amakhalov@vmware.com> 1.7.17-6
90
+-   Requires expat-libs, expat-devel and curl-libs.
91
+*   Wed Dec 07 2016 Xiaolin Li <xiaolinl@vmware.com> 1.7.17-5
90 92
 -   BuildRequires curl-devel.
91
-*   Thu Nov 24 2016 Alexey Makhalov <amakhalov@vmware.com> 1.7.1-4
93
+*   Thu Nov 24 2016 Alexey Makhalov <amakhalov@vmware.com> 1.7.17-4
92 94
 -   BuildRequired attr-devel.
93
-*   Thu Oct 06 2016 ChangLee <changlee@vmware.com> 1.7.1-3
95
+*   Thu Oct 06 2016 ChangLee <changlee@vmware.com> 1.7.17-3
94 96
 -   Modified %check
95 97
 *   Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.7.17-2
96 98
 -   GA - Bump release of all rpms
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:        Libsolv-0.6.19
2 2
 Name:           libsolv
3 3
 Version:        0.6.26
4
-Release:        1%{?dist}
4
+Release:        2%{?dist}
5 5
 License:        BSD
6 6
 URL:            https://github.com/openSUSE/libsolv
7 7
 Source0:        https://github.com/openSUSE/libsolv/archive/%{name}-%{version}.tar.gz
... ...
@@ -10,11 +10,11 @@ Group:          Development/Tools
10 10
 Vendor:         VMware, Inc.
11 11
 Distribution:   Photon
12 12
 Requires:       libdb
13
-Requires:       expat
13
+Requires:       expat-libs
14 14
 BuildRequires:  libdb-devel
15 15
 BuildRequires:  cmake
16 16
 BuildRequires:  rpm-devel
17
-BuildRequires:  expat
17
+BuildRequires:  expat-devel
18 18
 %description
19 19
 Libsolv is a free package management library, using SAT technology to solve requests. 
20 20
 It supports debian, rpm, archlinux and haiku style distributions.
... ...
@@ -22,7 +22,7 @@ It supports debian, rpm, archlinux and haiku style distributions.
22 22
 %package devel
23 23
 Summary:        Development headers for libsolv
24 24
 Requires:       %{name} = %{version}-%{release}
25
-
25
+Requires:  expat-devel
26 26
 %description devel
27 27
 The libsolv-devel package contains libraries, header files and documentation
28 28
 for developing applications that use libsolv.
... ...
@@ -59,6 +59,8 @@ make %{?_smp_mflags} test
59 59
 %{_mandir}/man3/*
60 60
 
61 61
 %changelog
62
+*   Fri Apr 14 2017 Alexey Makhalov <amakhalov@vmware.com> 0.6.26-2
63
+-   Requires expat-libs and expat-devel.
62 64
 *   Tue Apr 04 2017 Kumar Kaushik <kaushikk@vmware.com>  0.6.26-1
63 65
 -   Upgrade to 0.6.26
64 66
 *   Mon Dec 19 2016 Xiaolin Li <xiaolinl@vmware.com> 0.6.19-4
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:        A collection of modular and reusable compiler and toolchain technologies.
2 2
 Name:           llvm
3 3
 Version:        4.0.0
4
-Release:        1%{?dist}
4
+Release:        2%{?dist}
5 5
 License:        NCSA
6 6
 URL:            http://lldb.llvm.org
7 7
 Group:          Development/Tools
... ...
@@ -11,6 +11,7 @@ Source0:        http://releases.llvm.org/%{version}/%{name}-%{version}.src.tar.x
11 11
 %define sha1    llvm=aee4524e2407f9fe5afc6f70c753180b907011d0
12 12
 BuildRequires:  cmake
13 13
 BuildRequires:  libxml2-devel
14
+BuildRequires:  libffi-devel
14 15
 Requires:       libxml2
15 16
 
16 17
 %description
... ...
@@ -64,6 +65,8 @@ rm -rf %{buildroot}/*
64 64
 %{_includedir}/*
65 65
 
66 66
 %changelog
67
+*   Fri Apr 14 2017 Alexey Makhalov <amakhalov@vmware.com> 4.0.0-2
68
+-   BuildRequires libffi-devel
67 69
 *   Fri Apr 7 2017 Alexey Makhalov <amakhalov@vmware.com> 4.0.0-1
68 70
 -   Version update
69 71
 *   Wed Jan 11 2017 Xiaolin Li <xiaolinl@vmware.com>  3.9.1-1
... ...
@@ -14,6 +14,12 @@ Source0:	http://ftp.mozilla.org/pub/mozilla.org/%{name}/releases/v%{version}/src
14 14
 Netscape Portable Runtime (NSPR) provides a platform-neutral API
15 15
 for system level and libc like functions.
16 16
 
17
+%package    devel
18
+Summary:    Header and development files for nspr
19
+Requires:   %{name} = %{version}-%{release}
20
+%description    devel
21
+It contains the libraries and header files to create applications
22
+
17 23
 %prep
18 24
 %setup -q
19 25
 cd nspr
... ...
@@ -42,22 +48,27 @@ make DESTDIR=%{buildroot} install
42 42
 
43 43
 %files
44 44
 %defattr(-,root,root)
45
+%{_libdir}/*.so
46
+
47
+%files devel
48
+%defattr(-,root,root)
45 49
 %{_bindir}/*
46 50
 %{_includedir}/*
47
-%{_libdir}/*.so
48 51
 %{_libdir}/pkgconfig/*.pc
49 52
 %{_datarootdir}/aclocal/*
50 53
 
51 54
 %changelog
52
-*	Sat Apr 15 2017 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 4.14-1
53
--	Update to 4.14
54
-*	Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 4.12-2
55
--	GA - Bump release of all rpms
56
-*       Thu Feb 25 2016 Kumar Kaushik <kaushikk@vmware.com> 4.12-1
57
--       Updated to version 4.12
58
-* 	Thu Jan 21 2016 Xiaolin Li <xiaolinl@vmware.com> 4.11-1
59
-- 	Updated to version 4.11
60
-*	Fri May 29 2015 Alexey Makhalov <amakhalov@vmware.com> 4.10.8-1
61
--	Version update. Firefox requirement.
62
-*	Wed Nov 5 2014 Divya Thaluru <dthaluru@vmware.com> 4.10.3-1
63
--	Initial build. First version
55
+*   Sat Apr 15 2017 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 4.14-1
56
+-   Update to 4.14
57
+*   Fri Apr 14 2017 Alexey Makhalov <amakhalov@vmware.com> 4.12-3
58
+-   Added -devel subpackage
59
+*   Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 4.12-2
60
+-   GA - Bump release of all rpms
61
+*   Thu Feb 25 2016 Kumar Kaushik <kaushikk@vmware.com> 4.12-1
62
+-   Updated to version 4.12
63
+*   Thu Jan 21 2016 Xiaolin Li <xiaolinl@vmware.com> 4.11-1
64
+-   Updated to version 4.11
65
+*   Fri May 29 2015 Alexey Makhalov <amakhalov@vmware.com> 4.10.8-1
66
+-   Version update. Firefox requirement.
67
+*   Wed Nov 5 2014 Divya Thaluru <dthaluru@vmware.com> 4.10.3-1
68
+-   Initial build. First version
... ...
@@ -11,9 +11,9 @@ Source0:	%{name}-%{version}.tar.gz
11 11
 %define sha1 nss=3e1207b1293605435106148aa8e7205b37aeae74
12 12
 Patch:		nss-3.30.1-standalone-1.patch
13 13
 Requires:	nspr
14
-BuildRequires:	nspr
14
+BuildRequires:	nspr-devel
15 15
 BuildRequires:	sqlite-devel
16
-Requires:	sqlite-libs
16
+Requires:       nss-libs = %{version}-%{release}
17 17
 
18 18
 %description
19 19
  The Network Security Services (NSS) package is a set of libraries
... ...
@@ -31,6 +31,14 @@ Requires: nss = %{version}-%{release}
31 31
 %description devel
32 32
 Header files for doing development with Network Security Services.
33 33
 
34
+%package libs
35
+Summary: Libraries for Network Security Services
36
+Group:      System Environment/Libraries
37
+Requires:	sqlite-libs
38
+Requires:	nspr
39
+%description libs
40
+This package contains minimal set of shared nss libraries.
41
+
34 42
 %prep
35 43
 %setup -q
36 44
 %patch -p1
... ...
@@ -69,29 +77,40 @@ HOST=localhost DOMSUF=localdomain
69 69
 %{_bindir}/*
70 70
 %{_libdir}/*.chk
71 71
 %{_libdir}/*.so
72
+%exclude %{_libdir}/libfreeblpriv3.so
73
+%exclude %{_libdir}/libnss3.so
74
+%exclude %{_libdir}/libnssutil3.so
75
+%exclude %{_libdir}/libsoftokn3.so
72 76
 
73 77
 %files devel
74 78
 %{_includedir}/*
75
-%{_libdir}/*.a
79
+%exclude %{_libdir}/*.a
76 80
 %{_libdir}/pkgconfig/*.pc
77 81
 
82
+%files libs
83
+%{_libdir}/libfreeblpriv3.so
84
+%{_libdir}/libnss3.so
85
+%{_libdir}/libnssutil3.so
86
+%{_libdir}/libsoftokn3.so
78 87
 
79 88
 %changelog
80
-*	Sat Apr 15 2017 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 3.30.1-1
81
--	Update to 3.30.1
82
-*	Wed Nov 16 2016 Alexey Makhalov <amakhalov@vmware.com> 3.25-3
83
--	Use sqlite-libs as runtime dependency
84
-*       Mon Oct 04 2016 ChangLee <changLee@vmware.com> 3.25-2
85
--       Modified %check
86
-*       Tue Jul 05 2016 Anish Swaminathan <anishs@vmware.com> 3.25-1
87
--       Upgrade to 3.25
88
-*	Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 3.21-2
89
--	GA - Bump release of all rpms
90
-* 	Thu Jan 21 2016 Xiaolin Li <xiaolinl@vmware.com> 3.21
91
-- 	Updated to version 3.21
92
-*       Tue Aug 04 2015 Kumar Kaushik <kaushikk@vmware.com> 3.19-2
93
--       Version update. Firefox requirement.
94
-*	Fri May 29 2015 Alexey Makhalov <amakhalov@vmware.com> 3.19-1
95
--	Version update. Firefox requirement.
96
-*	Wed Nov 5 2014 Divya Thaluru <dthaluru@vmware.com> 3.15.4-1
97
--	Initial build. First version
89
+*   Sat Apr 15 2017 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 3.30.1-1
90
+-   Update to 3.30.1
91
+*   Fri Apr 14 2017 Alexey Makhalov <amakhalov@vmware.com> 3.25-4
92
+-   Added libs subpackage to reduce tdnf dependent tree
93
+*   Wed Nov 16 2016 Alexey Makhalov <amakhalov@vmware.com> 3.25-3
94
+-   Use sqlite-libs as runtime dependency
95
+*   Mon Oct 04 2016 ChangLee <changLee@vmware.com> 3.25-2
96
+-   Modified %check
97
+*   Tue Jul 05 2016 Anish Swaminathan <anishs@vmware.com> 3.25-1
98
+-   Upgrade to 3.25
99
+*   Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 3.21-2
100
+-   GA - Bump release of all rpms
101
+*   Thu Jan 21 2016 Xiaolin Li <xiaolinl@vmware.com> 3.21
102
+-   Updated to version 3.21
103
+*   Tue Aug 04 2015 Kumar Kaushik <kaushikk@vmware.com> 3.19-2
104
+-   Version update. Firefox requirement.
105
+*   Fri May 29 2015 Alexey Makhalov <amakhalov@vmware.com> 3.19-1
106
+-   Version update. Firefox requirement.
107
+*   Wed Nov 5 2014 Divya Thaluru <dthaluru@vmware.com> 3.15.4-1
108
+-   Initial build. First version
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:        Grep for perl compatible regular expressions
2 2
 Name:           pcre
3 3
 Version:        8.40
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-%{version}.tar.bz2
7 7
 Group:          Applications/System
... ...
@@ -14,18 +14,25 @@ BuildRequires:  readline-devel
14 14
 Requires:       libgcc
15 15
 Requires:		readline
16 16
 Requires:       libstdc++
17
+Requires:       pcre-libs = %{version}-%{release}
17 18
 %description
18 19
 The PCRE package contains Perl Compatible Regular Expression libraries. These are useful for implementing regular expression pattern matching using the same syntax and semantics as Perl 5.
19 20
 
20 21
 %package        devel
21 22
 Group:          Development/Libraries
22 23
 Summary:        Headers and static lib for pcre development
23
-Requires:       %{name} = %{version}
24
+Requires:       %{name} = %{version}-%{release}
24 25
 Provides:       pkgconfig(libpcre)
25 26
 %description    devel
26 27
 Install this package if you want do compile applications using the pcre
27 28
 library.
28 29
 
30
+%package libs
31
+Summary: Libraries for pcre
32
+Group:      System Environment/Libraries
33
+%description libs
34
+This package contains minimal set of shared pcre libraries.
35
+
29 36
 %prep
30 37
 %setup -q
31 38
 %build
... ...
@@ -57,6 +64,7 @@ make %{?_smp_mflags} check
57 57
 %{_mandir}/man1/pcregrep.1*
58 58
 %{_mandir}/man1/pcretest.1*
59 59
 %{_libdir}/*.so.*
60
+%exclude %{_libdir}/libpcre.so.*
60 61
 
61 62
 %files devel
62 63
 %defattr(-, root, root)
... ...
@@ -69,7 +77,14 @@ make %{?_smp_mflags} check
69 69
 %{_libdir}/*.la
70 70
 %{_libdir}/pkgconfig/*.pc
71 71
 %{_includedir}/*
72
+
73
+%files libs
74
+%defattr(-, root, root)
75
+%{_libdir}/libpcre.so.*
76
+
72 77
 %changelog
78
+*   Fri Apr 14 2017 Alexey Makhalov <amakhalov@vmware.com> 8.40-2
79
+-   Added -libs subpackage
73 80
 *   Mon Apr 03 2017 Robert Qi <qij@vmware.com> 8.40-1
74 81
 -   Update to 8.40
75 82
 *   Wed Oct 05 2016 ChangLee <changlee@vmware.com> 8.39-2
... ...
@@ -17,7 +17,7 @@ BuildRequires:  python2
17 17
 BuildRequires:  python2-libs
18 18
 BuildRequires:  python2-devel
19 19
 BuildRequires:  python-setuptools
20
-BuildRequires:  libffi
20
+BuildRequires:  libffi-devel
21 21
 BuildRequires:  python-pycparser
22 22
 Requires:       python2
23 23
 Requires:       python2-libs
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:        A high-level scripting language
2 2
 Name:           python2
3 3
 Version:        2.7.13
4
-Release:        2%{?dist}
4
+Release:        3%{?dist}
5 5
 License:        PSF
6 6
 URL:            http://www.python.org/
7 7
 Group:          System Environment/Programming
... ...
@@ -16,8 +16,8 @@ Patch3:         python2-support-photon-platform.patch
16 16
 BuildRequires:  pkg-config >= 0.28
17 17
 BuildRequires:  bzip2-devel
18 18
 BuildRequires:  openssl-devel
19
-BuildRequires:  expat >= 2.1.0
20
-BuildRequires:  libffi >= 3.0.13
19
+BuildRequires:  expat-devel >= 2.1.0
20
+BuildRequires:  libffi-devel >= 3.0.13
21 21
 BuildRequires:  sqlite-devel
22 22
 BuildRequires:  ncurses-devel
23 23
 BuildRequires:  readline-devel
... ...
@@ -73,6 +73,7 @@ The python-curses package provides interface for ncurses library.
73 73
 Summary: The libraries and header files needed for Python development.
74 74
 Group: Development/Libraries
75 75
 Requires: python2 = %{version}-%{release}
76
+Requires: expat-devel >= 2.1.0
76 77
 # Needed here because of the migration of Makefile from -devel to the main
77 78
 # package
78 79
 Conflicts: python2 < %{version}-%{release}
... ...
@@ -219,6 +220,8 @@ rm -rf %{buildroot}/*
219 219
 %{_bindir}/idle*
220 220
 
221 221
 %changelog
222
+*   Fri Apr 14 2017 Alexey Makhalov <amakhalov@vmware.com> 2.7.13-3
223
+-   Python2-devel requires expat-devel.
222 224
 *   Fri Mar 24 2017 Xiaolin Li <xiaolinl@vmware.com> 2.7.13-2
223 225
 -   Provides /bin/python2.
224 226
 *   Wed Mar 22 2017 Divya Thaluru <dthaluru@vmware.com> 2.7.13-1
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:        A high-level scripting language
2 2
 Name:           python3
3 3
 Version:        3.5.3
4
-Release:        2%{?dist}
4
+Release:        3%{?dist}
5 5
 License:        PSF
6 6
 URL:            http://www.python.org/
7 7
 Group:          System Environment/Programming
... ...
@@ -38,8 +38,8 @@ code. It is incompatible with Python 2.x releases.
38 38
 %package libs
39 39
 Summary: The libraries for python runtime
40 40
 Group: Applications/System
41
-BuildRequires:  expat >= 2.1.0
42
-BuildRequires:  libffi >= 3.0.13
41
+BuildRequires:  expat-devel >= 2.1.0
42
+BuildRequires:  libffi-devel >= 3.0.13
43 43
 BuildRequires:  ncurses-devel
44 44
 BuildRequires:  sqlite-devel
45 45
 Requires:       coreutils
... ...
@@ -58,6 +58,7 @@ provides the libraries needed for python 3 applications.
58 58
 Summary: The libraries and header files needed for Python development.
59 59
 Group: Development/Libraries
60 60
 Requires: python3 = %{version}-%{release}
61
+Requires: expat-devel >= 2.1.0
61 62
 # Needed here because of the migration of Makefile from -devel to the main
62 63
 # package
63 64
 Conflicts: python3 < %{version}-%{release}
... ...
@@ -189,6 +190,8 @@ rm -rf %{buildroot}/*
189 189
 %{_bindir}/idle*
190 190
 
191 191
 %changelog
192
+*   Fri Apr 14 2017 Alexey Makhalov <amakhalov@vmware.com> 3.5.3-3
193
+-   Python3-devel requires expat-devel.
192 194
 *   Thu Mar 23 2017 Xiaolin Li <xiaolinl@vmware.com> 3.5.3-2
193 195
 -   Provides /bin/python3.
194 196
 *   Tue Feb 28 2017 Xiaolin Li <xiaolinl@vmware.com> 3.5.3-1
195 197
new file mode 100644
... ...
@@ -0,0 +1,18 @@
0
+diff -Naur a/scripts/find-debuginfo.sh b/scripts/find-debuginfo.sh
1
+--- a/scripts/find-debuginfo.sh	2017-04-19 15:48:24.650406279 -0700
2
+@@ -292,10 +292,10 @@
3
+ fi
4
+ 
5
+ if [ -d "${RPM_BUILD_ROOT}/usr/lib" -o -d "${RPM_BUILD_ROOT}/usr/src" ]; then
6
+-  ((nout > 0)) ||
7
+-  test ! -d "${RPM_BUILD_ROOT}/usr/lib" ||
8
+-  (cd "${RPM_BUILD_ROOT}/usr/lib"; find debug -type d) |
9
+-  sed 's,^,%dir /usr/lib/,' >> "$LISTFILE"
10
++#  ((nout > 0)) ||
11
++#  test ! -d "${RPM_BUILD_ROOT}/usr/lib" ||
12
++#  (cd "${RPM_BUILD_ROOT}/usr/lib"; find debug -type d) |
13
++#  sed 's,^,%dir /usr/lib/,' >> "$LISTFILE"
14
+ 
15
+   (cd "${RPM_BUILD_ROOT}/usr"
16
+    test ! -d lib/debug || find lib/debug ! -type d
... ...
@@ -4,7 +4,7 @@
4 4
 Summary:        Package manager
5 5
 Name:           rpm
6 6
 Version:        4.11.2
7
-Release:        20%{?dist}
7
+Release:        22%{?dist}
8 8
 License:        GPLv2+
9 9
 URL:            http://rpm.org
10 10
 Group:          Applications/System
... ...
@@ -19,6 +19,7 @@ Source3:        brp-strip-debug-symbols
19 19
 Source4:        brp-strip-unneeded
20 20
 Patch0:         find-debuginfo-do-not-generate-non-existing-build-id.patch
21 21
 Patch1:         rpm-4.11.2-cve-2014-8118.patch
22
+Patch2:         find-debuginfo-do-not-generate-dir-entries.patch
22 23
 Requires:       bash
23 24
 Requires:       rpm-libs = %{version}-%{release}
24 25
 BuildRequires:  python2
... ...
@@ -43,14 +44,14 @@ Static libraries and header files for the support library for rpm
43 43
 
44 44
 %package libs
45 45
 Summary:        Libraries for rpm
46
-Requires:       nss
46
+Requires:       nss-libs
47 47
 Requires:       popt
48 48
 Requires:       libgcc
49 49
 Requires:       libcap
50 50
 Requires:       zlib
51
-Requires:       bzip2
51
+Requires:       bzip2-libs
52 52
 Requires:       elfutils-libelf
53
-Requires:       xz
53
+Requires:       xz-libs
54 54
 %description    libs
55 55
 Shared libraries librpm and librpmio
56 56
 
... ...
@@ -89,6 +90,7 @@ Python3 rpm.
89 89
 %setup -q
90 90
 %patch0 -p1
91 91
 %patch1 -p1
92
+%patch2 -p1
92 93
 %setup -q -T -D -a 1
93 94
 mv db-5.3.28 db
94 95
 %build
... ...
@@ -263,46 +265,51 @@ rm -rf %{buildroot}
263 263
 %{python3_sitelib}/*
264 264
 
265 265
 %changelog
266
-*    Tue Mar 21 2017 Xiaolin Li <xiaolinl@vmware.com> 4.11.2-20
267
--    Added python3 packages and moved python2 site packages from devel to python-rpm.
268
-*    Mon Jan 10 2017 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 4.11.2-19
269
--    added buildrequires for xz-devel for PayloadIsLzma cap
270
-*    Thu Dec 15 2016 Xiaolin Li <xiaolinl@vmware.com> 4.11.2-18
271
--    Moved some files from rpm to rpm-build.
272
-*    Tue Dec 06 2016 Xiaolin Li <xiaolinl@vmware.com> 4.11.2-17
273
--    Added -lang subpackage.
274
-*    Wed Nov 23 2016 Alexey Makhalov <amakhalov@vmware.com> 4.11.2-16
275
--    Move rpmrc and macros into -libs subpackage
276
--    Move zlib and elfutils-libelf dependency from rpm to rpm-libs
277
--    Add bzip2 dependency to rpm-libs
278
-*    Thu Nov 17 2016 Alexey Makhalov <amakhalov@vmware.com> 4.11.2-15
279
--    Added -libs subpackage
280
-*    Tue Nov 15 2016 Alexey Makhalov <amakhalov@vmware.com> 4.11.2-14
281
--    Disable lua support
282
-*    Tue Oct 18 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 4.11.2-13
283
--    Apply patch for CVE-2014-8118
284
-*    Wed Oct 05 2016 ChangLee <changlee@vmware.com> 4.11.2-12
285
--    Modified %check
286
-*    Fri Aug 26 2016 Alexey Makhalov <amakhalov@vmware.com> 4.11.2-11
287
--    find-debuginfo...patch: exclude non existing .build-id from packaging
288
--    Move all files from rpm-system-configuring-scripts tarball to here 
289
-*    Wed May 25 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 4.11.2-10
290
--    Exclude .build-id/.1 and .build-id/.1.debug from debuginfo pkg
291
-*    Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 4.11.2-9
292
--    GA - Bump release of all rpms
293
-*    Thu May 05 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 4.11.2-8
294
--    Update rpm version in lock-step with lua update to 5.3.2
295
-*    Fri Apr 08 2016 Mahmoud Bassiouny <mbassiouny@vmware.com> 4.11.2-7
296
--    Build rpm with capabilities.
297
-*    Thu Aug 05 2015 Sharath George <sharathg@vmware.com> 4.11.2-6
298
--    Moving build utils to a different package.
299
-*    Sat Jun 27 2015 Alexey Makhalov <amakhalov@vmware.com> 4.11.2-5
300
--    Update rpm-system-configuring-scripts. Use tar --no-same-owner for rpmbuild.
301
-*    Thu Jun 18 2015 Anish Swaminathan <anishs@vmware.com> 4.11.2-4
302
--    Add pkgconfig Provides directive
303
-*    Thu Jun 18 2015 Alexey Makhalov <amakhalov@vmware.com> 4.11.2-3
304
--    Do no strip debug info from .debug files
305
-*    Wed Jun 3 2015 Divya Thaluru <dthaluru@vmware.com> 4.11.2-2
306
--    Removing perl-module-scandeps package from run time required packages
307
-*    Tue Jan 13 2015 Divya Thaluru <dthaluru@vmware.com> 4.11.2-1
308
--    Initial build. First version
266
+*   Wed Apr 19 2017 Alexey Makhalov <amakhalov@vmware.com> 4.11.2-22
267
+-   Do not allow -debuginfo to own directories to avoid conflicts with
268
+    filesystem package and between each other. Patch applied
269
+*   Fri Apr 14 2017 Alexey Makhalov <amakhalov@vmware.com> 4.11.2-21
270
+-   rpm-libs requires nss-libs, xz-libs and bzip2-libs.
271
+*   Tue Mar 21 2017 Xiaolin Li <xiaolinl@vmware.com> 4.11.2-20
272
+-   Added python3 packages and moved python2 site packages from devel to python-rpm.
273
+*   Mon Jan 10 2017 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 4.11.2-19
274
+-   added buildrequires for xz-devel for PayloadIsLzma cap
275
+*   Thu Dec 15 2016 Xiaolin Li <xiaolinl@vmware.com> 4.11.2-18
276
+-   Moved some files from rpm to rpm-build.
277
+*   Tue Dec 06 2016 Xiaolin Li <xiaolinl@vmware.com> 4.11.2-17
278
+-   Added -lang subpackage.
279
+*   Wed Nov 23 2016 Alexey Makhalov <amakhalov@vmware.com> 4.11.2-16
280
+-   Move rpmrc and macros into -libs subpackage
281
+-   Move zlib and elfutils-libelf dependency from rpm to rpm-libs
282
+-   Add bzip2 dependency to rpm-libs
283
+*   Thu Nov 17 2016 Alexey Makhalov <amakhalov@vmware.com> 4.11.2-15
284
+-   Added -libs subpackage
285
+*   Tue Nov 15 2016 Alexey Makhalov <amakhalov@vmware.com> 4.11.2-14
286
+-   Disable lua support
287
+*   Tue Oct 18 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 4.11.2-13
288
+-   Apply patch for CVE-2014-8118
289
+*   Wed Oct 05 2016 ChangLee <changlee@vmware.com> 4.11.2-12
290
+-   Modified %check
291
+*   Fri Aug 26 2016 Alexey Makhalov <amakhalov@vmware.com> 4.11.2-11
292
+-   find-debuginfo...patch: exclude non existing .build-id from packaging
293
+-   Move all files from rpm-system-configuring-scripts tarball to here 
294
+*   Wed May 25 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 4.11.2-10
295
+-   Exclude .build-id/.1 and .build-id/.1.debug from debuginfo pkg
296
+*   Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 4.11.2-9
297
+-   GA - Bump release of all rpms
298
+*   Thu May 05 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 4.11.2-8
299
+-   Update rpm version in lock-step with lua update to 5.3.2
300
+*   Fri Apr 08 2016 Mahmoud Bassiouny <mbassiouny@vmware.com> 4.11.2-7
301
+-   Build rpm with capabilities.
302
+*   Thu Aug 05 2015 Sharath George <sharathg@vmware.com> 4.11.2-6
303
+-   Moving build utils to a different package.
304
+*   Sat Jun 27 2015 Alexey Makhalov <amakhalov@vmware.com> 4.11.2-5
305
+-   Update rpm-system-configuring-scripts. Use tar --no-same-owner for rpmbuild.
306
+*   Thu Jun 18 2015 Anish Swaminathan <anishs@vmware.com> 4.11.2-4
307
+-   Add pkgconfig Provides directive
308
+*   Thu Jun 18 2015 Alexey Makhalov <amakhalov@vmware.com> 4.11.2-3
309
+-   Do no strip debug info from .debug files
310
+*   Wed Jun 3 2015 Divya Thaluru <dthaluru@vmware.com> 4.11.2-2
311
+-   Removing perl-module-scandeps package from run time required packages
312
+*   Tue Jan 13 2015 Divya Thaluru <dthaluru@vmware.com> 4.11.2-1
313
+-   Initial build. First version
... ...
@@ -16,7 +16,7 @@ BuildRequires:  apr-util
16 16
 BuildRequires:  apr-util-devel
17 17
 BuildRequires:  sqlite-devel
18 18
 BuildRequires:  libtool
19
-BuildRequires:  expat
19
+BuildRequires:  expat-devel
20 20
 
21 21
 %description
22 22
 The Apache version control system.
... ...
@@ -22,7 +22,7 @@ BuildRequires: elfutils-devel
22 22
 BuildRequires: glibc-devel
23 23
 BuildRequires: elfutils-libelf-devel
24 24
 BuildRequires: libgcc
25
-BuildRequires: nspr
25
+BuildRequires: nspr-devel
26 26
 BuildRequires: nss-devel
27 27
 BuildRequires: sqlite-devel
28 28
 BuildRequires: libstdc++-devel
... ...
@@ -8,7 +8,7 @@ URL:            https://github.com/jthornber/thin-provisioning-tools
8 8
 Source0:        thin-provisioning-tools-%{version}.tar.gz
9 9
 %define sha1    thin-provisioning-tools=6e2db216ffaa62a8945d42d91131b94b59fe73d7
10 10
 Patch0:         thin-provisioning-tools-fix-for-gcc-6.3.patch
11
-BuildRequires:  expat , libaio-devel, boost-devel
11
+BuildRequires:  expat-devel, libaio-devel, boost-devel
12 12
 Requires:       expat, libaio
13 13
 Vendor:         VMware, Inc.
14 14
 Distribution:   Photon
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:        unbound dns server
2 2
 Name:           unbound
3 3
 Version:        1.6.1
4
-Release:        1%{?dist}
4
+Release:        2%{?dist}
5 5
 Group:          System/Servers
6 6
 Vendor:         VMware, Inc.
7 7
 License:        BSD
... ...
@@ -13,6 +13,7 @@ Source1:        %{name}.service
13 13
 Requires:       shadow
14 14
 Requires:       systemd
15 15
 BuildRequires:  systemd
16
+BuildRequires:  expat-devel
16 17
 
17 18
 %description
18 19
 Unbound is a validating, recursive, and caching DNS resolver.
... ...
@@ -20,6 +21,7 @@ Unbound is a validating, recursive, and caching DNS resolver.
20 20
 %package    devel
21 21
 Summary:    unbound development libs and headers
22 22
 Group:      Development/Libraries
23
+Requires:   expat-devel
23 24
 
24 25
 %description devel
25 26
 Development files for unbound dns server
... ...
@@ -81,7 +83,9 @@ rm -rf %{buildroot}/*
81 81
 %{_mandir}/*
82 82
 
83 83
 %changelog
84
-*   Wed Apr 05 2017 Xiaolin Li <xiaolinl@vmware.com> 1.6.1-1
85
--   Updated to version 1.6.1
84
+*  Fri Apr 14 2017 Alexey Makhalov <amakhalov@vmware.com> 1.6.1-2
85
+-  Requires expat-devel
86
+*  Wed Apr 05 2017 Xiaolin Li <xiaolinl@vmware.com> 1.6.1-1
87
+-  Updated to version 1.6.1
86 88
 *  Fri Jan 06 2017 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.6.0-1
87 89
 -  Initial
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:        Programs for compressing and decompressing files
2 2
 Name:           xz
3 3
 Version:        5.2.3
4
-Release:        1%{?dist}
4
+Release:        2%{?dist}
5 5
 URL:            http://tukaani.org/xz
6 6
 License:        GPLv2+ and GPLv3+ and LGPLv2+
7 7
 Group:          Applications/File
... ...
@@ -9,6 +9,7 @@ Vendor:         VMware, Inc.
9 9
 Distribution:   Photon
10 10
 Source0:        http://tukaani.org/xz/%{name}-%{version}.tar.xz
11 11
 %define sha1    xz=a2975d12e0905daec48ec87c0098602e0669d195
12
+Requires:       xz-libs = %{version}-%{release}
12 13
 %description
13 14
 The Xz package contains programs for compressing and
14 15
 decompressing files
... ...
@@ -22,9 +23,15 @@ These are the additional language files of xz.
22 22
 
23 23
 %package    devel
24 24
 Summary:    Header and development files for xz
25
-Requires:   %{name} = %{version}
25
+Requires:   %{name} = %{version}-%{release}
26 26
 %description    devel
27
-It contains the libraries and header files to create applications 
27
+It contains the libraries and header files to create applications
28
+
29
+%package libs
30
+Summary: Libraries for xz
31
+Group:      System Environment/Libraries
32
+%description libs
33
+This package contains minimal set of shared xz libraries.
28 34
 
29 35
 %prep
30 36
 %setup -q
... ...
@@ -32,6 +39,7 @@ It contains the libraries and header files to create applications
32 32
 ./configure \
33 33
     --prefix=%{_prefix} \
34 34
     --docdir=%{_defaultdocdir}/%{name}-%{version} \
35
+    --disable-static \
35 36
     --disable-silent-rules
36 37
 make %{?_smp_mflags}
37 38
 %install
... ...
@@ -72,21 +80,24 @@ make  %{?_smp_mflags}  check
72 72
 %{_bindir}/lzmainfo
73 73
 %{_bindir}/xzgrep
74 74
 %{_bindir}/xzdec
75
-%{_libdir}/liblzma.so.*
76 75
 %{_mandir}/man1/*
77 76
 
78 77
 %files devel
79 78
 %{_includedir}/lzma.h
80 79
 %{_includedir}/lzma/*.h
81 80
 %{_libdir}/pkgconfig/liblzma.pc
82
-%{_libdir}/liblzma.a
83 81
 %{_libdir}/liblzma.so
84 82
 %{_defaultdocdir}/%{name}-%{version}/*
85 83
 
84
+%files libs
85
+%{_libdir}/liblzma.so.*
86
+
86 87
 %files lang -f %{name}.lang
87 88
 %defattr(-,root,root)
88 89
 
89 90
 %changelog
91
+*   Fri Apr 14 2017 Alexey Makhalov <amakhalov@vmware.com> 5.2.3-2
92
+-   Added -libs subpackage. Disable static.
90 93
 *   Wed Apr 05 2017 Xiaolin Li <xiaolinl@vmware.com> 5.2.3-1
91 94
 -   Updated to version 5.2.3.
92 95
 *   Wed Nov 23 2016 Alexey Makhalov <amakhalov@vmware.com> 5.2.2-4
... ...
@@ -36,7 +36,7 @@ mkdir $TEMP_CHROOT
36 36
 
37 37
 rpm --root $TEMP_CHROOT/ --initdb
38 38
 
39
-tdnf --installroot $TEMP_CHROOT/ install -y bash coreutils filesystem findutils glibc grep photon-release photon-repos tdnf util-linux vim which
39
+tdnf --installroot $TEMP_CHROOT/ install -y filesystem bash coreutils photon-release photon-repos tdnf
40 40
 
41 41
 rpm --root $TEMP_CHROOT/ --import $TEMP_CHROOT/etc/pki/rpm-gpg/*
42 42
 
... ...
@@ -46,6 +46,8 @@ rm -rf usr/src/
46 46
 rm -rf home/*
47 47
 # rm -rf var/lib/yum/*
48 48
 rm -rf var/log/*
49
+# set TERM to linux due to stripped terminfo
50
+echo "export TERM=linux" >> etc/bash.bashrc
49 51
 
50 52
 #find var/cache/tdnf/photon/rpms -type f -name "*.rpm" -exec rm {} \;
51 53
 tdnf install -y tar
... ...
@@ -34,6 +34,8 @@ def get(source, sha1, sourcesPath, configs):
34 34
         if sha1 == getFileHash(sourcePath[0]):
35 35
             # Use file from sourcesPath
36 36
             return
37
+        else:
38
+            print 'sha1 of %s does not match. %s vs %s' % (sourcePath[0], sha1, getFileHash(sourcePath[0]))
37 39
     configFiles=configs.split(":")
38 40
     for config in configFiles:
39 41
         p = pullSources(config)
... ...
@@ -22,7 +22,7 @@ cat <<EOF > `dirname $(gcc --print-libgcc-file-name)`/../specs
22 22
 
23 23
 # sec hardening flags require shared libgcc_s during linking.
24 24
 *libgcc:
25
-+ -lgcc_s
25
++ --as-needed -lgcc_s --no-as-needed
26 26
 
27 27
 # replace default startfile rules to use crt that PIE code requires.
28 28
 *startfile:
... ...
@@ -125,6 +125,7 @@ class constants(object):
125 125
         "ncurses",
126 126
         "bash",
127 127
         "bzip2",
128
+        "bzip2-libs",
128 129
         "bzip2-devel",
129 130
         "sed",
130 131
         "ncurses-devel",
... ...
@@ -144,6 +145,7 @@ class constants(object):
144 144
         "util-linux-devel",
145 145
         "tar",
146 146
         "xz",
147
+        "xz-libs",
147 148
         "libtool",
148 149
         "flex",
149 150
         "flex-devel",
... ...
@@ -154,15 +156,18 @@ class constants(object):
154 154
         "popt",
155 155
         "popt-devel",
156 156
         "nspr",
157
+        "nspr-devel",
157 158
         "sqlite",
158 159
         "sqlite-libs",
159 160
         "nss",
161
+        "nss-libs",
160 162
         "nss-devel",
161 163
         "elfutils-libelf",
162 164
         "elfutils",
163 165
         "elfutils-libelf-devel",
164 166
         "elfutils-devel",
165 167
         "expat",
168
+        "expat-libs",
166 169
         "libffi",
167 170
         "libpipeline",
168 171
         "gdbm",
... ...
@@ -190,6 +195,11 @@ class constants(object):
190 190
     listOfRPMsProvidedAfterBuild=[
191 191
         "util-linux-devel",
192 192
         "flex-devel",
193
+        "nspr-devel",
194
+        "bzip2-libs",
195
+        "expat-libs",
196
+        "nss-libs",
197
+        "xz-libs",
193 198
         "sqlite",
194 199
         "sqlite-libs",
195 200
         "rpm-libs"]
... ...
@@ -87,6 +87,12 @@ void createroot(char *src, int console, char *helper, char *bind) {
87 87
   bindnode("/dev/zero", "dev/zero");
88 88
   symlink("pts/ptmx", "dev/ptmx");
89 89
 
90
+  mkdir("run/shm" , 0777);
91
+  if (mount("tmpfs", "run/shm", "tmpfs", 0, "mode=0777") < 0)
92
+    error(1, 0, "Failed to mount /run/shm tmpfs in new root filesystem");
93
+  symlink("/run/shm", "dev/shm");
94
+
95
+
90 96
   while ((bind = binditem(bind, &bindsrc, &binddst)))
91 97
     bindnode(bindsrc, binddst);
92 98