Changeset a245929 in rtems


Ignore:
Timestamp:
Feb 5, 2006, 6:54:26 AM (14 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
4fca5bd5
Parents:
7c1303a
Message:

2006-02-05 Ralf Corsepius <ralf.corsepius@…>

  • gccnewlib/gccnewlib.add: Dynamically create brp-*. Use split source tar balls.
Location:
scripts
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • scripts/ChangeLog

    r7c1303a ra245929  
    112006-02-05      Ralf Corsepius <ralf.corsepius@rtems.org>
    22
     3        * gccnewlib/gccnewlib.add: Dynamically create brp-*.
     4        Use split source tar balls.
    35        * binutils/binutils.add: Dynamically create brp-*.
    46        Misc. update.
  • scripts/gccnewlib/gccnewlib.add

    r7c1303a ra245929  
    1919@PATCH0@
    2020@PATCH50@
    21 Source98:       brp-rtems-strip.in
    22 Source99:       brp-rtems-compress.in
    23 
    24 %define __os_install_post ./brp-rtems-compress && ./brp-rtems-strip
    2521
    2622BuildRequires:  texinfo >= 4.2
     
    4238%{?!_with_sources:NoSource:     50}
    4339
    44 %description
    45 RTEMS is an open source operating system for embedded systems.
    46 
    47 This is gcc for %{gcc_target}.
    48 
    49 
    5040# default languages to build
    5141%define _cxx            1
     
    118108%define build_libgcj    %_libgcj
    119109
     110%if %build_cxx
     111Source1:        ftp://ftp.gnu.org/pub/gnu/gcc/gcc-%{gcc_version}/gcc-g++-%{gcc_version}@gcc_suffix@
     112@PATCH1@
     113%{?!_with_sources:NoSource:     1}
     114%endif
     115
     116%if %build_f95
     117Source2:        ftp://ftp.gnu.org/pub/gnu/gcc/gcc-%{gcc_version}/gcc-fortran-%{gcc_version}@gcc_suffix@
     118@PATCH2@
     119%{?!_with_sources:NoSource:     2}
     120%endif
     121
     122%if %build_gcj
     123Source3:        ftp://ftp.gnu.org/pub/gnu/gcc/gcc-%{gcc_version}/gcc-java-%{gcc_version}@gcc_suffix@
     124@PATCH3@
     125%{?!_with_sources:NoSource:     3}
     126%endif
     127
     128%if %build_gnat
     129Source4:        ftp://ftp.gnu.org/pub/gnu/gcc/gcc-%{gcc_version}/gcc-ada-%{gcc_version}@gcc_suffix@
     130@PATCH4@
     131%{?!_with_sources:NoSource:     4}
     132%endif
     133
     134%if %build_objc
     135Source5:        ftp://ftp.gnu.org/pub/gnu/gcc/gcc-%{gcc_version}/gcc-objc-%{gcc_version}@gcc_suffix@
     136@PATCH5@
     137%{?!_with_sources:NoSource:     5}
     138%endif
     139
    120140%if %build_gcj
    121141# Building gcj requires bison and zlib
     
    147167%endif
    148168
    149 # %%description
    150 # RTEMS is an open source operating system for embedded systems.
    151 #
    152 # This is gcc's and newlib C Library's sources with patches for RTEMS.
    153 #
     169%description
     170RTEMS is an open source operating system for embedded systems.
     171
     172This is gcc for %{gcc_target}.
     173
    154174
    155175%prep
     
    158178
    159179%setup -T -D -n %{name}-%{version} -a0
    160 cd gcc-%{gcc_version}
    161 %{?PATCH0:%patch0 -p1}
    162 cd ..
     180%{?PATCH0:%patch0 -p0}
     181
     182%if %build_cxx
     183%setup -T -D -n %{name}-%{version} -a1
     184%{?PATCH1:%patch1 -p0}
     185%endif
     186
     187%if %build_f95
     188%setup -T -D -n %{name}-%{version} -a2
     189%{?PATCH2:%patch2 -p0}
     190%endif
     191
     192%if %build_gcj
     193%setup -T -D -n %{name}-%{version} -a3
     194%{?PATCH3:%patch3 -p0}
     195%endif
     196
     197%if %build_gnat
     198%setup -T -D -n %{name}-%{version} -a4
     199%{?PATCH4:%patch4 -p0}
     200%endif
     201
     202%if %build_objc
     203%setup -T -D -n %{name}-%{version} -a5
     204%{?PATCH5:%patch5 -p0}
     205%endif
    163206
    164207%setup -T -D -n %{name}-%{version} -a50
     
    167210cd ..
    168211
    169 sed 's,@BRPSTRIPPATH@,.%_bindir .%_prefix/%gcc_target/bin,' \
    170   %SOURCE98 > brp-rtems-strip
    171 chmod +x brp-rtems-strip
    172 
    173 sed 's,@BRPCOMPRESSPATH@,.%_mandir/man* .%_infodir,' \
    174   %SOURCE99 > brp-rtems-compress
    175 chmod +x brp-rtems-compress
     212# Extract %%__os_install_post into os_install_post~
     213cat << \EOF >> os_install_post~
     214%__os_install_post
     215EOF
     216
     217# Generate customized brp-*scripts
     218cat os_install_post~ | while read a x y; do
     219case $a in
     220# Prevent brp-strip* from trying to handle foreign binaries
     221*/brp-strip*)
     222  b=$(basename $a)
     223  sed -e 's,find $RPM_BUILD_ROOT,find $RPM_BUILD_ROOT%_bindir $RPM_BUILD_ROOT%_libexecdir,' $a > $b
     224  chmod a+x $b
     225  ;;
     226%if "%{_prefix}" != "/usr"
     227# Fix up brp-compress to handle %%_prefix != /usr
     228*/brp-compress*)
     229  b=$(basename $a)
     230  sed -e 's,\./usr/,./%{_prefix},' < $a > $b
     231  chmod a+x $b
     232  ;;
     233%endif
     234esac
     235done
     236
     237sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
     238%if "%{_prefix}" != "/usr"
     239  -e 's,^[ ]*/usr/lib/rpm.*/brp-compress,./brp-compress,' \
     240%endif
     241< os_install_post~ > os_install_post
     242%define __os_install_post . ./os_install_post
    176243
    177244  cd gcc-%{gcc_version}
Note: See TracChangeset for help on using the changeset viewer.