Ignore:
Timestamp:
Mar 18, 2010, 6:24:24 PM (10 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, master
Children:
28d868c4
Parents:
b563e9e
Message:

Regenerate.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • contrib/crossrpms/rtems4.11/m68k/rtems-4.11-m68k-rtems4.11-gcc.spec

    rb563e9e r9e84c716  
    6868BuildRequires:  %{_host_rpmprefix}gcc
    6969
     70%bcond_with lto
     71
     72%bcond_with pygdb
     73
     74# versions of libraries, we conditionally bundle if necessary
     75%global mpc_version     0.8.1
     76%global mpfr_version    2.4.1
     77%global gmp_version     4.3.2
     78%global libelf_version  0.8.13
     79
     80# versions of libraries these distros are known to ship
     81%if 0%{?fc13}
     82%global mpc_provided 0.8.1
     83%global mpfr_provided 2.4.1
     84%global gmp_provided 4.3.1
     85%endif
     86
     87%if 0%{?fc12}
     88%global mpc_provided 0.8
     89%global mpfr_provided 2.4.1
     90%global gmp_provided 4.3.1
     91%endif
     92
     93%if 0%{?fc11}
     94%global mpc_provided %{nil}
     95%global mpfr_provided 2.4.1
     96%global gmp_provided 4.2.4
     97%endif
     98
     99%if 0%{?rhel5}
     100%global mpc_provided %{nil}
     101%global mpfr_provided %{nil}
     102%global gmp_provided 4.1.4
     103%endif
     104
     105%if 0%{?suse11_0}
     106%global mpc_provided %{nil}
     107%global mpfr_provided 2.3.1
     108%global gmp_provided 4.2.2
     109%endif
     110
     111%if 0%{?suse11_1}
     112%global mpc_provided %{nil}
     113%global mpfr_provided 2.3.2
     114%global gmp_provided 4.2.3
     115%endif
     116
     117%if 0%{?suse11_2}
     118%global mpc_provided 0.7
     119%global mpfr_provided 2.4.1
     120%global gmp_provided 4.3.1
     121%endif
     122
     123%if 0%{?cygwin}
     124%global mpc_provided %{nil}
     125%global mpfr_provided 2.4.1
     126%global gmp_provided 4.3.1
     127%endif
     128
     129%if 0%{?mingw32}
     130%global mpc_provided %{nil}
     131%global mpfr_provided %{nil}
     132%global gmp_provided %{nil}
     133%endif
     134
     135%if "%{gcc_version}" >= "4.2.0"
     136%endif
     137
    70138%if "%{gcc_version}" >= "4.3.0"
    71 %define _gmp_minvers            4.1
    72 %else
    73 %if "%{gcc_version}" >= "4.2.0"
    74 %endif
    75 %endif
    76 
    77 %if %{defined _gmp_minvers}
    78 BuildRequires: gmp-devel >= %{_gmp_minvers}
     139%define gmp_required            4.1
     140%define mpfr_required           2.3.1
     141%endif
     142
     143%if "%{gcc_version}" >= "4.3.3"
     144%define cloog_required          0.15
     145%endif
     146
     147%if "%{gcc_version}" >= "4.4.0"
     148%define mpfr_required           2.3.2
     149%endif
     150
     151%if "%{gcc_version}" >= "4.5.0"
     152%define mpc_required            0.8
     153%if %{with lto}
     154%define libelf_required         0.8.12
     155%endif
     156%endif
     157
     158%if %{defined mpc_required}
     159%if "%{mpc_provided}" >= "%{mpc_required}"
     160%{?fedora:BuildRequires: libmpc-devel >= %{mpc_required}}
     161%{?suse:BuildRequires: mpc-devel >= %{mpc_required}}
    79162%if "%{_build}" != "%{_host}"
    80 BuildRequires:  %{_host_rpmprefix}gmp-devel >= %{_gmp_minvers}
    81 %endif
    82 %endif
    83 
    84 %if "%{gcc_version}" >= "4.3.3"
    85 %define _cloog_minvers 0.15
    86 %endif
    87 
    88 %if %{defined _cloog_minvers}
    89 %{?fc11:BuildRequires: cloog-ppl-devel >= %_cloog_minvers}
    90 %{?fc12:BuildRequires: cloog-ppl-devel >= %_cloog_minvers}
    91 %{?fc13:BuildRequires: cloog-ppl-devel >= %_cloog_minvers}
    92 %{?suse11_2:BuildRequires: cloog-devel >= %_cloog_minvers, ppl-devel}
    93 %{?suse11_1:BuildRequires: cloog-devel >= %_cloog_minvers, ppl-devel}
    94 %endif
    95 
    96 %if "%{gcc_version}" >= "4.4.0"
    97 %define _mpfr_minvers   2.3.2
    98 %define mpfr_version    2.4.1
    99 %else
    100 %if "%{gcc_version}" >= "4.3.0"
    101 %define _mpfr_minvers   2.3.1
    102 %define mpfr_version    2.3.2
    103 %else
    104 %if "%{gcc_version}" >= "4.2.0"
    105 %endif
    106 %endif
    107 %endif
    108 
    109 %if %{defined _mpfr_minvers}
    110 # FIXME: This is an ugly cludge
    111 %{?fc11:%global mpfr_provided 2.4.1}
    112 %{?fc12:%global mpfr_provided 2.4.1}
    113 %{?fc13:%global mpfr_provided 2.4.1}
    114 %{?suse11_0:%global mpfr_provided 2.3.1}
    115 %{?suse11_1:%global mpfr_provided 2.3.2}
    116 %{?suse11_2:%global mpfr_provided 2.4.1}
    117 %{?cygwin:%global mpfr_provided 2.4.1}
    118 %{?mingw32:%global mpfr_provided %{nil}}
    119 
    120 %if %{defined mpfr_provided}
    121 %if "%{mpfr_provided}" < "%{_mpfr_minvers}"
     163BuildRequires:  %{_host_rpmprefix}mpc-devel >= %{mpc_required}
     164%endif
     165%else
     166%define _build_mpc 1
     167%endif
     168%endif
     169
     170%if %{defined gmp_required}
     171%if "%{gmp_provided}" >= "%{gmp_required}"
     172BuildRequires: gmp-devel >= %{gmp_required}
     173%if "%{_build}" != "%{_host}"
     174BuildRequires:  %{_host_rpmprefix}gmp-devel >= %{gmp_required}
     175%endif
     176%else
     177%define _build_gmp 1
     178%endif
     179%endif
     180
     181%if %{defined libelf_required}
     182%if "%{libelf_provided}" >= "%{libelf_required}"
     183BuildRequires: libelf-devel >= %{libelf_required}
     184%if "%{_build}" != "%{_host}"
     185BuildRequires:  %{_host_rpmprefix}libelf-devel >= %{libelf_required}
     186%endif
     187%else
     188%define _build_libelf 1
     189%endif
     190%endif
     191
     192
     193%if %{defined cloog_required}
     194%{?fc11:BuildRequires: cloog-ppl-devel >= %cloog_required}
     195%{?fc12:BuildRequires: cloog-ppl-devel >= %cloog_required}
     196%{?fc13:BuildRequires: cloog-ppl-devel >= %cloog_required}
     197%{?suse11_2:BuildRequires: cloog-devel >= %cloog_required, ppl-devel}
     198%{?suse11_1:BuildRequires: cloog-devel >= %cloog_required, ppl-devel}
     199%endif
     200
     201
     202%if %{defined mpfr_required}
     203%if "%{mpfr_provided}" >= "%{mpfr_required}"
     204BuildRequires: mpfr-devel >= %{mpfr_required}
     205%if "%{_build}" != "%{_host}"
     206BuildRequires:  %{_host_rpmprefix}mpfr-devel >= %{mpfr_required}
     207%endif
     208%else
    122209%define _build_mpfr 1
    123 %else
    124 %if "%{_build}" != "%{_host}"
    125 BuildRequires:  %{_host_rpmprefix}mpfr-devel >= %{_mpfr_minvers}
    126 %else
    127 BuildRequires: mpfr-devel >= %{_mpfr_minvers}
    128 %endif
    129 %endif
    130 %else
    131 %define _build_mpfr 1
    132 %endif
    133 
     210%endif
    134211%endif
    135212
     
    151228Requires:       rtems-4.11-m68k-rtems4.11-newlib = %{newlib_version}-1%{?dist}
    152229
    153 
    154 %define _gcclibdir %{_prefix}/lib
     230%if "%{gcc_version}" >= "4.5.0"
     231BuildRequires:  zlib-devel
     232%else
     233%endif
     234
     235%global _gcclibdir %{_prefix}/lib
    155236
    156237%if "%{gcc_version}" == "4.4.3"
     
    178259%{?_without_sources:NoSource:   50}
    179260
    180 %if "%{gcc_version}" >= "4.3.0"
     261%if 0%{?_build_mpfr}
    181262Source60:    http://www.mpfr.org/mpfr-current/mpfr-%{mpfr_version}.tar.bz2
     263%endif
     264
     265%if 0%{?_build_mpc}
     266Source61:    http://www.multiprecision.org/mpc/download/mpc-%{mpc_version}.tar.gz
     267%endif
     268
     269%if 0%{?_build_gmp}
     270Source62:    ftp://ftp.gnu.org/gnu/gmp/gmp-%{gmp_version}.tar.bz2
     271%endif
     272
     273%if 0%{?_build_libelf}
     274Source63:    http://www.mr511.de/software/libelf-%{libelf_version}.tar.gz
    182275%endif
    183276
     
    210303  # Build mpfr one-tree style
    211304  ln -s ../mpfr-%{mpfr_version} gcc-%{gcc_pkgvers}/mpfr
     305%endif
     306
     307%if 0%{?_build_mpc}
     308%setup -q -T -D -n %{name}-%{version} -a61
     309%{?PATCH61:%patch61 -p1}
     310  # Build mpc one-tree style
     311  ln -s ../mpc-%{mpc_version} gcc-%{gcc_pkgvers}/mpc
     312%endif
     313
     314%if 0%{?_build_gmp}
     315%setup -q -T -D -n %{name}-%{version} -a62
     316%{?PATCH62:%patch62 -p1}
     317  # Build gmp one-tree style
     318  ln -s ../gmp-%{gmp_version} gcc-%{gcc_pkgvers}/gmp
     319%endif
     320
     321%if 0%{?_build_libelf}
     322%setup -q -T -D -n %{name}-%{version} -a63
     323%{?PATCH63:%patch63 -p1}
     324  # Build libelf one-tree style
     325  ln -s ../libelf-%{libelf_version} gcc-%{gcc_pkgvers}/libelf
    212326%endif
    213327
     
    254368    --enable-version-specific-runtime-libs \
    255369    --enable-threads \
     370    %{?with_lto:--enable-lto}%{!?with_lto:--disable-lto} \
    256371    --enable-newlib-io-c99-formats \
    257372    --enable-languages="$languages" $optargs
     
    319434    rmdir ${RPM_BUILD_ROOT}%{_prefix}/m68k-rtems4.11/include/bits
    320435  fi
     436
     437  # gcc >= 4.5.0: installs weird libstdc++ python bindings.
     438%if ! %{with pygdb}
     439  if test -d ${RPM_BUILD_ROOT}%{_datadir}/gcc-%{gcc_version}/python; then
     440    rm -rf ${RPM_BUILD_ROOT}%{_datadir}/gcc-%{gcc_version}/python/libstdcxx
     441  fi
     442%endif
    321443
    322444  # Collect multilib subdirectories
     
    375497    *jvgenmain) ;;
    376498    */libgfortran*.*) echo "$i" >> build/files.gfortran ;;
     499    %{!?with_pygdb:*/libstdc++*gdb.py*) rm ${RPM_BUILD_ROOT}/$i ;;} # ignore for now
    377500    */libstdc++.*) echo "$i" >> build/files.g++ ;;
    378501    */libsupc++.*) echo "$i" >> build/files.g++ ;;
     
    519642%{_libexecdir}/gcc/m68k-rtems4.11/%{gcc_version}/cc1%{_exeext}
    520643%{_libexecdir}/gcc/m68k-rtems4.11/%{gcc_version}/collect2%{_exeext}
    521 
     644%if "%{gcc_version}" >= "4.5.0"
     645%{?with_lto:%{_libexecdir}/gcc/m68k-rtems4.11/%{gcc_version}/lto%{_exeext}}
     646%{_libexecdir}/gcc/m68k-rtems4.11/%{gcc_version}/lto-wrapper%{_exeext}
     647%endif
    522648
    523649%files -n rtems-4.11-m68k-rtems4.11-gcc-libgcc -f build/files.gcc
Note: See TracChangeset for help on using the changeset viewer.