Browse code

rpm: make python-rpm depend on its librpm

Change-Id: I980f9beaccaf09971a10913e6563b39c0d904a3a
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/3954
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Anish Swaminathan <anishs@vmware.com>

Alexey Makhalov authored on 2017/10/04 14:41:08
Showing 1 changed files
... ...
@@ -4,7 +4,7 @@
4 4
 Summary:        Package manager
5 5
 Name:           rpm
6 6
 Version:        4.13.0.1
7
-Release:        1%{?dist}
7
+Release:        2%{?dist}
8 8
 License:        GPLv2+
9 9
 URL:            http://rpm.org
10 10
 Group:          Applications/System
... ...
@@ -81,6 +81,10 @@ mv db-5.3.28 db
81 81
 
82 82
 %build
83 83
 sed -i '/define _GNU_SOURCE/a #include "../config.h"' tools/sepdebugcrcfix.c
84
+# pass -L opts to gcc as well to prioritize it over standard libs
85
+sed -i 's/-Wl,-L//g' python/setup.py.in
86
+sed -i 's/extra_link_args/library_dirs/g' python/setup.py.in
87
+
84 88
 ./autogen.sh --noconfigure
85 89
 ./configure \
86 90
     CPPFLAGS='-I/usr/include/nspr -I/usr/include/nss -DLUA_COMPAT_APIINTCASTS' \
... ...
@@ -234,6 +238,8 @@ rm -rf %{buildroot}
234 234
 %{python3_sitelib}/*
235 235
 
236 236
 %changelog
237
+*    Tue Oct 03 2017 Alexey Makhalov <amakhalov@vmware.com> 4.13.0.1-2
238
+-    make python{,3}-rpm depend on current version of librpm
237 239
 *    Fri Sep 29 2017 Alexey Makhalov <amakhalov@vmware.com> 4.13.0.1-1
238 240
 -    rpm version update
239 241
 *    Mon Jul 10 2017 Divya Thaluru <dthaluru@vmware.com> 4.11.2-14