forked from Imagelibrary/rtems
rework mpfr handling.
This commit is contained in:
@@ -8,8 +8,6 @@
|
|||||||
%define newlib_version @NEWLIB_VERS@
|
%define newlib_version @NEWLIB_VERS@
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%define mpfr_version 2.3.1
|
|
||||||
|
|
||||||
Name: @rpmprefix@@tool_target@-gcc
|
Name: @rpmprefix@@tool_target@-gcc
|
||||||
Summary: @tool_target@ gcc
|
Summary: @tool_target@ gcc
|
||||||
|
|
||||||
@@ -25,20 +23,59 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|||||||
BuildRequires: %{_host_rpmprefix}gcc
|
BuildRequires: %{_host_rpmprefix}gcc
|
||||||
|
|
||||||
%if "%{gcc_version}" >= "4.3.0"
|
%if "%{gcc_version}" >= "4.3.0"
|
||||||
BuildRequires: gmp-devel >= 4.1
|
%define _gmp_minvers 4.1
|
||||||
|
%else
|
||||||
|
%if "%{gcc_version}" >= "4.2.0"
|
||||||
|
%if %build_f95
|
||||||
|
%define _gmp_minvers 4.1
|
||||||
|
%endif
|
||||||
|
%endif
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if %{defined _gmp_minvers}
|
||||||
|
BuildRequires: gmp-devel >= %{_gmp_minvers}
|
||||||
%if "%{_build}" != "%{_host}"
|
%if "%{_build}" != "%{_host}"
|
||||||
BuildRequires: %{_host_rpmprefix}gmp-devel
|
BuildRequires: %{_host_rpmprefix}gmp-devel >= %{_gmp_minvers}
|
||||||
BuildRequires: %{_host_rpmprefix}mpfr-devel
|
|
||||||
%endif
|
%endif
|
||||||
%if 0%{?fedora} >= 8
|
|
||||||
BuildRequires: mpfr-devel >= 2.3.0
|
|
||||||
%endif
|
%endif
|
||||||
%if "%{?suse}" > "10.3"
|
|
||||||
BuildRequires: mpfr-devel >= 2.3.0
|
|
||||||
|
%if "%{gcc_version}" >= "4.4.0"
|
||||||
|
%define _mpfr_minvers 2.3.2
|
||||||
|
%define mpfr_version 2.4.1
|
||||||
|
%else
|
||||||
|
%if "%{gcc_version}" >= "4.3.0"
|
||||||
|
%define _mpfr_minvers 2.3.1
|
||||||
|
%define mpfr_version 2.3.2
|
||||||
|
%else
|
||||||
|
%if "%{gcc_version}" >= "4.2.0"
|
||||||
|
%if %build_f95
|
||||||
|
%define _mpfr_minvers 2.2.1
|
||||||
|
%define mpfr_version 2.3.2
|
||||||
|
%endif
|
||||||
|
%endif
|
||||||
|
%endif
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if %{defined _mpfr_minvers}
|
||||||
|
%{?suse10_3:%global mpfr_provided 2.2.1}
|
||||||
|
%{?fc9:%global mpfr_provided 2.3.1}
|
||||||
|
%{?fc10:%global mpfr_provided 2.3.2}
|
||||||
|
%{?fc11:%global mpfr_provided 2.4.1}
|
||||||
|
|
||||||
|
%if %{defined mpfr_provided}
|
||||||
|
%if "%{mpfr_provided}" < "%{_mpfr_minvers}"
|
||||||
|
%define _build_mpfr 1
|
||||||
|
%else
|
||||||
|
BuildRequires: mpfr-devel >= %{_mpfr_minvers}
|
||||||
|
%endif
|
||||||
|
%else
|
||||||
|
%define _build_mpfr 1
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if "%{_build}" != "%{_host}"
|
||||||
|
BuildRequires: %{_host_rpmprefix}mpfr-devel >= %{_mpfr_minvers}
|
||||||
%endif
|
%endif
|
||||||
# These distros ship an insufficient mpfr
|
|
||||||
%{?el4:%define _build_mpfr 1}
|
|
||||||
%{?suse10_3:%define _build_mpfr 1}
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if "%{_build}" != "%{_host}"
|
%if "%{_build}" != "%{_host}"
|
||||||
@@ -47,12 +84,6 @@ BuildRequires: @rpmprefix@@tool_target@-gcc = %{gcc_rpmvers}
|
|||||||
|
|
||||||
%if "%{gcc_version}" >= "4.2.0"
|
%if "%{gcc_version}" >= "4.2.0"
|
||||||
BuildRequires: flex bison
|
BuildRequires: flex bison
|
||||||
%if %build_f95
|
|
||||||
BuildRequires: gmp-devel >= 4.1
|
|
||||||
%if 0%{?fedora} >= 8
|
|
||||||
BuildRequires: mpfr-devel >= 2.2.1
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if %build_gcj
|
%if %build_gcj
|
||||||
@@ -84,9 +115,6 @@ BuildRequires: zlib-devel
|
|||||||
BuildRequires: gcc-gnat
|
BuildRequires: gcc-gnat
|
||||||
BuildRequires: @rpmprefix@@tool_target@-newlib < %{newlib_version}-@NEWLIB_RPMREL@
|
BuildRequires: @rpmprefix@@tool_target@-newlib < %{newlib_version}-@NEWLIB_RPMREL@
|
||||||
%endif
|
%endif
|
||||||
%if %build_f95
|
|
||||||
BuildRequires: gmp-devel
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{gcc_version}" >= "3.4"
|
%if "%{gcc_version}" >= "3.4"
|
||||||
%define gcclib %{_libdir}/gcc
|
%define gcclib %{_libdir}/gcc
|
||||||
|
|||||||
Reference in New Issue
Block a user