From 8aa8c23a6b980870a62ca1384c4c868bc8611573 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Thu, 28 Jul 2005 22:57:58 +0000 Subject: Reflect using brp-rtems*. --- scripts/gccnewlib/gccnewlib.add | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) (limited to 'scripts/gccnewlib') diff --git a/scripts/gccnewlib/gccnewlib.add b/scripts/gccnewlib/gccnewlib.add index 3a23ec3271..29c7caaa26 100644 --- a/scripts/gccnewlib/gccnewlib.add +++ b/scripts/gccnewlib/gccnewlib.add @@ -18,9 +18,15 @@ Source0: ftp://ftp.gnu.org/pub/gnu/gcc/gcc-%{gcc_version}/gcc-%{gcc_version}@gcc Source1: ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_version}@newlib_suffix@ @PATCH0@ @PATCH1@ +Source98: brp-rtems-strip.in +Source99: brp-rtems-compress.in + +%define __os_install_post ./brp-rtems-compress && ./brp-rtems-strip + BuildRequires: texinfo >= 4.2 BuildRequires: %{rpmprefix}%{gcc_target}-binutils + # # The original sources are not included in the source RPM. # If we included them, then the source RPMs for each target @@ -150,6 +156,14 @@ cd newlib-%{newlib_version} %{?PATCH1:%patch1 -p1} cd .. +sed 's,@BRPSTRIPPATH@,.%_bindir .%_prefix/%gcc_target/bin,' \ + %SOURCE98 > brp-rtems-strip +chmod +x brp-rtems-strip + +sed 's,@BRPCOMPRESSPATH@,.%_mandir/man* .%_infodir,' \ + %SOURCE99 > brp-rtems-compress +chmod +x brp-rtems-compress + cd gcc-%{gcc_version} sed -e 's/\(version_string.* = \"[^\"]*\)/\1 (RTEMS gcc-%{gcc_version}-@gcc_patch_version@\/newlib-%{newlib_version}-@newlib_patch_version@-@Release@)/' \ gcc/version.c > gcc/version.c~ @@ -282,17 +296,6 @@ cd .. fi %endif - # gzip info files - ls $RPM_BUILD_ROOT%{_infodir}/*.info \ - $RPM_BUILD_ROOT%{_infodir}/*.info-? \ - $RPM_BUILD_ROOT%{_infodir}/*.info-?? \ - | while read a; do \ - gzip -9qf $a 2>/dev/null; \ - done - - # gzip man pages - gzip -9qf $RPM_BUILD_ROOT%{_mandir}/man?/*.? 2>/dev/null - rm -f dirs ; echo "%defattr(-,root,root)" >> dirs echo "%dir %{_prefix}/lib" >> dirs ; @@ -368,3 +371,4 @@ cd .. esac done + cd .. -- cgit v1.2.3