Changeset 8aa8c23 in rtems


Ignore:
Timestamp:
07/28/05 22:57:58 (17 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
f62cb266
Parents:
0813e0da
Message:

Reflect using brp-rtems*.

Location:
scripts
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • scripts/binutils/binutils.add

    r0813e0da r8aa8c23  
    1717Source0:        ftp://ftp.gnu.org/pub/gnu/binutils/binutils-%{binutils_version}@binutils_suffix@
    1818@PATCH1@
     19
     20Source98:       brp-rtems-strip.in
     21Source99:       brp-rtems-compress.in
     22
     23%define __os_install_post ./brp-rtems-compress && ./brp-rtems-strip
    1924
    2025#
     
    4045%setup -c -T -n %{name}-%{version} -a0
    4146
     47sed 's,@BRPSTRIPPATH@,.%_bindir .%_prefix/%binutils_target/bin,' \
     48  %SOURCE98 > brp-rtems-strip
     49chmod +x brp-rtems-strip
     50
     51sed 's,@BRPCOMPRESSPATH@,.%_mandir/man* .%_infodir,' \
     52  %SOURCE99 > brp-rtems-compress
     53chmod +x brp-rtems-compress
     54
    4255cd binutils-%{version}
    4356%{?PATCH0:%patch0 -p1}
     
    4861%build
    4962  cd build
    50 %if "%{binutils_version}" <= "2.16.1"
    51 # ar leaks memory - Disable fortify to prevent it from killing ar
    52   OPT_FLAGS=$(echo "$RPM_OPT_FLAGS" | sed -e 's/\-Wp,\-D_FORTIFY_SOURCE=[^ ]*//')
    53 %else
    54   OPT_FLAGS="$RPM_OPT_FLAGS"
    55 %endif
    56   CFLAGS="$OPT_FLAGS" \
     63  CFLAGS="$RPM_OPT_FLAGS" \
    5764  ../binutils-%{binutils_version}/configure \
    5865    --build=%_build --host=%_host \
     
    96103  rm -f $RPM_BUILD_ROOT%{_infodir}/dir
    97104  touch $RPM_BUILD_ROOT%{_infodir}/dir
    98 
    99 # gzip info files
    100   ls $RPM_BUILD_ROOT%{_infodir}/*.info \
    101     $RPM_BUILD_ROOT%{_infodir}/*.info-? \
    102     $RPM_BUILD_ROOT%{_infodir}/*.info-?? 2>/dev/null \
    103   | while read a; do \
    104     gzip -9qf $a 2>/dev/null; \
    105   done
    106 
    107 # gzip man pages
    108   gzip -9qf $RPM_BUILD_ROOT%{_mandir}/man?/*.? 2>/dev/null
    109 
     105 
    110106# We don't ship host files
    111107  rm -f ${RPM_BUILD_ROOT}%{_libdir}/libiberty*
     108
     109  cd ..
  • scripts/gccnewlib/gccnewlib.add

    r0813e0da r8aa8c23  
    1919@PATCH0@
    2020@PATCH1@
     21Source98:       brp-rtems-strip.in
     22Source99:       brp-rtems-compress.in
     23
     24%define __os_install_post ./brp-rtems-compress && ./brp-rtems-strip
     25
    2126BuildRequires:  texinfo >= 4.2
    2227BuildRequires:  %{rpmprefix}%{gcc_target}-binutils
     28
    2329
    2430#
     
    150156%{?PATCH1:%patch1 -p1}
    151157cd ..
     158
     159sed 's,@BRPSTRIPPATH@,.%_bindir .%_prefix/%gcc_target/bin,' \
     160  %SOURCE98 > brp-rtems-strip
     161chmod +x brp-rtems-strip
     162
     163sed 's,@BRPCOMPRESSPATH@,.%_mandir/man* .%_infodir,' \
     164  %SOURCE99 > brp-rtems-compress
     165chmod +x brp-rtems-compress
    152166
    153167  cd gcc-%{gcc_version}
     
    282296  fi
    283297%endif
    284 
    285   # gzip info files
    286   ls $RPM_BUILD_ROOT%{_infodir}/*.info \
    287     $RPM_BUILD_ROOT%{_infodir}/*.info-? \
    288     $RPM_BUILD_ROOT%{_infodir}/*.info-?? \
    289   | while read a; do \
    290     gzip -9qf $a 2>/dev/null; \
    291   done
    292 
    293   # gzip man pages
    294   gzip -9qf $RPM_BUILD_ROOT%{_mandir}/man?/*.? 2>/dev/null
    295298
    296299  rm -f dirs ;
     
    369372  done
    370373
     374  cd ..
Note: See TracChangeset for help on using the changeset viewer.