Ignore:
Timestamp:
Mar 29, 2010, 1:31:41 PM (10 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, master
Children:
8f77f8f
Parents:
0b45f1a2
Message:

Regenerate.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • contrib/crossrpms/rtems4.10/bfin/rtems-4.10-bfin-rtems4.10-gcc.spec

    r0b45f1a2 r4a23fa97  
    5959Group:          Development/Tools
    6060Version:        %{gcc_rpmvers}
    61 Release:        6%{?dist}
     61Release:        7%{?dist}
    6262License:        GPL
    6363URL:            http://gcc.gnu.org
     
    6868BuildRequires:  %{_host_rpmprefix}gcc
    6969
     70# FIXME: Disable lto for now, to avoid dependencies on libelf
     71%bcond_with lto
     72
     73# FIXME: Disamble python gdb scripts
     74# ATM, no idea how to package them
     75%bcond_with pygdb
     76
     77# FIXME: Disable GCC-plugin
     78# Bug in gcc-4.5-20100318, doesn't build them on x86_84 hosts.
     79%bcond_with plugin
     80
     81# versions of libraries, we conditionally bundle if necessary
     82%global mpc_version     0.8.1
     83%global mpfr_version    2.4.1
     84%global gmp_version     4.3.2
     85%global libelf_version  0.8.13
     86
     87# versions of libraries these distros are known to ship
     88%if 0%{?fc13}
     89%global mpc_provided 0.8.1
     90%global mpfr_provided 2.4.1
     91%global gmp_provided 4.3.1
     92%endif
     93
     94%if 0%{?fc12}
     95%global mpc_provided 0.8
     96%global mpfr_provided 2.4.1
     97%global gmp_provided 4.3.1
     98%endif
     99
     100%if 0%{?fc11}
     101%global mpc_provided %{nil}
     102%global mpfr_provided 2.4.1
     103%global gmp_provided 4.2.4
     104%endif
     105
     106%if 0%{?rhel5}
     107%global mpc_provided %{nil}
     108%global mpfr_provided %{nil}
     109%global gmp_provided 4.1.4
     110%endif
     111
     112%if 0%{?suse11_0}
     113%global mpc_provided %{nil}
     114%global mpfr_provided 2.3.1
     115%global gmp_provided 4.2.2
     116%endif
     117
     118%if 0%{?suse11_1}
     119%global mpc_provided %{nil}
     120%global mpfr_provided 2.3.2
     121%global gmp_provided 4.2.3
     122%endif
     123
     124%if 0%{?suse11_2}
     125%global mpc_provided 0.7
     126%global mpfr_provided 2.4.1
     127%global gmp_provided 4.3.1
     128%endif
     129
     130%if 0%{?cygwin}
     131%global mpc_provided 0.8
     132%global mpfr_provided 2.4.1
     133%global gmp_provided 4.3.1
     134%endif
     135
     136%if 0%{?mingw32}
     137%global mpc_provided 0.8.1
     138%global mpfr_provided 2.4.1
     139%global gmp_provided 4.3.2
     140%endif
     141
     142%if "%{gcc_version}" >= "4.2.0"
     143%endif
     144
    70145%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}
     146%define gmp_required            4.1
     147%define mpfr_required           2.3.1
     148%endif
     149
     150%if "%{gcc_version}" >= "4.3.3"
     151%define cloog_required          0.15
     152%endif
     153
     154%if "%{gcc_version}" >= "4.4.0"
     155%define mpfr_required           2.3.2
     156%endif
     157
     158%if "%{gcc_version}" >= "4.5.0"
     159%define mpc_required            0.8
     160%if %{with lto}
     161%define libelf_required         0.8.12
     162%endif
     163%endif
     164
     165%if %{defined mpc_required}
     166%if "%{mpc_provided}" >= "%{mpc_required}"
     167%{?fedora:BuildRequires: libmpc-devel >= %{mpc_required}}
     168%{?suse:BuildRequires: mpc-devel >= %{mpc_required}}
    79169%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}"
     170BuildRequires:  %{_host_rpmprefix}mpc-devel >= %{mpc_required}
     171%endif
     172%else
     173%define _build_mpc 1
     174%endif
     175%endif
     176
     177%if %{defined gmp_required}
     178%if "%{gmp_provided}" >= "%{gmp_required}"
     179BuildRequires: gmp-devel >= %{gmp_required}
     180%if "%{_build}" != "%{_host}"
     181BuildRequires:  %{_host_rpmprefix}gmp-devel >= %{gmp_required}
     182%endif
     183%else
     184%define _build_gmp 1
     185%endif
     186%endif
     187
     188%if %{defined libelf_required}
     189%if "%{libelf_provided}" >= "%{libelf_required}"
     190BuildRequires: libelf-devel >= %{libelf_required}
     191%if "%{_build}" != "%{_host}"
     192BuildRequires:  %{_host_rpmprefix}libelf-devel >= %{libelf_required}
     193%endif
     194%else
     195%define _build_libelf 1
     196%endif
     197%endif
     198
     199
     200%if %{defined cloog_required}
     201%{?fc11:BuildRequires: cloog-ppl-devel >= %cloog_required}
     202%{?fc12:BuildRequires: cloog-ppl-devel >= %cloog_required}
     203%{?fc13:BuildRequires: cloog-ppl-devel >= %cloog_required}
     204%{?suse11_2:BuildRequires: cloog-devel >= %cloog_required, ppl-devel}
     205%{?suse11_1:BuildRequires: cloog-devel >= %cloog_required, ppl-devel}
     206%endif
     207
     208
     209%if %{defined mpfr_required}
     210%if "%{mpfr_provided}" >= "%{mpfr_required}"
     211BuildRequires: mpfr-devel >= %{mpfr_required}
     212%if "%{_build}" != "%{_host}"
     213BuildRequires:  %{_host_rpmprefix}mpfr-devel >= %{mpfr_required}
     214%endif
     215%else
    122216%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 
     217%endif
    134218%endif
    135219
     
    149233Requires:       rtems-4.10-bfin-rtems4.10-binutils
    150234Requires:       rtems-4.10-bfin-rtems4.10-gcc-libgcc = %{gcc_rpmvers}-%{release}
    151 Requires:       rtems-4.10-bfin-rtems4.10-newlib = %{newlib_version}-7%{?dist}
    152 
    153 
    154 %define _gcclibdir %{_prefix}/lib
     235Requires:       rtems-4.10-bfin-rtems4.10-newlib = %{newlib_version}-8%{?dist}
     236
     237%if "%{gcc_version}" >= "4.5.0"
     238BuildRequires:  zlib-devel
     239%if "%{_build}" != "%{_host}"
     240BuildRequires:  %{_host_rpmprefix}zlib-devel
     241%endif
     242%else
     243%endif
     244
     245%global _gcclibdir %{_prefix}/lib
    155246
    156247%if "%{gcc_version}" == "4.4.3"
     
    174265%if "%{newlib_version}" == "1.18.0"
    175266Source50:       ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_pkgvers}.tar.gz
    176 Patch50:        ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/newlib-1.18.0-rtems4.10-20100310.diff
     267Patch50:        ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/newlib-1.18.0-rtems4.10-20100328.diff
    177268%endif
    178269%{?_without_sources:NoSource:   50}
    179270
    180 %if "%{gcc_version}" >= "4.3.0"
     271%if 0%{?_build_mpfr}
    181272Source60:    http://www.mpfr.org/mpfr-current/mpfr-%{mpfr_version}.tar.bz2
     273%endif
     274
     275%if 0%{?_build_mpc}
     276Source61:    http://www.multiprecision.org/mpc/download/mpc-%{mpc_version}.tar.gz
     277%endif
     278
     279%if 0%{?_build_gmp}
     280Source62:    ftp://ftp.gnu.org/gnu/gmp/gmp-%{gmp_version}.tar.bz2
     281%endif
     282
     283%if 0%{?_build_libelf}
     284Source63:    http://www.mr511.de/software/libelf-%{libelf_version}.tar.gz
    182285%endif
    183286
     
    189292
    190293%setup -q -T -D -n %{name}-%{version} -a0
    191 %{?PATCH0:%patch0 -p0}
     294cd gcc-%{gcc_pkgvers}
     295%{?PATCH0:%patch0 -p1}
     296cd ..
    192297
    193298%setup -q -T -D -n %{name}-%{version} -a1
    194 %{?PATCH1:%patch1 -p0}
     299cd gcc-%{gcc_pkgvers}
     300%{?PATCH1:%patch1 -p1}
     301cd ..
    195302
    196303
     
    212319%endif
    213320
    214 echo "RTEMS gcc-%{gcc_version}-6%{?dist}/newlib-%{newlib_version}-7%{?dist}" > gcc-%{gcc_pkgvers}/gcc/DEV-PHASE
     321%if 0%{?_build_mpc}
     322%setup -q -T -D -n %{name}-%{version} -a61
     323%{?PATCH61:%patch61 -p1}
     324  # Build mpc one-tree style
     325  ln -s ../mpc-%{mpc_version} gcc-%{gcc_pkgvers}/mpc
     326%endif
     327
     328%if 0%{?_build_gmp}
     329%setup -q -T -D -n %{name}-%{version} -a62
     330%{?PATCH62:%patch62 -p1}
     331  # Build gmp one-tree style
     332  ln -s ../gmp-%{gmp_version} gcc-%{gcc_pkgvers}/gmp
     333%endif
     334
     335%if 0%{?_build_libelf}
     336%setup -q -T -D -n %{name}-%{version} -a63
     337%{?PATCH63:%patch63 -p1}
     338  # Build libelf one-tree style
     339  ln -s ../libelf-%{libelf_version} gcc-%{gcc_pkgvers}/libelf
     340%endif
     341
     342echo "RTEMS gcc-%{gcc_version}-7%{?dist}/newlib-%{newlib_version}-8%{?dist}" > gcc-%{gcc_pkgvers}/gcc/DEV-PHASE
    215343
    216344
     
    254382    --enable-version-specific-runtime-libs \
    255383    --enable-threads \
     384    %{?with_lto:--enable-lto}%{!?with_lto:--disable-lto} \
     385    %{?with_plugin:--enable-plugin}%{!?with_plugin:--disable-plugin} \
    256386    --enable-newlib-io-c99-formats \
    257387    --enable-languages="$languages" $optargs
     
    319449    rmdir ${RPM_BUILD_ROOT}%{_prefix}/bfin-rtems4.10/include/bits
    320450  fi
     451
     452  # gcc >= 4.5.0: installs weird libstdc++ python bindings.
     453%if ! %{with pygdb}
     454  if test -d ${RPM_BUILD_ROOT}%{_datadir}/gcc-%{gcc_version}/python; then
     455    rm -rf ${RPM_BUILD_ROOT}%{_datadir}/gcc-%{gcc_version}/python/libstdcxx
     456  fi
     457%endif
    321458
    322459  # Collect multilib subdirectories
     
    375512    *jvgenmain) ;;
    376513    */libgfortran*.*) echo "$i" >> build/files.gfortran ;;
     514    %{!?with_pygdb:*/libstdc++*gdb.py*) rm ${RPM_BUILD_ROOT}/$i ;;} # ignore for now
     515    %{?with_pygdb:*/libstdc++*gdb.py*) >> build/files.g++ ;;}
    377516    */libstdc++.*) echo "$i" >> build/files.g++ ;;
    378517    */libsupc++.*) echo "$i" >> build/files.g++ ;;
     
    471610# Version:        %{gcc_rpmvers}
    472611# Requires:       rtems-4.10-bfin-rtems4.10-binutils
    473 # Requires:       rtems-4.10-bfin-rtems4.10-newlib = %{newlib_version}-7%{?dist}
     612# Requires:       rtems-4.10-bfin-rtems4.10-newlib = %{newlib_version}-8%{?dist}
    474613# License:      GPL
    475614
     
    489628Version:        %{gcc_rpmvers}
    490629%{?_with_noarch_subpackages:BuildArch: noarch}
    491 Requires:       rtems-4.10-bfin-rtems4.10-newlib = %{newlib_version}-7%{?dist}
     630Requires:       rtems-4.10-bfin-rtems4.10-newlib = %{newlib_version}-8%{?dist}
    492631License:        GPL
    493632
     
    519658%{_libexecdir}/gcc/bfin-rtems4.10/%{gcc_version}/cc1%{_exeext}
    520659%{_libexecdir}/gcc/bfin-rtems4.10/%{gcc_version}/collect2%{_exeext}
    521 
     660%if "%{gcc_version}" >= "4.5.0"
     661%{?with_lto:%{_libexecdir}/gcc/bfin-rtems4.10/%{gcc_version}/lto%{_exeext}}
     662%{_libexecdir}/gcc/bfin-rtems4.10/%{gcc_version}/lto-wrapper%{_exeext}
     663%endif
    522664
    523665%files -n rtems-4.10-bfin-rtems4.10-gcc-libgcc -f build/files.gcc
     
    531673
    532674%if "%{gcc_version}" > "4.0.3"
    533 %if "bfin-rtems4.10" != "bfin-rtems4.10"
    534 %if "bfin-rtems4.10" != "avr-rtems4.10"
    535675%dir %{_gcclibdir}/gcc/bfin-rtems4.10/%{gcc_version}/include/ssp
    536 %endif
    537 %endif
    538676%endif
    539677
     
    664802License:        Distributable
    665803Version:        %{newlib_version}
    666 Release:        7%{?dist}
     804Release:        8%{?dist}
    667805%{?_with_noarch_subpackages:BuildArch: noarch}
    668806
     
    685823Group:          Development/Tools
    686824Version:        %{newlib_version}
    687 Release:        7%{?dist}
     825Release:        8%{?dist}
    688826%{?_with_noarch_subpackages:BuildArch: noarch}
    689827License:        Distributable
Note: See TracChangeset for help on using the changeset viewer.