Browse code

Removed Provides section from main libs packages. Removed static lib files. (Bug 1857510)

This change will not fix bug 1857510, but it will make upgrading and
installation after this release work correctly.

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

xiaolin-vmware authored on 2017/05/02 09:26:23
Showing 1 changed files
... ...
@@ -1,13 +1,12 @@
1 1
 Summary:        PostgreSQL database engine
2 2
 Name:           postgresql
3 3
 Version:        9.5.4
4
-Release:        2%{?dist}
4
+Release:        3%{?dist}
5 5
 License:        PostgreSQL
6 6
 URL:            www.postgresql.org
7 7
 Group:          Applications/Databases
8 8
 Vendor:         VMware, Inc.
9 9
 Distribution:   Photon
10
-Provides:   %{name}
11 10
 
12 11
 Source0:        http://ftp.postgresql.org/pub/source/v%{version}/%{name}-%{version}.tar.bz2
13 12
 %define sha1 postgresql=bdbbecf691354a689c599631256d41eaa8824c66
... ...
@@ -28,17 +27,16 @@ Requires:       readline
28 28
 Requires:       zlib
29 29
 Requires:       tzdata
30 30
 
31
-Requires:   %{name}-libs = %{version}-%{release}
31
+Requires:       %{name}-libs = %{version}-%{release}
32 32
 
33 33
 %description
34 34
 PostgreSQL is an object-relational database management system.
35 35
 
36 36
 %package libs
37
-Summary:    Libraries for use with PostgreSQL
38
-Group:      Applications/Databases
39
-Provides:   %{name}-libs
37
+Summary:        Libraries for use with PostgreSQL
38
+Group:          Applications/Databases
40 39
 
41
-%description libs
40
+%description    libs
42 41
 The postgresql-libs package provides the essential shared libraries for any
43 42
 PostgreSQL client program or interface. You will need to install this package
44 43
 to use any other PostgreSQL package or any clients that need to connect to a
... ...
@@ -74,7 +72,7 @@ cd contrib && make %{?_smp_mflags}
74 74
 [ %{buildroot} != "/"] && rm -rf %{buildroot}/*
75 75
 make install DESTDIR=%{buildroot}
76 76
 cd contrib && make install DESTDIR=%{buildroot}
77
-
77
+find %{buildroot}/%{_libdir} -name '*.a' -delete
78 78
 %{_fixperms} %{buildroot}/*
79 79
 %check
80 80
 %post   -p /sbin/ldconfig
... ...
@@ -136,16 +134,13 @@ rm -rf %{buildroot}/*
136 136
 %defattr(-,root,root)
137 137
 %{_includedir}/*
138 138
 %{_libdir}/pkgconfig/*
139
-%{_libdir}/libpgcommon.a
140
-%{_libdir}/libpgport.a
141
-%{_libdir}/libpq.a
142
-%{_libdir}/libecpg*.a
143
-%{_libdir}/libpgtypes*.a
144 139
 %{_libdir}/libecpg*.so
145 140
 %{_libdir}/libpgtypes*.so
146 141
 %{_libdir}/libpq*.so
147 142
 
148 143
 %changelog
144
+*   Mon May 01 2017 Xiaolin Li <xiaolinl@vmware.com> 9.5.4-3
145
+-   Removed Provides section from main libs packages. Removed static lib files.
149 146
 *   Thu Apr 13 2017 Xiaolin Li <xiaolinl@vmware.com> 9.5.4-2
150 147
 -   Added postgresql-devel.
151 148
 *   Wed Apr 05 2017 Xiaolin Li <xiaolinl@vmware.com> 9.5.4-1