diff --git a/0002-install-python3-wheel.patch b/0002-install-python3-wheel.patch new file mode 100644 index 0000000000000000000000000000000000000000..f98972e2dcc492d6ed6a0406cff29bd31c34db82 --- /dev/null +++ b/0002-install-python3-wheel.patch @@ -0,0 +1,25 @@ +From 9e2bfbbdbed9ef7e33adc07428f6cd6d432707ef Mon Sep 17 00:00:00 2001 +From: zhenyu--zhao_admin +Date: Sat, 14 Dec 2024 12:26:43 +0800 +Subject: [PATCH] install python3-wheel. + +--- + build/download.sh | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/build/download.sh b/build/download.sh +index 02ad9b6..727e2c4 100644 +--- a/build/download.sh ++++ b/build/download.sh +@@ -40,6 +40,8 @@ readonly AUTO_TUNER="BiSheng-Autotuner" + # Create the open source software directory. + [ ! -d "$OPEN_SOURCE_PATH" ] && mkdir $OPEN_SOURCE_PATH + ++pip3 install $PWD/*.whl ++ + download() { + [ -d "$1" ] && rm -rf $1 + echo "Download $1." && git clone -b $BRANCH https://gitee.com/src-openeuler/$1.git --depth=1 +-- +2.33.0 + diff --git a/gcc-for-openEuler.spec b/gcc-for-openEuler.spec index e3e1b8c4e6c54a9597829c644f82dab163d3c907..b16761d34711df5fb157adf23b9e5b4bcb4c9680 100644 --- a/gcc-for-openEuler.spec +++ b/gcc-for-openEuler.spec @@ -6,6 +6,7 @@ Summary: GCC released as a binary package for openEuler and other OSes. License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and LGPLv2 and BSD URL: https://gitee.com/openEuler/gcc-for-openEuler Source0: %{name}-%{version}.tar.gz +Source1: wheel-0.37.1-py2.py3-none-any.whl %global config config.xml %global build_name gcc-12.3.1-2024.12-aarch64-linux @@ -13,10 +14,11 @@ Source0: %{name}-%{version}.tar.gz ExclusiveArch: aarch64 BuildRequires: git bison flex texinfo autoconf libtool elfutils-libelf-devel glibc-static -BuildRequires: chrpath centos-release-scl devtoolset-7 python3 zlib-devel lksctp-tools-devel +BuildRequires: chrpath centos-release-scl devtoolset-7 python3 zlib-devel lksctp-tools-devel python3-setuptools Patch1: 0001-Change-branch-name-for-jemalloc.patch - +Patch2: 0002-install-python3-wheel.patch + %description GCC released as a binary package for openEuler and other OSes. @@ -25,7 +27,9 @@ GCC released as a binary package for openEuler and other OSes. %prep %autosetup -p1 + cp -f %{_sourcedir}/%{config} build/ +cp %{_sourcedir}/wheel-*.whl build/ %build cd %{_builddir}/%{name}-%{version}/build diff --git a/wheel-0.37.1-py2.py3-none-any.whl b/wheel-0.37.1-py2.py3-none-any.whl new file mode 100644 index 0000000000000000000000000000000000000000..e6c4d95f532b91c4e653ae7fc1c849a377199870 Binary files /dev/null and b/wheel-0.37.1-py2.py3-none-any.whl differ