From: Arkadiusz Miśkiewicz Date: Fri, 21 Feb 2014 18:36:17 +0000 (+0100) Subject: - rel 3; rework options to avoid case when part of object files were built with one... X-Git-Tag: auto/th/python-2.7.6-3 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=01758773f313c66b87753ec00841ab4b05d27118;p=packages%2Fpython.git - 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 --- 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:/) {