From 01758773f313c66b87753ec00841ab4b05d27118 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Arkadiusz=20Mi=C5=9Bkiewicz?= Date: Fri, 21 Feb 2014 19:36:17 +0100 Subject: [PATCH] - 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:/) { -- 2.44.0