[packages/python] - rel 3; rework options to avoid case when part of object files were built with one flags (eg with -

arekm arekm at pld-linux.org
Fri Feb 21 19:36:20 CET 2014


commit 01758773f313c66b87753ec00841ab4b05d27118
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Fri Feb 21 19:36:17 2014 +0100

    - rel 3; rework options to avoid case when part of object files were built with one flags (eg with -DNDEBUG) and part without (without -DNDEBUG); drop vars for crossbuild (weren't tested for years); use --with-pydebug for debug build

 python.spec | 18 ++++++++----------
 1 file changed, 8 insertions(+), 10 deletions(-)
---
diff --git a/python.spec b/python.spec
index 8bc7bac..c8d1204 100644
--- a/python.spec
+++ b/python.spec
@@ -43,7 +43,7 @@ Summary(tr.UTF-8):	X arayüzlü, yüksek düzeyli, kabuk yorumlayıcı dili
 Summary(uk.UTF-8):	Мова програмування дуже високого рівня з X-інтерфейсом
 Name:		python
 Version:	%{py_ver}.6
-Release:	2
+Release:	3
 Epoch:		1
 License:	PSF
 Group:		Development/Languages/Python
@@ -593,24 +593,22 @@ cp -a Lib/plat-linux2 Lib/plat-linux3
 %build
 %{__aclocal}
 %{__autoconf}
-CPPFLAGS="-I/usr/include/ncursesw %{rpmcppflags}"; export CPPFLAGS
 %configure \
+	OPT="%{rpmcflags}" \
+	CPPFLAGS="%{rpmcppflags}" \
+	LDFLAGS="%{rpmldflags}" \
 	ac_cv_posix_semaphores_enabled=yes \
 	ac_cv_broken_sem_getvalue=no \
+	%{?with_debug:--with-pydebug} \
 	--with-threads \
 	--with-cxx-main="%{__cxx}" \
 	--with-system-ffi \
 	--enable-ipv6 \
 	--enable-unicode=ucs4 \
 	--enable-shared \
-	--with-dbmliborder=gdbm:bdb \
-	LINKCC='$(PURIFY) $(CXX)' \
-	LDSHARED='$(CC) $(CFLAGS) -shared' \
-	BLDSHARED='$(CC) $(CFLAGS) -shared' \
-	LDFLAGS="%{rpmcflags} %{rpmldflags}"
-
-%{__make} \
-	OPT="%{rpmcflags}" 2>&1 | awk '
+	--with-dbmliborder=gdbm:bdb
+
+%{__make} 2>&1 | awk '
 BEGIN { fail = 0; logmsg = ""; }
 {
 		if ($0 ~ /\*\*\* WARNING:/) {
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python.git/commitdiff/01758773f313c66b87753ec00841ab4b05d27118



More information about the pld-cvs-commit mailing list