diff options
author | Ting-Wei Lan <lantw44@gmail.com> | 2019-05-01 22:14:35 +0800 |
---|---|---|
committer | Ting-Wei Lan <lantw44@gmail.com> | 2019-05-02 02:36:54 +0800 |
commit | 58bf1c17214de38c1777303214ebafe0d78e76f5 (patch) | |
tree | 04a5300281d655621f346dc72ae3cfbf95397aef | |
parent | 1b5d7317b79d72de339f94f2a19f1760cebda84c (diff) | |
download | copr-rpm-spec-58bf1c17214de38c1777303214ebafe0d78e76f5.tar copr-rpm-spec-58bf1c17214de38c1777303214ebafe0d78e76f5.tar.gz copr-rpm-spec-58bf1c17214de38c1777303214ebafe0d78e76f5.tar.bz2 copr-rpm-spec-58bf1c17214de38c1777303214ebafe0d78e76f5.tar.lz copr-rpm-spec-58bf1c17214de38c1777303214ebafe0d78e76f5.tar.xz copr-rpm-spec-58bf1c17214de38c1777303214ebafe0d78e76f5.tar.zst copr-rpm-spec-58bf1c17214de38c1777303214ebafe0d78e76f5.zip |
arm-linux-gnueabi-toolchain: Update GCC to snapshot from 9 branch
-rw-r--r-- | arm-linux-gnueabi-toolchain/arm-linux-gnueabi-gcc/arm-linux-gnueabi-gcc.spec | 42 |
1 files changed, 33 insertions, 9 deletions
diff --git a/arm-linux-gnueabi-toolchain/arm-linux-gnueabi-gcc/arm-linux-gnueabi-gcc.spec b/arm-linux-gnueabi-toolchain/arm-linux-gnueabi-gcc/arm-linux-gnueabi-gcc.spec index 84dfbb8..9acfd84 100644 --- a/arm-linux-gnueabi-toolchain/arm-linux-gnueabi-gcc/arm-linux-gnueabi-gcc.spec +++ b/arm-linux-gnueabi-toolchain/arm-linux-gnueabi-gcc/arm-linux-gnueabi-gcc.spec @@ -28,16 +28,26 @@ %bcond_without ada +%global date 20190501 +%global svnrev 270762 + Name: %{cross_triplet}-gcc%{pkg_suffix} -Version: 8.3.0 -Release: 1%{?dist} +Version: 9.0.1 +Release: 1.%{date}svn%{svnrev}%{?dist} Summary: The GNU Compiler Collection (%{cross_triplet}) %global major_version %(echo %{version} | sed 's/\\..*$//') License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and LGPLv2+ and BSD URL: https://gcc.gnu.org -Source0: https://ftp.gnu.org/gnu/gcc/gcc-%{version}/gcc-%{version}.tar.xz + +# Uncomment this line when GCC 9 is released. +# Source0: https://ftp.gnu.org/gnu/gcc/gcc-%{version}/gcc-%{version}.tar.xz +# +# Temporarily switch to svn snapshot. The source tarball is generated by: +# svn export https://gcc.gnu.org/svn/gcc/branches/gcc-9-branch@%%{svnrev} gcc-%%{version}-%%{date} +# tar -cf - gcc-%%{version}-%%{date} | xz -9e > gcc-%%{version}-%%{date}.tar.xz +Source0: gcc-%{version}-%{date}.tar.xz BuildRequires: gcc, gcc-c++, gcc-gnat BuildRequires: texinfo, gettext, flex, bison, zlib-devel, isl-devel @@ -73,10 +83,11 @@ Provides: %{cross_triplet}-gcc-stage3 = %{version} %prep -%autosetup -p1 -Tb 0 -n gcc-%{version} +%autosetup -p1 -Tb 0 -n gcc-%{version}-%{date} %build +./contrib/gcc_update --touch mkdir -p %{_builddir}/gcc-build cd %{_builddir}/gcc-build export AR_FOR_TARGET=%{_bindir}/%{cross_triplet}-ar @@ -89,7 +100,7 @@ export RANLIB_FOR_TARGET=%{_bindir}/%{cross_triplet}-ranlib export STRIP_FOR_TARGET=%{_bindir}/%{cross_triplet}-strip export WINDRES_FOR_TARGET=%{_bindir}/%{cross_triplet}-windres export WINDMC_FOR_TARGET=%{_bindir}/%{cross_triplet}-windmc -%global _configure ../gcc-%{version}/configure +%global _configure ../gcc-%{version}-%{date}/configure %global _program_prefix %{cross_triplet}- %global _hardening_ldflags \\\ %(echo "%{_hardening_ldflags}" | sed -e 's/-specs=[^ ]*//g') @@ -148,9 +159,9 @@ export WINDMC_FOR_TARGET=%{_bindir}/%{cross_triplet}-windmc %endif %if %{cross_stage} == "final" %if %{with ada} - --enable-languages=c,c++,fortran,objc,obj-c++,go,ada \ + --enable-languages=c,c++,fortran,objc,obj-c++,go,d,ada \ %else - --enable-languages=c,c++,fortran,objc,obj-c++,go \ + --enable-languages=c,c++,fortran,objc,obj-c++,go,d \ %endif %if 0%{?fedora} <= 22 --with-default-libstdcxx-abi=gcc4-compatible \ @@ -205,7 +216,7 @@ rm -f %{buildroot}%{_libexecdir}/gcc/%{cross_triplet}/%{major_version}/install-t rmdir --ignore-fail-on-non-empty %{buildroot}%{_libexecdir}/gcc/%{cross_triplet}/%{major_version}/install-tools # Don't strip libgcc.a and libgcov.a - based on Fedora Project cross-gcc.spec -%global __ar_no_strip $RPM_BUILD_DIR/gcc-%{version}/ar-no-strip +%global __ar_no_strip $RPM_BUILD_DIR/gcc-%{version}-%{date}/ar-no-strip cat > %{__ar_no_strip} << EOF #!/bin/sh f=\$2 @@ -224,7 +235,7 @@ chmod +x %{__ar_no_strip} %files %license COPYING COPYING.LIB COPYING.RUNTIME COPYING3 COPYING3.LIB -%doc ChangeLog ChangeLog.jit ChangeLog.tree-ssa MAINTAINERS NEWS README +%doc ChangeLog ChangeLog.jit ChangeLog.tree-ssa MAINTAINERS README %{_bindir}/%{cross_triplet}-cpp %{_bindir}/%{cross_triplet}-gcc %{_bindir}/%{cross_triplet}-gcc-ar @@ -288,13 +299,16 @@ chmod +x %{__ar_no_strip} %{_bindir}/%{cross_triplet}-c++ %{_bindir}/%{cross_triplet}-g++ %{_bindir}/%{cross_triplet}-gccgo +%{_bindir}/%{cross_triplet}-gdc %{_bindir}/%{cross_triplet}-gfortran %dir %{_prefix}/%{cross_triplet} %dir %{_prefix}/%{cross_triplet}/include %dir %{_prefix}/%{cross_triplet}/include/c++ %{_prefix}/%{cross_triplet}/include/c++/%{major_version} +%{_prefix}/lib/gcc/%{cross_triplet}/%{major_version}/include/ISO_Fortran_binding.h %{_prefix}/lib/gcc/%{cross_triplet}/%{major_version}/include/omp.h %{_prefix}/lib/gcc/%{cross_triplet}/%{major_version}/include/openacc.h +%{_prefix}/lib/gcc/%{cross_triplet}/%{major_version}/include/d %{_prefix}/lib/gcc/%{cross_triplet}/%{major_version}/include/objc %{_prefix}/lib/gcc/%{cross_triplet}/%{major_version}/include/ssp %{_prefix}/lib/gcc/%{cross_triplet}/%{major_version}/include/sanitizer @@ -303,6 +317,7 @@ chmod +x %{__ar_no_strip} %{_libexecdir}/gcc/%{cross_triplet}/%{major_version}/cc1plus %{_libexecdir}/gcc/%{cross_triplet}/%{major_version}/cc1obj %{_libexecdir}/gcc/%{cross_triplet}/%{major_version}/cc1objplus +%{_libexecdir}/gcc/%{cross_triplet}/%{major_version}/d21 %{_libexecdir}/gcc/%{cross_triplet}/%{major_version}/f951 %{_libexecdir}/gcc/%{cross_triplet}/%{major_version}/go1 %dir %{cross_sysroot}/%{lib_dir_name}/go @@ -315,6 +330,8 @@ chmod +x %{__ar_no_strip} %{cross_sysroot}/%{lib_dir_name}/libgfortran.a %{cross_sysroot}/%{lib_dir_name}/libgfortran.so* %{cross_sysroot}/%{lib_dir_name}/libgfortran.spec +%{cross_sysroot}/%{lib_dir_name}/libgdruntime.a +%{cross_sysroot}/%{lib_dir_name}/libgdruntime.so* %{cross_sysroot}/%{lib_dir_name}/libgo.a %{cross_sysroot}/%{lib_dir_name}/libgo.so* %{cross_sysroot}/%{lib_dir_name}/libgobegin.a @@ -322,6 +339,9 @@ chmod +x %{__ar_no_strip} %{cross_sysroot}/%{lib_dir_name}/libgomp.a %{cross_sysroot}/%{lib_dir_name}/libgomp.so* %{cross_sysroot}/%{lib_dir_name}/libgomp.spec +%{cross_sysroot}/%{lib_dir_name}/libgphobos.a +%{cross_sysroot}/%{lib_dir_name}/libgphobos.so* +%{cross_sysroot}/%{lib_dir_name}/libgphobos.spec %{cross_sysroot}/%{lib_dir_name}/libitm.a %{cross_sysroot}/%{lib_dir_name}/libitm.so* %{cross_sysroot}/%{lib_dir_name}/libitm.spec @@ -369,6 +389,10 @@ chmod +x %{__ar_no_strip} %changelog +* Wed May 01 2019 Ting-Wei Lan <lantw44@gmail.com> - 9.0.1-1.20190501svn270762 +- Update to GCC 9 snapshot for Fedora 30 +- Enable D support + * Sat Feb 23 2019 Ting-Wei Lan <lantw44@gmail.com> - 8.3.0-1 - Update to new stable release 8.3.0 |