automatic version update by autodist [release 11.1.0-1mamba;Thu Apr 29 2021]

This commit is contained in:
Automatic Build System 2024-01-05 22:37:52 +01:00
parent c53ce92725
commit 05baad4d49

View File

@ -39,20 +39,20 @@
%define majver %(echo %version | cut -d. -f 1-2) %define majver %(echo %version | cut -d. -f 1-2)
Name: gcc Name: gcc
Version: 10.2.0 Version: 11.1.0
Release: 1mamba Release: 1mamba
Summary: GNU Compiler Collection (C, C++, Fortran, Go, Ada) Summary: GNU Compiler Collection (C, C++, Fortran, Go, Ada)
Group: Applications/Development Group: Applications/Development
Vendor: openmamba Vendor: openmamba
Distribution: openmamba Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it> Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://gcc.gnu.org/ URL: https://gcc.gnu.org/
Source: ftp://ftp.gnu.org/gnu/gcc/gcc-%{version}/gcc-%{version}%{?gcc_extraver}.tar.xz Source: ftp://ftp.gnu.org/gnu/gcc/gcc-%{version}/gcc-%{version}%{?gcc_extraver}.tar.xz
Source1: ftp://sourceware.org/pub/java/ecj-latest.jar Source1: ftp://sourceware.org/pub/java/ecj-latest.jar
Source2: gcc-4.3.2-ecj1-wrapper Source2: gcc-4.3.2-ecj1-wrapper
Patch2: gcc4-java-nomulti.patch
Patch0: %{name}-4.5.0-no_fixincludes.patch Patch0: %{name}-4.5.0-no_fixincludes.patch
Patch1: %{name}-4.0.2-zextract.patch Patch1: %{name}-4.0.2-zextract.patch
Patch2: gcc4-java-nomulti.patch
Patch3: %{name}-4.0.2-BufferStrategy.patch Patch3: %{name}-4.0.2-BufferStrategy.patch
Patch4: %{name}-4.0.2-failure_with_compound_literals.patch Patch4: %{name}-4.0.2-failure_with_compound_literals.patch
Patch5: %{name}-4.1.1-arm-t-linux.patch Patch5: %{name}-4.1.1-arm-t-linux.patch
@ -110,15 +110,14 @@ BuildRequires: libcairo-devel >= 1.4.10
BuildRequires: libxcb-util-devel >= 0.2 BuildRequires: libxcb-util-devel >= 0.2
BuildRequires: libisl-devel >= 0.14 BuildRequires: libisl-devel >= 0.14
#% endif #% endif
%else #% else
BuildRequires: cross-%{target_cpu}-glibc%{?glibc_require_append} >= 2.5 #BuildRequires: cross-%{target_cpu}-glibc%{?glibc_require_append} >= 2.5
%endif %endif
Requires(post):%{__install_info} Requires(post):%{__install_info}
Requires: %{name}-cpp = %{version}-%{release} Requires: %{name}-cpp = %{version}-%{release}
Requires: libgcc >= %{version}-%{release} Requires: libgcc >= %{version}-%{release}
Requires: binutils >= 2.16.1 Requires: binutils >= 2.16.1
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description %description
A compiler aimed at integrating all the optimizations and features necessary for a high-performance and stable development environment. A compiler aimed at integrating all the optimizations and features necessary for a high-performance and stable development environment.
@ -308,7 +307,8 @@ Summary: Fortran 95 support for gcc
Group: Applications/Development Group: Applications/Development
Requires: libgfortran = %{version}-%{release} Requires: libgfortran = %{version}-%{release}
Requires: %{name} = %{version}-%{release} Requires: %{name} = %{version}-%{release}
Obsoletes: gcc-g77, gcc-gfortran Obsoletes: gcc-g77 < 10.3.0
Obsoletes: gcc-gfortran < 10.3.0
%description fortran %description fortran
This package adds support for compiling Fortran 95 programs with the GNU compiler. This package adds support for compiling Fortran 95 programs with the GNU compiler.
@ -475,6 +475,21 @@ Requires: libasan = %{version}-%{release}
%description -n libasan-devel %description -n libasan-devel
This package contains static libraries and headers to be used for development. This package contains static libraries and headers to be used for development.
%package -n libhwasan
Summary: GCC HW address sanitizer runtime library
Group: System/Libraries
%description -n libhwasan
This package contains the GCC HW addess sanitizer runtime library.
%package -n libhwasan-devel
Summary: libhwasan development libraries and headers
Group: Development/Libraries
Requires: libhwasan = %{version}-%{release}
%description -n libhwasan-devel
This package contains static libraries and headers to be used for development.
%package -n liblsan %package -n liblsan
Summary: GCC Leak Sanitizer runtime library Summary: GCC Leak Sanitizer runtime library
Group: System/Libraries Group: System/Libraries
@ -566,7 +581,7 @@ Summary: Cross Platform gcc for %{_target_platform}
Group: Development/Tools Group: Development/Tools
Requires: cross-%{_target_platform}-binutils Requires: cross-%{_target_platform}-binutils
%if "%{?stage1}" != "1" %if "%{?stage1}" != "1"
Obsoletes: cross-%{_target_platform}-%{name}-stage1 Obsoletes: cross-%{_target_platform}-%{name}-stage1 <= %{version}
%endif %endif
AutoReqProv: no AutoReqProv: no
@ -595,10 +610,13 @@ Cross Platform gcc for %{_target_platform}.
%ifarch arm %ifarch arm
%patch20 -p1 %patch20 -p1
# workaround for gcc-go ## workaround for gcc-go
cp libgo/go/internal/syscall/unix/{getrandom_linux_arm.go,dummy.go} #cp libgo/go/internal/syscall/unix/{getrandom_linux_arm.go,dummy.go}
%endif %endif
# Do not run fixincludes
sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in
%build %build
#:<< ____EOF #:<< ____EOF
rm -rf ../%{name}-build-%{_target_platform} rm -rf ../%{name}-build-%{_target_platform}
@ -757,8 +775,9 @@ CROSS_SYSTEM_HEADER_DIR=/usr/%{_target_platform}/include \
%endif %endif
%else %else
make %{?_smp_mflags} CFLAGS='-O -I/usr/include/freetype2' LIBCFLAGS='-g -O2' \ make %{?_smp_mflags} CFLAGS="%{optflags}" CXXFLAGS="%{optflags}"
LIBCXXFLAGS='-g -O2 -fno-implicit-templates' bootstrap # CFLAGS='-O -I/usr/include/freetype2' LIBCFLAGS='-g -O2' \
# LIBCXXFLAGS='-g -O2 -fno-implicit-templates' bootstrap
%endif %endif
%if "%{target_cpu}" != "avr" %if "%{target_cpu}" != "avr"
@ -771,10 +790,10 @@ cd ../..
%endif %endif
%endif %endif
%endif # stage1 = 1 %endif
%install %install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != "/" ] && rm -rf "%{buildroot}"
cd ../%{name}-build-%{_target_platform} cd ../%{name}-build-%{_target_platform}
make DESTDIR=%{buildroot} install make DESTDIR=%{buildroot} install
@ -845,7 +864,8 @@ mv %{buildroot}%{_prefix}/lib32/libstdc++.so.*-gdb.py %{buildroot}%{_datadir}/gd
chmod 755 %{buildroot}/%{_libdir}/libgcc_s.so.1 chmod 755 %{buildroot}/%{_libdir}/libgcc_s.so.1
#cp gcc/doc/*.pdf ../gcc-%{version}%{?gcc_extraver}/gcc/doc/ #cp gcc/doc/*.pdf ../gcc-%{version}%{?gcc_extraver}/gcc/doc/
%else # target_platform != host %else
# target_platform != host
rm -rf %{buildroot}%{_infodir}/* rm -rf %{buildroot}%{_infodir}/*
rm -rf %{buildroot}%{_mandir}/man7/{fsf-funding.*,gfdl.*,gpl.*} rm -rf %{buildroot}%{_mandir}/man7/{fsf-funding.*,gfdl.*,gpl.*}
rm -rf %{buildroot}%{_datadir}/locale/* rm -rf %{buildroot}%{_datadir}/locale/*
@ -865,7 +885,7 @@ rm -f %{buildroot}%{_infodir}/libffi.info*
#%endif #%endif
%clean %clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != "/" ] && rm -rf "%{buildroot}"
%post -n libgcc -p /sbin/ldconfig %post -n libgcc -p /sbin/ldconfig
%postun -n libgcc -p /sbin/ldconfig %postun -n libgcc -p /sbin/ldconfig
@ -1090,6 +1110,18 @@ rm -f %{buildroot}%{_infodir}/libffi.info*
%{_libdir}/libtsan_preinit.o %{_libdir}/libtsan_preinit.o
%endif %endif
%ifarch aarch64
%files -n libhwasan
%defattr(-,root,root)
%{_libdir}/libhwasan.so.*
%files -n libhwasan-devel
%defattr(-,root,root)
%{_libdir}/libhwasan.a
%{_libdir}/libhwasan.la
%{_libdir}/libhwasan.so
%endif
%ifarch x86_64 aarch64 %ifarch x86_64 aarch64
%files -n liblsan %files -n liblsan
%defattr(-,root,root) %defattr(-,root,root)
@ -1201,7 +1233,7 @@ rm -f %{buildroot}%{_infodir}/libffi.info*
%dir %{_includedir}/c++ %dir %{_includedir}/c++
%{_includedir}/c++/* %{_includedir}/c++/*
#%doc libstdc++-v3/{ChangeLog*,README*,doc/html/} #%doc libstdc++-v3/{ChangeLog*,README*,doc/html/}
%endif "%{disable_cpp} %endif
# #
# D language # D language
@ -1251,7 +1283,7 @@ rm -f %{buildroot}%{_infodir}/libffi.info*
%ifarch ppc %ifarch ppc
%{_libdir}/nof/libgfortran.so.* %{_libdir}/nof/libgfortran.so.*
%endif %endif
%endif # disable_fortran != 1 %endif
%ifnarch arm aarch64 %ifnarch arm aarch64
%files -n libquadmath %files -n libquadmath
@ -1316,7 +1348,7 @@ rm -f %{buildroot}%{_infodir}/libffi.info*
#%doc gcc/doc/gccinstall.pdf #%doc gcc/doc/gccinstall.pdf
#%doc gcc/doc/gcc.pdf #%doc gcc/doc/gcc.pdf
#%doc gcc/doc/gccint.pdf #%doc gcc/doc/gccint.pdf
%endif # "%{disable_doc}" != "1" %endif
# #
# Multilib # Multilib
@ -1462,9 +1494,12 @@ rm -f %{buildroot}%{_infodir}/libffi.info*
%{_prefix}/libexec/gcc/%{_target_platform}/%{version}/* %{_prefix}/libexec/gcc/%{_target_platform}/%{version}/*
%endif %endif
%{_mandir}/man1/%{_target_platform}-* %{_mandir}/man1/%{_target_platform}-*
%endif # cross-platform %endif
%changelog %changelog
* Thu Apr 29 2021 Automatic Build System <autodist@mambasoft.it> 11.1.0-1mamba
- automatic version update by autodist
* Fri Jul 24 2020 Automatic Build System <autodist@mambasoft.it> 10.2.0-1mamba * Fri Jul 24 2020 Automatic Build System <autodist@mambasoft.it> 10.2.0-1mamba
- automatic version update by autodist - automatic version update by autodist