Summary: Install gcc
Name: gcc
Version: 7.5.0
Release: 1%{?dist}
License: GPL
Group: Development/Languages
Source0: gcc-7.5.0.tar.xz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: gcc-c++ tar libstdc++-devel
%define __debug_install_post
%{_rpmconfigdir}/find-debuginfo.sh %{?_find_debuginfo_opts} "%{_builddir}/%{?buildsubdir}"
%{nil}
%description
The gcc package contains the GNU Compiler Collection. This package installs
all compilers in /usr/local/gcc48 directory.
%prep
%setup -q
%build
./contrib/download_prerequisites
mkdir gcc-build-7.5.0
cd gcc-build-7.5.0
unset LIBRARY_PATH CPATH C_INCLUDE_PATH PKG_CONFIG_PATH CPLUS_INCLUDE_PATH INCLUDE
#$PWD/../configure --prefix=/usr/local/gcc48 --enable-checking=release --enable-languages=c,c++ --disable-multilib
$PWD/../configure --enable-checking=release --enable-languages=c,c++ --disable-multilib
%{__make} %{?_smp_mflags}
%install
%{__rm} -rf %{buildroot}
cd gcc-build-7.5.0
%{__make} install DESTDIR=%{buildroot}
%clean
%{__rm} -rf %{buildroot}
%pre
%post
echo "/usr/local/lib64" > /etc/ld.so.conf.d/usr_local_lib.conf
/sbin/ldconfig &> /dev/null
%postun
%files
%defattr(-, root, root, 0755)
/usr/local/bin
/usr/local/include
/usr/local/lib
/usr/local/lib64
/usr/local/libexec
/usr/local/share
%changelog
* Tue 12 23 2021.bing - 7.5.0
- change
* Mon 12 22 2021 yan.bing - 7.5.0
- log



