From 4f2723ccfdc0d4ea058b7e59055e9b5c430b37f2 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Fri, 25 Oct 2024 05:01:55 +0000 Subject: automatic import of python3 --- python3.spec | 32 ++++++++++++-------------------- 1 file changed, 12 insertions(+), 20 deletions(-) diff --git a/python3.spec b/python3.spec index ea44207..0200dd9 100644 --- a/python3.spec +++ b/python3.spec @@ -3,7 +3,7 @@ Summary: Interpreter of the Python3 programming language URL: https://www.python.org/ Version: 3.11.10 -Release: 2 +Release: 1 License: Python-2.0 %global branchversion 3.11 @@ -85,7 +85,6 @@ BuildRequires: net-tools BuildRequires: python-setuptools-wheel BuildRequires: python-pip-wheel -BuildRequires: openEuler-rpm-config >= 31-6 Source: https://www.python.org/ftp/python/%{version}/Python-%{version}.tar.xz Source1: pyconfig.h @@ -187,16 +186,6 @@ rm -r Modules/expat rm Lib/ensurepip/_bundled/*.whl rm configure pyconfig.h.in - -%global extra_cflags -O2 -%trace - -export CFLAGS="%{extension_cflags} %{?extra_cflags} -D_GNU_SOURCE -fPIC -fwrapv -fstack-protector-strong -D_FORTIFY_SOURCE=2 -O2" -export CFLAGS_NODIST="%{build_cflags} %{?extra_cflags} -D_GNU_SOURCE -fPIC -fwrapv" -export CXXFLAGS="%{extension_cxxflags} -D_GNU_SOURCE -fPIC -fwrapv" -export CPPFLAGS="$(pkg-config --cflags-only-I libffi)" -export OPT="%{extension_cflags} %{?extra_cflags} -D_GNU_SOURCE -fPIC -fwrapv" - %build autoconf autoheader @@ -210,14 +199,20 @@ topdir=$(pwd) %endif %if "%toolchain" == "clang" -%global extra_cflags "-gdwarf-4" +%global extension_cflags "-gdwarf-4" +%global extension_ldflags "" +%global build_ldflags "" +%global build_cflags "-gdwarf-4" +%else +%global extension_cflags "" +%global extension_ldflags "" %endif -export CFLAGS="%{extension_cflags} %{?extra_cflags} -D_GNU_SOURCE -fPIC -fwrapv -fstack-protector-strong -D_FORTIFY_SOURCE=2 -O2" -export CFLAGS_NODIST="%{build_cflags} %{?extra_cflags} -D_GNU_SOURCE -fPIC -fwrapv" +export CFLAGS="%{extension_cflags} -D_GNU_SOURCE -fPIC -fwrapv -fstack-protector-strong -D_FORTIFY_SOURCE=2 -O2" +export CFLAGS_NODIST="%{build_cflags} -D_GNU_SOURCE -fPIC -fwrapv" export CXXFLAGS="%{extension_cxxflags} -D_GNU_SOURCE -fPIC -fwrapv" export CPPFLAGS="$(pkg-config --cflags-only-I libffi)" -export OPT="%{extension_cflags} %{?extra_cflags} -D_GNU_SOURCE -fPIC -fwrapv" +export OPT="%{extension_cflags} -D_GNU_SOURCE -fPIC -fwrapv" %if "%toolchain" == "clang" export LINKCC="clang" %else @@ -848,13 +843,10 @@ export BEP_GTDLIST="$BEP_GTDLIST_TMP" %undefine _debuginfo_subpackages -#%files help +%files help %{_mandir}/*/* %changelog -* Thu Oct 24 2024 Funda Wang - 3.11.10-2 -- use extension_flags defined in new openEuler-rpm-config - * Sat Oct 19 2024 Funda Wang - 3.11.10-1 - update to 3.11.10 -- cgit v1.2.3