2007-01-19 12:33:03 +01:00
|
|
|
#
|
2011-01-14 12:35:45 +01:00
|
|
|
# spec file for package gcc
|
2007-01-19 12:33:03 +01:00
|
|
|
#
|
2017-01-23 13:37:26 +01:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2007-01-19 12:33:03 +01:00
|
|
|
#
|
2008-12-15 11:53:30 +01:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-01-19 12:33:03 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2012-04-18 13:27:03 +02:00
|
|
|
|
2007-01-19 12:33:03 +01:00
|
|
|
Name: gcc
|
|
|
|
%define separate_bi32 0
|
|
|
|
%define separate_bi64 0
|
|
|
|
%ifarch ppc
|
|
|
|
%define separate_bi64 1
|
|
|
|
%endif
|
2007-07-10 13:31:19 +02:00
|
|
|
%ifarch x86_64 s390x ppc64
|
2007-01-19 12:33:03 +01:00
|
|
|
%define separate_bi32 1
|
|
|
|
%endif
|
2012-10-16 13:54:05 +02:00
|
|
|
# Ada currently fails to build on a few platforms, enable it only
|
|
|
|
# on those that work
|
|
|
|
# Note that AdaCore only supports %ix86, x86_64 and ia64
|
2017-02-10 11:25:13 +01:00
|
|
|
%ifarch %ix86 x86_64 ppc ppc64 ppc64le s390 s390x ia64 aarch64
|
2012-10-16 13:54:05 +02:00
|
|
|
%define build_ada 1
|
|
|
|
%else
|
2017-02-10 11:25:13 +01:00
|
|
|
# alpha hppa arm
|
2012-10-16 13:54:05 +02:00
|
|
|
%define build_ada 0
|
|
|
|
%endif
|
2007-11-09 01:26:35 +01:00
|
|
|
Url: http://gcc.gnu.org/
|
2017-03-23 13:57:59 +01:00
|
|
|
%define gcc_version 7
|
|
|
|
%define gcc_suffix 7
|
|
|
|
Version: 7
|
2012-01-27 16:30:53 +01:00
|
|
|
Release: 0
|
2007-01-19 12:33:03 +01:00
|
|
|
Summary: The system GNU C Compiler
|
2012-01-27 16:30:53 +01:00
|
|
|
License: GPL-3.0+
|
|
|
|
Group: Development/Languages/C and C++
|
2007-01-19 12:33:03 +01:00
|
|
|
Provides: c_compiler
|
2013-12-03 14:54:21 +01:00
|
|
|
Obsoletes: gcc-ar
|
2007-01-19 12:33:03 +01:00
|
|
|
Obsoletes: gcc-mudflap
|
2013-12-03 14:54:21 +01:00
|
|
|
Obsoletes: gcc-nm
|
|
|
|
Obsoletes: gcc-ranlib
|
2012-04-18 13:27:03 +02:00
|
|
|
Requires: cpp
|
|
|
|
Requires: gcc%{gcc_version}
|
2007-01-19 12:33:03 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2012-12-13 15:17:11 +01:00
|
|
|
BuildRequires: gcc%{gcc_version}
|
2007-01-19 12:33:03 +01:00
|
|
|
Source: cpp
|
|
|
|
|
|
|
|
%description
|
|
|
|
The system GNU C Compiler.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n gcc-32bit
|
|
|
|
Summary: The system GNU C Compiler
|
2012-01-27 16:30:53 +01:00
|
|
|
License: GPL-3.0+
|
|
|
|
Group: Development/Languages/C and C++
|
2008-05-07 21:56:19 +02:00
|
|
|
Requires: gcc = %{version}
|
2012-04-18 13:27:03 +02:00
|
|
|
Requires: gcc%{gcc_version}-32bit
|
2007-01-19 12:33:03 +01:00
|
|
|
|
|
|
|
%description -n gcc-32bit
|
|
|
|
The system GNU C Compiler.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n gcc-64bit
|
|
|
|
Summary: The system GNU C Compiler
|
2012-01-27 16:30:53 +01:00
|
|
|
License: GPL-3.0+
|
|
|
|
Group: Development/Languages/C and C++
|
2008-05-07 21:56:19 +02:00
|
|
|
Requires: gcc = %{version}
|
2012-04-18 13:27:03 +02:00
|
|
|
Requires: gcc%{gcc_version}-64bit
|
2007-01-19 12:33:03 +01:00
|
|
|
|
|
|
|
%description -n gcc-64bit
|
|
|
|
The system GNU C Compiler.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n cpp
|
|
|
|
Summary: The system GNU Preprocessor
|
2012-01-27 16:30:53 +01:00
|
|
|
License: GPL-3.0+
|
|
|
|
Group: Development/Languages/C and C++
|
2007-01-19 12:33:03 +01:00
|
|
|
Requires: cpp%{gcc_version}
|
|
|
|
|
|
|
|
%description -n cpp
|
|
|
|
The system GNU Preprocessor.
|
|
|
|
|
|
|
|
|
2016-08-18 09:32:48 +02:00
|
|
|
%package -n gcc-devel
|
|
|
|
Summary: The system GNU C Compiler Plugin development files
|
|
|
|
License: GPL-3.0+
|
|
|
|
Group: Development/Languages/C and C++
|
|
|
|
Requires: gcc = %{version}
|
|
|
|
Requires: gcc%{gcc_version}-devel
|
|
|
|
|
|
|
|
%description -n gcc-devel
|
|
|
|
The system GNU C Compiler Plugin development files.
|
|
|
|
|
2007-01-19 12:33:03 +01:00
|
|
|
|
|
|
|
%package -n gcc-locale
|
|
|
|
Summary: The system GNU Compiler locale files
|
2012-01-27 16:30:53 +01:00
|
|
|
License: GPL-3.0+
|
|
|
|
Group: Development/Languages/C and C++
|
2007-01-19 12:33:03 +01:00
|
|
|
Requires: gcc%{gcc_version}-locale
|
|
|
|
|
|
|
|
%description -n gcc-locale
|
|
|
|
The system GNU Compiler locale files.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n gcc-info
|
|
|
|
Summary: The system GNU Compiler documentation
|
2012-01-27 16:30:53 +01:00
|
|
|
License: GFDL-1.2
|
|
|
|
Group: Development/Languages/C and C++
|
2010-12-10 12:53:54 +01:00
|
|
|
PreReq: %{install_info_prereq}
|
2012-11-28 15:09:43 +01:00
|
|
|
PreReq: gcc%{gcc_version}-info
|
2007-01-19 12:33:03 +01:00
|
|
|
|
|
|
|
%description -n gcc-info
|
|
|
|
The system GNU Compiler documentation.
|
|
|
|
|
2012-11-28 15:09:43 +01:00
|
|
|
# install / update the entries
|
2010-12-10 12:53:54 +01:00
|
|
|
%post -n gcc-info
|
2012-11-28 15:09:43 +01:00
|
|
|
%install_info --info-dir=%{_infodir} --name=cpp --description='The GNU C preprocessor.' %{_infodir}/cpp.info.gz
|
|
|
|
%install_info --info-dir=%{_infodir} --name=gcc --description='The GNU Compiler Collection.' %{_infodir}/gcc.info.gz
|
2017-06-07 13:51:49 +02:00
|
|
|
%install_info --info-dir=%{_infodir} --name=g++ --description='The GNU C++ compiler.' %{_infodir}/gcc.info.gz
|
2012-11-28 15:09:43 +01:00
|
|
|
%install_info --info-dir=%{_infodir} --name=gfortran --description='The GNU Fortran compiler.' %{_infodir}/gfortran.info.gz
|
|
|
|
|
|
|
|
# if we uninstall, clean the entries
|
|
|
|
%preun -n gcc-info
|
|
|
|
if [ "$1" -eq "0" ] ; then
|
|
|
|
%install_info --delete --info-dir=%{_infodir} --name=cpp %{_infodir}/cpp.info.gz
|
|
|
|
%install_info --delete --info-dir=%{_infodir} --name=gcc %{_infodir}/gcc.info.gz
|
2017-06-07 13:51:49 +02:00
|
|
|
%install_info --delete --info-dir=%{_infodir} --name=g++ %{_infodir}/gcc.info.gz
|
2012-11-28 15:09:43 +01:00
|
|
|
%install_info --delete --info-dir=%{_infodir} --name=gfortran %{_infodir}/gfortran.info.gz
|
|
|
|
fi
|
2007-01-19 12:33:03 +01:00
|
|
|
|
|
|
|
%package -n gcc-c++
|
|
|
|
Summary: The system GNU C++ Compiler
|
2012-01-27 16:30:53 +01:00
|
|
|
License: GPL-3.0+
|
|
|
|
Group: Development/Languages/C and C++
|
2007-01-19 12:33:03 +01:00
|
|
|
Provides: c++_compiler
|
2008-05-07 21:56:19 +02:00
|
|
|
Requires: gcc = %{version}
|
2012-04-18 13:27:03 +02:00
|
|
|
Requires: gcc%{gcc_version}-c++
|
2007-01-19 12:33:03 +01:00
|
|
|
|
|
|
|
%description -n gcc-c++
|
|
|
|
The system GNU C++ Compiler.
|
|
|
|
|
|
|
|
|
2010-02-25 13:44:14 +01:00
|
|
|
%package -n gcc-c++-32bit
|
|
|
|
Summary: The system GNU C++ Compiler
|
2012-01-27 16:30:53 +01:00
|
|
|
License: GPL-3.0+
|
|
|
|
Group: Development/Languages/C and C++
|
2015-05-19 14:12:20 +02:00
|
|
|
Requires: gcc%{gcc_version}-c++-32bit
|
2010-02-25 13:44:14 +01:00
|
|
|
Requires: gcc-32bit = %{version}
|
2012-04-18 13:27:03 +02:00
|
|
|
Requires: gcc-c++ = %{version}
|
2010-02-25 13:44:14 +01:00
|
|
|
|
|
|
|
%description -n gcc-c++-32bit
|
|
|
|
The system GNU C++ Compiler 32 bit support.
|
|
|
|
|
|
|
|
|
|
|
|
%package -n gcc-c++-64bit
|
|
|
|
Summary: The system GNU C++ Compiler
|
2012-01-27 16:30:53 +01:00
|
|
|
License: GPL-3.0+
|
|
|
|
Group: Development/Languages/C and C++
|
2015-05-19 14:12:20 +02:00
|
|
|
Requires: gcc%{gcc_version}-c++-64bit
|
2010-02-25 13:44:14 +01:00
|
|
|
Requires: gcc-64bit = %{version}
|
2012-04-18 13:27:03 +02:00
|
|
|
Requires: gcc-c++ = %{version}
|
2010-02-25 13:44:14 +01:00
|
|
|
|
|
|
|
%description -n gcc-c++-64bit
|
|
|
|
The system GNU C++ Compiler 64 bit support.
|
|
|
|
|
|
|
|
|
2007-01-19 12:33:03 +01:00
|
|
|
|
|
|
|
%package -n libstdc++-devel
|
|
|
|
Summary: The system GNU C++ development files
|
2012-01-27 16:30:53 +01:00
|
|
|
License: GPL-3.0-with-GCC-exception
|
|
|
|
Group: System/Libraries
|
2015-05-08 17:16:35 +02:00
|
|
|
Requires: libstdc++6-devel-gcc%{gcc_version}
|
2007-01-19 12:33:03 +01:00
|
|
|
|
|
|
|
%description -n libstdc++-devel
|
|
|
|
The system GNU C++ development files.
|
|
|
|
|
|
|
|
|
2014-08-04 15:32:49 +02:00
|
|
|
%package -n libstdc++-devel-32bit
|
|
|
|
Summary: The system GNU C++ 32bit development files
|
|
|
|
License: GPL-3.0-with-GCC-exception
|
|
|
|
Group: System/Libraries
|
2017-04-04 09:16:54 +02:00
|
|
|
Requires: libstdc++-devel
|
2017-04-04 09:15:07 +02:00
|
|
|
Requires: libstdc++6-devel-gcc%{gcc_version}-32bit
|
2014-08-04 15:32:49 +02:00
|
|
|
|
|
|
|
%description -n libstdc++-devel-32bit
|
|
|
|
The system GNU C++ 32bit development files.
|
|
|
|
|
|
|
|
|
|
|
|
%package -n libstdc++-devel-64bit
|
|
|
|
Summary: The system GNU C++ 64bit development files
|
|
|
|
License: GPL-3.0-with-GCC-exception
|
|
|
|
Group: System/Libraries
|
2017-04-04 09:16:54 +02:00
|
|
|
Requires: libstdc++-devel
|
2017-04-04 09:15:07 +02:00
|
|
|
Requires: libstdc++6-devel-gcc%{gcc_version}-64bit
|
2014-08-04 15:32:49 +02:00
|
|
|
|
|
|
|
%description -n libstdc++-devel-64bit
|
|
|
|
The system GNU C++ 64bit development files.
|
|
|
|
|
|
|
|
|
2007-01-19 12:33:03 +01:00
|
|
|
|
|
|
|
%package -n gcc-fortran
|
|
|
|
Summary: The system GNU Fortran Compiler
|
2012-01-27 16:30:53 +01:00
|
|
|
License: GPL-3.0+
|
|
|
|
Group: Development/Languages/Fortran
|
2008-05-07 21:56:19 +02:00
|
|
|
Requires: gcc = %{version}
|
2012-04-18 13:27:03 +02:00
|
|
|
Requires: gcc%{gcc_version}-fortran
|
2007-01-19 12:33:03 +01:00
|
|
|
|
|
|
|
%description -n gcc-fortran
|
|
|
|
The system GNU Fortran Compiler.
|
|
|
|
|
|
|
|
|
|
|
|
%package -n gcc-fortran-32bit
|
|
|
|
Summary: The system GNU Fortran Compiler
|
2012-01-27 16:30:53 +01:00
|
|
|
License: GPL-3.0+
|
|
|
|
Group: Development/Languages/Fortran
|
2007-01-19 12:33:03 +01:00
|
|
|
Requires: gcc%{gcc_version}-fortran-32bit
|
2008-05-07 21:56:19 +02:00
|
|
|
Requires: gcc-fortran = %{version}
|
2007-01-19 12:33:03 +01:00
|
|
|
|
|
|
|
%description -n gcc-fortran-32bit
|
2010-02-25 13:44:14 +01:00
|
|
|
The system GNU Fortran Compiler 32 bit support.
|
2007-01-19 12:33:03 +01:00
|
|
|
|
|
|
|
|
|
|
|
%package -n gcc-fortran-64bit
|
|
|
|
Summary: The system GNU Fortran Compiler
|
2012-01-27 16:30:53 +01:00
|
|
|
License: GPL-3.0+
|
|
|
|
Group: Development/Languages/Fortran
|
2007-01-19 12:33:03 +01:00
|
|
|
Requires: gcc%{gcc_version}-fortran-64bit
|
2008-05-07 21:56:19 +02:00
|
|
|
Requires: gcc-fortran = %{version}
|
2007-01-19 12:33:03 +01:00
|
|
|
|
|
|
|
%description -n gcc-fortran-64bit
|
2010-02-25 13:44:14 +01:00
|
|
|
The system GNU Fortran Compiler 64 bit support.
|
2007-01-19 12:33:03 +01:00
|
|
|
|
|
|
|
|
2007-07-27 15:35:34 +02:00
|
|
|
|
2007-01-19 12:33:03 +01:00
|
|
|
%package -n gcc-objc
|
|
|
|
Summary: The system GNU Objective C Compiler
|
2012-01-27 16:30:53 +01:00
|
|
|
License: GPL-3.0+
|
|
|
|
Group: Development/Languages/Other
|
2008-05-07 21:56:19 +02:00
|
|
|
Requires: gcc = %{version}
|
2012-04-18 13:27:03 +02:00
|
|
|
Requires: gcc%{gcc_version}-objc
|
2009-02-16 12:33:44 +01:00
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: gcc-objc-64bit
|
|
|
|
%endif
|
2007-01-19 12:33:03 +01:00
|
|
|
|
|
|
|
%description -n gcc-objc
|
|
|
|
The system GNU Objective C Compiler.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n gcc-objc-32bit
|
|
|
|
Summary: The system GNU Objective C Compiler
|
2012-01-27 16:30:53 +01:00
|
|
|
License: GPL-3.0+
|
|
|
|
Group: Development/Languages/Other
|
2007-01-19 12:33:03 +01:00
|
|
|
Requires: gcc%{gcc_version}-objc-32bit
|
2008-05-07 21:56:19 +02:00
|
|
|
Requires: gcc-objc = %{version}
|
2007-01-19 12:33:03 +01:00
|
|
|
|
|
|
|
%description -n gcc-objc-32bit
|
2010-02-25 13:44:14 +01:00
|
|
|
The system GNU Objective C Compiler 32 bit support.
|
2007-01-19 12:33:03 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n gcc-objc-64bit
|
|
|
|
Summary: The system GNU Objective C Compiler
|
2012-01-27 16:30:53 +01:00
|
|
|
License: GPL-3.0+
|
|
|
|
Group: Development/Languages/Other
|
2007-01-19 12:33:03 +01:00
|
|
|
Requires: gcc%{gcc_version}-objc-64bit
|
2008-05-07 21:56:19 +02:00
|
|
|
Requires: gcc-objc = %{version}
|
2007-01-19 12:33:03 +01:00
|
|
|
|
|
|
|
%description -n gcc-objc-64bit
|
2010-02-25 13:44:14 +01:00
|
|
|
The system GNU Objective C Compiler 64 bit support.
|
2007-01-19 12:33:03 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n gcc-obj-c++
|
|
|
|
Summary: The system GNU Objective C++ Compiler
|
2012-01-27 16:30:53 +01:00
|
|
|
License: GPL-3.0+
|
|
|
|
Group: Development/Languages/Other
|
2007-01-19 12:33:03 +01:00
|
|
|
Requires: gcc%{gcc_version}-obj-c++
|
2008-05-07 21:56:19 +02:00
|
|
|
Requires: gcc-objc = %{version}
|
2007-01-19 12:33:03 +01:00
|
|
|
|
|
|
|
%description -n gcc-obj-c++
|
|
|
|
The system GNU Objective C++ Compiler.
|
|
|
|
|
2015-02-25 15:22:22 +01:00
|
|
|
|
|
|
|
|
2015-02-09 11:56:33 +01:00
|
|
|
%package -n gcc-PIE
|
|
|
|
Summary: A default configuration to build all binaries in PIE mode
|
|
|
|
License: GPL-3.0+
|
|
|
|
Group: Development/Languages/Other
|
|
|
|
Requires: gcc
|
|
|
|
|
|
|
|
%description -n gcc-PIE
|
|
|
|
This package contains a configuration file (spec) that changes the
|
|
|
|
compilers default setting to build all ELF binaries in the Position
|
|
|
|
Independend Executable (PIE) variant. This enables better address
|
|
|
|
space randomization (ASLR).
|
|
|
|
|
2007-01-19 12:33:03 +01:00
|
|
|
|
|
|
|
%package -n gcc-ada
|
|
|
|
Summary: The system GNU Ada Compiler
|
2012-01-27 16:30:53 +01:00
|
|
|
License: GPL-3.0+
|
|
|
|
Group: Development/Languages/C and C++
|
2008-05-07 21:56:19 +02:00
|
|
|
Requires: gcc = %{version}
|
2012-04-18 13:27:03 +02:00
|
|
|
Requires: gcc%{gcc_version}-ada
|
2007-01-19 12:33:03 +01:00
|
|
|
|
|
|
|
%description -n gcc-ada
|
|
|
|
The system GNU Ada Compiler.
|
2015-02-25 15:22:22 +01:00
|
|
|
|
|
|
|
%package -n gcc-ada-32bit
|
|
|
|
Summary: The system GNU Ada Compiler
|
|
|
|
License: GPL-3.0+
|
|
|
|
Group: Development/Languages/C and C++
|
|
|
|
Requires: gcc%{gcc_version}-ada-32bit
|
|
|
|
Requires: gcc-ada = %{version}
|
|
|
|
|
|
|
|
%description -n gcc-ada-32bit
|
|
|
|
The system GNU Ada Compiler 32 bit support.
|
|
|
|
|
|
|
|
%package -n gcc-ada-64bit
|
|
|
|
Summary: The system GNU Ada Compiler
|
|
|
|
License: GPL-3.0+
|
|
|
|
Group: Development/Languages/C and C++
|
|
|
|
Requires: gcc%{gcc_version}-ada-64bit
|
|
|
|
Requires: gcc-ada = %{version}
|
|
|
|
|
|
|
|
%description -n gcc-ada-64bit
|
|
|
|
The system GNU Ada Compiler 64 bit support.
|
2007-01-19 12:33:03 +01:00
|
|
|
|
2015-04-20 12:25:33 +02:00
|
|
|
|
|
|
|
%package -n gcc-go
|
|
|
|
Summary: The system GNU Go Compiler
|
|
|
|
License: GPL-3.0+
|
|
|
|
Group: Development/Languages/C and C++
|
|
|
|
Requires: gcc = %{version}
|
|
|
|
Requires: gcc%{gcc_version}-go
|
|
|
|
|
|
|
|
%description -n gcc-go
|
|
|
|
The system GNU Go Compiler.
|
|
|
|
|
|
|
|
%package -n gcc-go-32bit
|
|
|
|
Summary: The system GNU Go Compiler
|
|
|
|
License: GPL-3.0+
|
|
|
|
Group: Development/Languages/C and C++
|
|
|
|
Requires: gcc%{gcc_version}-go-32bit
|
|
|
|
Requires: gcc-go = %{version}
|
|
|
|
|
|
|
|
%description -n gcc-go-32bit
|
|
|
|
The system GNU Go Compiler 32bit support.
|
|
|
|
|
|
|
|
%package -n gcc-go-64bit
|
|
|
|
Summary: The system GNU Go Compiler
|
|
|
|
License: GPL-3.0+
|
|
|
|
Group: Development/Languages/C and C++
|
|
|
|
Requires: gcc%{gcc_version}-go-64bit
|
|
|
|
Requires: gcc-go = %{version}
|
|
|
|
|
|
|
|
%description -n gcc-go-64bit
|
|
|
|
The system GNU Go Compiler 64bit support.
|
|
|
|
|
|
|
|
|
2007-01-19 12:33:03 +01:00
|
|
|
%prep
|
|
|
|
|
|
|
|
%install
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/lib
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_prefix}/bin
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
|
2012-11-28 15:09:43 +01:00
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_infodir}
|
2007-01-19 12:33:03 +01:00
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_prefix}/share/doc/packages/gcc-objc/
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_prefix}/share/doc/packages/gcc-obj-c++/
|
|
|
|
# Link all the binaries
|
|
|
|
for program in \
|
2017-06-06 12:38:12 +02:00
|
|
|
gcc gcov gcov-dump gcov-tool \
|
2007-01-19 12:33:03 +01:00
|
|
|
g++ \
|
|
|
|
cpp \
|
|
|
|
gfortran \
|
2012-10-16 13:54:05 +02:00
|
|
|
%if %{build_ada}
|
2007-01-19 12:33:03 +01:00
|
|
|
gnat gnatbind gnatbl gnatchop gnatclean gnatfind gnatkr \
|
|
|
|
gnatlink gnatls gnatmake gnatname gnatprep gnatxref gprmake \
|
2012-10-16 13:54:05 +02:00
|
|
|
%endif
|
2013-06-19 14:28:32 +02:00
|
|
|
gcc-ar gcc-nm gcc-ranlib \
|
2007-01-19 12:33:03 +01:00
|
|
|
; do
|
|
|
|
ln -sf $program-%{gcc_suffix} $RPM_BUILD_ROOT%{_prefix}/bin/$program
|
|
|
|
done
|
|
|
|
# Link section 1 manpages
|
|
|
|
for man1 in \
|
2017-06-06 12:38:12 +02:00
|
|
|
gcc gcov gcov-dump gcov-tool \
|
2007-01-19 12:33:03 +01:00
|
|
|
g++ \
|
|
|
|
cpp \
|
|
|
|
gfortran \
|
|
|
|
; do
|
|
|
|
ln -sf $man1-%{gcc_suffix}.1.gz $RPM_BUILD_ROOT%{_mandir}/man1/$man1.1.gz
|
|
|
|
done
|
2012-11-28 15:09:43 +01:00
|
|
|
# Link info pages
|
2017-06-07 13:51:49 +02:00
|
|
|
for info in cpp gcc gfortran ; do
|
2012-11-28 15:09:43 +01:00
|
|
|
ln -sf $info-%{gcc_suffix}.info.gz $RPM_BUILD_ROOT%{_infodir}/$info.info.gz
|
|
|
|
done
|
2007-01-19 12:33:03 +01:00
|
|
|
# Provide the traditional /lib/cpp that only handles C
|
|
|
|
cp $RPM_SOURCE_DIR/cpp $RPM_BUILD_ROOT/lib/
|
|
|
|
chmod 755 $RPM_BUILD_ROOT/lib/cpp
|
|
|
|
# Provide extra symlinks
|
|
|
|
ln -sf g++-%{gcc_suffix} $RPM_BUILD_ROOT%{_prefix}/bin/c++
|
|
|
|
ln -sf gcc-%{gcc_suffix} $RPM_BUILD_ROOT%{_prefix}/bin/cc
|
|
|
|
ln -sf g++-%{gcc_suffix}.1.gz $RPM_BUILD_ROOT%{_mandir}/man1/c++.1.gz
|
|
|
|
ln -sf gcc-%{gcc_suffix}.1.gz $RPM_BUILD_ROOT%{_mandir}/man1/cc.1.gz
|
2014-03-21 13:31:16 +01:00
|
|
|
# Install the LTO linker plugin so it is auto-loaded by BFD
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/bfd-plugins
|
2014-03-26 16:04:05 +01:00
|
|
|
ln -s `gcc-%{gcc_suffix} -print-file-name=liblto_plugin.so.0.0.0` $RPM_BUILD_ROOT%{_prefix}/lib/bfd-plugins/liblto_plugin.so.0.0.0
|
2007-01-19 12:33:03 +01:00
|
|
|
|
2015-05-21 11:25:37 +02:00
|
|
|
dir=`gcc-%{gcc_suffix} -print-prog-name=cc1`
|
2015-02-09 11:56:33 +01:00
|
|
|
dir=${dir%/cc1}
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/$dir
|
|
|
|
cat > $RPM_BUILD_ROOT/$dir/defaults.spec <<EOF
|
|
|
|
*default_spec:
|
|
|
|
%%{pie|fpic|fPIC|fpie|fPIE|fno-pic|fno-PIC|fno-pie|fno-PIE|shared|static|nostdlib|nodefaultlibs|nostartfiles:;:-fPIE -pie}
|
|
|
|
EOF
|
|
|
|
|
2007-01-19 12:33:03 +01:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_prefix}/bin/gcc
|
|
|
|
%{_prefix}/bin/cc
|
|
|
|
%{_prefix}/bin/gcov
|
2017-06-06 12:38:12 +02:00
|
|
|
%{_prefix}/bin/gcov-dump
|
|
|
|
%{_prefix}/bin/gcov-tool
|
2013-12-02 16:35:21 +01:00
|
|
|
%{_prefix}/bin/gcc-ar
|
|
|
|
%{_prefix}/bin/gcc-nm
|
|
|
|
%{_prefix}/bin/gcc-ranlib
|
2014-03-21 13:31:16 +01:00
|
|
|
%dir %{_prefix}/lib/bfd-plugins
|
|
|
|
%{_prefix}/lib/bfd-plugins/liblto_plugin.so.0.0.0
|
2007-01-19 12:33:03 +01:00
|
|
|
%doc %{_mandir}/man1/gcc.1.gz
|
|
|
|
%doc %{_mandir}/man1/cc.1.gz
|
|
|
|
%doc %{_mandir}/man1/gcov.1.gz
|
2017-06-06 12:38:12 +02:00
|
|
|
%doc %{_mandir}/man1/gcov-dump.1.gz
|
|
|
|
%doc %{_mandir}/man1/gcov-tool.1.gz
|
2007-01-19 12:33:03 +01:00
|
|
|
|
|
|
|
%files -n cpp
|
|
|
|
%defattr(-,root,root)
|
|
|
|
/lib/cpp
|
|
|
|
%{_prefix}/bin/cpp
|
|
|
|
%doc %{_mandir}/man1/cpp.1.gz
|
|
|
|
|
2017-06-07 13:40:15 +02:00
|
|
|
# Plugins are only enabled for Tumbleweed
|
2017-06-09 13:19:50 +02:00
|
|
|
%if 0%{!?sle_version:1}
|
2016-08-18 09:32:48 +02:00
|
|
|
%files -n gcc-devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
# empty - only for the dependency
|
2017-06-07 13:40:15 +02:00
|
|
|
%endif
|
2016-08-18 09:32:48 +02:00
|
|
|
|
2007-01-19 12:33:03 +01:00
|
|
|
%files -n gcc-c++
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_prefix}/bin/g++
|
|
|
|
%{_prefix}/bin/c++
|
|
|
|
%doc %{_mandir}/man1/g++.1.gz
|
|
|
|
%doc %{_mandir}/man1/c++.1.gz
|
|
|
|
|
|
|
|
%files -n gcc-fortran
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_prefix}/bin/gfortran
|
|
|
|
%doc %{_mandir}/man1/gfortran.1.gz
|
|
|
|
|
|
|
|
%files -n gcc-objc
|
|
|
|
%defattr(-,root,root)
|
|
|
|
# empty - only for the dependency
|
|
|
|
|
|
|
|
%files -n gcc-obj-c++
|
|
|
|
%defattr(-,root,root)
|
|
|
|
# empty - only for the dependency
|
|
|
|
|
2015-02-09 11:56:33 +01:00
|
|
|
%files -n gcc-PIE
|
|
|
|
%defattr(-,root,root)
|
|
|
|
/usr/lib*/gcc/*-suse-linux*/*/defaults.spec
|
|
|
|
|
2007-01-19 12:33:03 +01:00
|
|
|
%files -n gcc-locale
|
|
|
|
%defattr(-,root,root)
|
|
|
|
# empty - only for the dependency
|
|
|
|
|
|
|
|
%files -n gcc-info
|
|
|
|
%defattr(-,root,root)
|
2012-11-28 15:09:43 +01:00
|
|
|
%{_infodir}/cpp.info.gz
|
|
|
|
%{_infodir}/gcc.info.gz
|
|
|
|
%{_infodir}/gfortran.info.gz
|
2007-01-19 12:33:03 +01:00
|
|
|
|
2012-10-16 13:54:05 +02:00
|
|
|
%if %{build_ada}
|
2007-01-19 12:33:03 +01:00
|
|
|
%files -n gcc-ada
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_prefix}/bin/gnat
|
|
|
|
%{_prefix}/bin/gnatbind
|
|
|
|
%{_prefix}/bin/gnatbl
|
|
|
|
%{_prefix}/bin/gnatchop
|
|
|
|
%{_prefix}/bin/gnatclean
|
|
|
|
%{_prefix}/bin/gnatfind
|
|
|
|
%{_prefix}/bin/gnatkr
|
|
|
|
%{_prefix}/bin/gnatlink
|
|
|
|
%{_prefix}/bin/gnatls
|
|
|
|
%{_prefix}/bin/gnatmake
|
|
|
|
%{_prefix}/bin/gnatname
|
|
|
|
%{_prefix}/bin/gnatprep
|
|
|
|
%{_prefix}/bin/gnatxref
|
|
|
|
%{_prefix}/bin/gprmake
|
2012-10-16 13:54:05 +02:00
|
|
|
%endif
|
2007-01-19 12:33:03 +01:00
|
|
|
|
|
|
|
%files -n libstdc++-devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
# empty - only for the dependency
|
|
|
|
|
2015-04-20 12:25:33 +02:00
|
|
|
%files -n gcc-go
|
|
|
|
%defattr(-,root,root)
|
|
|
|
# empty - only for the dependency
|
|
|
|
|
2007-01-19 12:33:03 +01:00
|
|
|
%if %{separate_bi32}
|
|
|
|
|
|
|
|
%files -n gcc-32bit
|
|
|
|
%defattr(-,root,root)
|
|
|
|
# empty - only for the dependency
|
|
|
|
|
2010-02-25 13:44:14 +01:00
|
|
|
%files -n gcc-c++-32bit
|
|
|
|
%defattr(-,root,root)
|
|
|
|
# empty - only for the dependency
|
|
|
|
|
2014-08-04 15:32:49 +02:00
|
|
|
%files -n libstdc++-devel-32bit
|
|
|
|
%defattr(-,root,root)
|
|
|
|
# empty - only for the dependency
|
|
|
|
|
2007-01-19 12:33:03 +01:00
|
|
|
%files -n gcc-fortran-32bit
|
|
|
|
%defattr(-,root,root)
|
|
|
|
# empty - only for the dependency
|
|
|
|
|
|
|
|
%files -n gcc-objc-32bit
|
|
|
|
%defattr(-,root,root)
|
|
|
|
# empty - only for the dependency
|
|
|
|
|
2015-03-02 14:49:16 +01:00
|
|
|
%if %{build_ada}
|
2015-02-25 15:22:22 +01:00
|
|
|
%files -n gcc-ada-32bit
|
|
|
|
%defattr(-,root,root)
|
|
|
|
# empty - only for the dependency
|
2015-03-02 14:49:16 +01:00
|
|
|
%endif
|
2015-02-25 15:22:22 +01:00
|
|
|
|
2015-04-20 12:25:33 +02:00
|
|
|
%files -n gcc-go-32bit
|
|
|
|
%defattr(-,root,root)
|
|
|
|
# empty - only for the dependency
|
|
|
|
|
2007-01-19 12:33:03 +01:00
|
|
|
%endif
|
|
|
|
%if %{separate_bi64}
|
|
|
|
|
|
|
|
%files -n gcc-64bit
|
|
|
|
%defattr(-,root,root)
|
|
|
|
# empty - only for the dependency
|
|
|
|
|
2010-02-25 13:44:14 +01:00
|
|
|
%files -n gcc-c++-64bit
|
|
|
|
%defattr(-,root,root)
|
|
|
|
# empty - only for the dependency
|
|
|
|
|
2014-08-04 15:32:49 +02:00
|
|
|
%files -n libstdc++-devel-64bit
|
|
|
|
%defattr(-,root,root)
|
|
|
|
# empty - only for the dependency
|
|
|
|
|
2007-01-19 12:33:03 +01:00
|
|
|
%files -n gcc-fortran-64bit
|
|
|
|
%defattr(-,root,root)
|
|
|
|
# empty - only for the dependency
|
|
|
|
|
|
|
|
%files -n gcc-objc-64bit
|
|
|
|
%defattr(-,root,root)
|
|
|
|
# empty - only for the dependency
|
|
|
|
|
2015-03-02 14:49:16 +01:00
|
|
|
%if %{build_ada}
|
2015-02-25 15:22:22 +01:00
|
|
|
%files -n gcc-ada-64bit
|
|
|
|
%defattr(-,root,root)
|
|
|
|
# empty - only for the dependency
|
2015-03-02 14:49:16 +01:00
|
|
|
%endif
|
2015-02-25 15:22:22 +01:00
|
|
|
|
2015-04-20 12:25:33 +02:00
|
|
|
%files -n gcc-go-64bit
|
|
|
|
%defattr(-,root,root)
|
|
|
|
# empty - only for the dependency
|
|
|
|
|
2008-12-15 11:53:30 +01:00
|
|
|
%endif
|
2007-11-23 01:30:47 +01:00
|
|
|
|
2007-04-26 19:01:27 +02:00
|
|
|
%changelog
|