summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-10-25 05:01:55 +0000
committerCoprDistGit <infra@openeuler.org>2024-10-25 05:01:55 +0000
commit4f2723ccfdc0d4ea058b7e59055e9b5c430b37f2 (patch)
tree586d8b43e83612c29aa24d00101b72fcd57874f3
parentb038ef4c5307cd1029a8da9a580a01d2239caad9 (diff)
automatic import of python3openeuler24.03_LTS
-rw-r--r--python3.spec32
1 files 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 <fundawang@yeah.net> - 3.11.10-2
-- use extension_flags defined in new openEuler-rpm-config
-
* Sat Oct 19 2024 Funda Wang <fundawang@yeah.net> - 3.11.10-1
- update to 3.11.10