栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

gcc7.5.0的spec文件

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

gcc7.5.0的spec文件

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

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/643400.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号