diff --git a/config.xml b/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..9c1478b3a6bdceef41ec0c6e8bc993128c299ca5 --- /dev/null +++ b/config.xml @@ -0,0 +1,16 @@ +BRANCH="openEuler-22.09-rc5" +INSTALL_NATIVE="gcc-10.3.1-2022.09-aarch64-linux" +COMPILER_INFO="gcc for openEuler 2.3.1" + +GCC="gcc-10.3.0" +BINUTILS="binutils-2.37" +GMP="gmp-6.2.1" +MPC="mpc-1.2.0" +MATHLIB="optimized-routines-21.02" +ISL="isl-0.16.1" +OLD_ISL="isl-0.14" +JEMALLOC="jemalloc-5.2.1" +MPFR="mpfr-4.1.0" +AUTOFDO="autofdo-0.19" +BOLT="llvm-bolt-0" +CMAKE="cmake-3.22.0" diff --git a/gcc-for-openEuler-1.0.0.tar.gz b/gcc-for-openEuler-1.0.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..2f58a4b86398ff02b854dde8fcfa119503c150e3 Binary files /dev/null and b/gcc-for-openEuler-1.0.0.tar.gz differ diff --git a/gcc-for-openEuler.spec b/gcc-for-openEuler.spec new file mode 100644 index 0000000000000000000000000000000000000000..3b11d110b715019587aaff71eaa5c7890c77999e --- /dev/null +++ b/gcc-for-openEuler.spec @@ -0,0 +1,46 @@ +Name: gcc-for-openEuler +Version: 1.0.0 +Release: 1 +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 + +%global config config.xml +%global build_name gcc-10.3.1-2022.09-aarch64-linux + +ExclusiveArch: aarch64 + +BuildRequires: git gcc gcc-c++ bison flex texinfo glibc-static +BuildRequires: gmp-devel mpfr-devel elfutils-libelf-devel openssl-devel libmpc-devel +BuildRequires: autoconf libtool chrpath centos-release-scl devtoolset-7 python3 + +%description +GCC released as a binary package for openEuler and other OSes. + +%skip debuginfo packages +%global debug_package %{nil} + +%prep +%autosetup +cp -f %{_sourcedir}/%{config} build/ + +%build +cd %{_builddir}/%{name}-%{version}/build +bash download.sh +bash build.sh hcc_arm64le_native + +%install +cd %{buildroot} +cp %{_builddir}/%{name}-%{version}/output/%{build_name}/%{build_name}.tar.gz . +touch %{build_name}.tar.gz.sha256 +sha256sum %{build_name}.tar.gz > %{build_name}.tar.gz.sha256 + +%files +%attr(755, root, root) /%{build_name}.tar.gz +%attr(755, root, root) /%{build_name}.tar.gz.sha256 + +%changelog +* Tue Sep 20 2022 Xiong Zhou - 1.0.0-1 +- Init gcc-for-openEuler repository.