Changeset 4b42e20 in rtems


Ignore:
Timestamp:
Oct 27, 1999, 7:07:56 PM (20 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
226ea52
Parents:
2bdc1e98
Message:

Latest version from Ralf Corsepius <corsepiu@…> which
splits gcc, gcj, chill, f77 and objc into separate rpms..

File:
1 edited

Legend:

Unmodified
Added
Removed
  • scripts/gccnewlib/gccnewlib.spec.in

    r2bdc1e98 r4b42e20  
    1515Copyright:    1999 OARCorp
    1616
    17 Provides:     @target_alias@-gcc @target_alias@-chill @target_alias@-gcj
    18 Requires:     @target_alias@-binutils
    19 
    20 Autoreqprov:  on
    21 Packager:     corsepiu@faw.uni-ulm.de and joel@OARcorp.com
    22 
    23 Version:      gcc@gcc_version@newlib@newlib_version@
     17Provides:       @target_alias@-gcc @target_alias@-chill @target_alias@-gcj
     18Provides:       @target_alias@-g77 @target_alias@-objc
     19Requires:       @target_alias@-binutils
     20
     21Autoreqprov:    on
     22Packager:       corsepiu@faw.uni-ulm.de and joel@OARcorp.com
     23
     24Version:        gcc@gcc_version@newlib@newlib_version@
    2425Source0:        ftp://ftp.gnu.org/pub/gnu/gcc/gcc-@gcc_version@.tar.gz
    2526Source1:        ftp://sourceware.cygnus/com/pub/newlib/newlib-@newlib_version@.tar.gz
    2627Patch0:         gcc-@gcc_version@-rtems-@gcc_patch_version@.diff
    2728Patch1:         newlib-@newlib_version@-rtems-@newlib_patch_version@.diff
     29Buildroot:      /tmp
    2830
    2931#
     
    4345RTEMS is an open source operating system for embedded systems.
    4446
    45 This is gcc's and newlib C Library's sources with patch for RTEMS.
     47This is gcc's and newlib C Library's sources with patches for RTEMS.
    4648
    4749 The original sources are not included in the source RPM.
     
    8385RTEMS is an open source operating system for embedded systems.
    8486
    85 This is the gcc/java compiler and support files for @target_alias@
     87This is the gcc/java compiler for @target_alias@
     88
     89%package -n @target_alias@-g77
     90Summary:      gcc/g77 compiler for @target_alias@
     91Group: rtems
     92Requires: @target_alias@-gcc
     93
     94%description -n @target_alias@-g77
     95RTEMS is an open source operating system for embedded systems.
     96
     97This is the gcc/g77 compiler for @target_alias@
     98
     99%package -n @target_alias@-objc
     100Summary:      gcc/objc compiler for @target_alias@
     101Group: rtems
     102Requires: @target_alias@-objc
     103
     104%description -n @target_alias@-objc
     105RTEMS is an open source operating system for embedded systems.
     106
     107This is the gcc/objc compiler for @target_alias@
    86108
    87109%prep
     
    136158
    137159  rm -f dirs ;
     160  echo "%dir /opt/rtems/lib" >> dirs ;
     161  echo "%dir /opt/rtems/lib/gcc-lib" >> dirs ;
     162  echo "%dir /opt/rtems/lib/gcc-lib/@target_alias@" >> dirs ;
     163
    138164  # Collect multilib subdirectories
    139165  TGTDIR="$RPM_BUILD_ROOT/opt/rtems/lib/gcc-lib/@target_alias@/@gcc_version@"
     
    145171  cp dirs files.chill
    146172  cp dirs files.gcc
     173  cp dirs files.g77
     174  cp dirs files.objc
     175  cp dirs files.gcj
     176
    147177  f=`find $TGTDIR ! -type d -print | sed -e "s,^$RPM_BUILD_ROOT,,g"`;
    148178  for i in $f; do
    149179    case $i in
    150180    *chill*) echo "$i" >> files.chill ;;
     181    *f771) ;;
     182    *cc1obj) ;;
     183    *libobjc*) echo "$i" >> files.objc ;;
     184    *include/objc*) ;;
    151185    *jc1) ;;
    152186    *jvgenmain) ;;
     
    155189  done
    156190
    157 %post -n @target_alias@-gcc
    158   if test -d $RPM_INSTALL_PREFIX/rtems/info;
    159   then
    160     rm -f $RPM_INSTALL_PREFIX/rtems/info/dir
    161     f=`find $RPM_INSTALL_PREFIX/rtems/info -name '*.info.gz'`
    162     test -n "$f" && for i in $f; do
    163       install-info $i $RPM_INSTALL_PREFIX/rtems/info/dir
    164     done
    165   fi
    166 
    167 %postun -n @target_alias@-gcc
    168   if test -d $RPM_INSTALL_PREFIX/rtems/info;
    169   then
    170     rm -f $RPM_INSTALL_PREFIX/rtems/info/dir
    171     f=`find $RPM_INSTALL_PREFIX/rtems/info -name '*.info.gz'`
    172     test -n "$f" && for i in $f; do
    173       install-info $i $RPM_INSTALL_PREFIX/rtems/info/dir
    174     done
    175   fi
    176 
    177191%files -n @target_alias@-gcc -f build/files.gcc
    178192%dir /opt/rtems/info
     
    180194%doc /opt/rtems/info/cpp.info*
    181195%doc /opt/rtems/info/gcc.info*
    182 %doc /opt/rtems/info/g77.info*
    183196%doc /opt/rtems/info/libc.info*
    184197%doc /opt/rtems/info/libm.info*
     
    189202%doc /opt/rtems/man/man1/@target_alias@-gcc.1
    190203%doc /opt/rtems/man/man1/@target_alias@-g++.1
    191 %doc /opt/rtems/man/man1/@target_alias@-g77.1
    192204
    193205%dir /opt/rtems/bin
     
    197209/opt/rtems/bin/@target_alias@-g++
    198210/opt/rtems/bin/@target_alias@-gcc
    199 /opt/rtems/bin/@target_alias@-g77
    200211/opt/rtems/bin/@target_alias@-protoize
    201212/opt/rtems/bin/@target_alias@-unprotoize
    202213
    203 %dir /opt/rtems/lib
    204 
    205 %dir /opt/rtems/lib/gcc-lib
    206 %dir /opt/rtems/lib/gcc-lib/@target_alias@
    207214%dir /opt/rtems/lib/gcc-lib/@target_alias@/@gcc_version@/include
    208 %dir /opt/rtems/lib/gcc-lib/@target_alias@/@gcc_version@/include/objc
    209215
    210216%dir /opt/rtems/include
     
    212218/opt/rtems/@target_alias@
    213219
    214 %post -n @target_alias@-chill
    215   if test -d $RPM_INSTALL_PREFIX/rtems/info;
    216   then
    217     rm -f $RPM_INSTALL_PREFIX/rtems/info/dir
    218     f=`find $RPM_INSTALL_PREFIX/rtems/info -name '*.info.gz'`
    219     test -n "$f" && for i in $f; do
    220       install-info $i $RPM_INSTALL_PREFIX/rtems/info/dir
    221     done
    222   fi
    223 
    224 %postun -n @target_alias@-chill
    225   if test -d $RPM_INSTALL_PREFIX/rtems/info;
    226   then
    227     rm -f $RPM_INSTALL_PREFIX/rtems/info/dir
    228     f=`find $RPM_INSTALL_PREFIX/rtems/info -name '*.info.gz'`
    229     test -n "$f" && for i in $f; do
    230       install-info $i $RPM_INSTALL_PREFIX/rtems/info/dir
    231     done
    232   fi
     220%post -n @target_alias@-gcc
     221  if test -d $RPM_INSTALL_PREFIX/rtems/info;
     222  then
     223    rm -f $RPM_INSTALL_PREFIX/rtems/info/dir
     224    f=`find $RPM_INSTALL_PREFIX/rtems/info -name '*.info.gz'`
     225    test -n "$f" && for i in $f; do
     226      install-info $i $RPM_INSTALL_PREFIX/rtems/info/dir
     227    done
     228  fi
     229
     230%postun -n @target_alias@-gcc
     231  if test -d $RPM_INSTALL_PREFIX/rtems/info;
     232  then
     233    rm -f $RPM_INSTALL_PREFIX/rtems/info/dir
     234    f=`find $RPM_INSTALL_PREFIX/rtems/info -name '*.info.gz'`
     235    test -n "$f" && for i in $f; do
     236      install-info $i $RPM_INSTALL_PREFIX/rtems/info/dir
     237    done
     238  fi
     239
    233240
    234241%files -n @target_alias@-chill -f build/files.chill
     
    240247%doc /opt/rtems/info/chill.info*
    241248
    242 %dir /opt/rtems/lib
    243 %dir /opt/rtems/lib/gcc-lib
    244 %dir /opt/rtems/lib/gcc-lib/@target_alias@
    245 
    246 %files -n @target_alias@-gcj
     249%post -n @target_alias@-chill
     250  if test -d $RPM_INSTALL_PREFIX/rtems/info;
     251  then
     252    rm -f $RPM_INSTALL_PREFIX/rtems/info/dir
     253    f=`find $RPM_INSTALL_PREFIX/rtems/info -name '*.info.gz'`
     254    test -n "$f" && for i in $f; do
     255      install-info $i $RPM_INSTALL_PREFIX/rtems/info/dir
     256    done
     257  fi
     258
     259%postun -n @target_alias@-chill
     260  if test -d $RPM_INSTALL_PREFIX/rtems/info;
     261  then
     262    rm -f $RPM_INSTALL_PREFIX/rtems/info/dir
     263    f=`find $RPM_INSTALL_PREFIX/rtems/info -name '*.info.gz'`
     264    test -n "$f" && for i in $f; do
     265      install-info $i $RPM_INSTALL_PREFIX/rtems/info/dir
     266    done
     267  fi
     268
     269
     270%files -n @target_alias@-gcj -f build/files.gcj
    247271%dir /opt/rtems/bin
    248272/opt/rtems/bin/jcf-dump
     
    251275/opt/rtems/bin/@target_alias@-gcj
    252276
    253 %dir /opt/rtems/lib
    254 %dir /opt/rtems/lib/gcc-lib
    255 %dir /opt/rtems/lib/gcc-lib/@target_alias@
    256277/opt/rtems/lib/gcc-lib/@target_alias@/@gcc_version@/jc1
    257278/opt/rtems/lib/gcc-lib/@target_alias@/@gcc_version@/jvgenmain
    258279
     280
     281%files -n @target_alias@-g77 -f build/files.g77
     282%dir /opt/rtems/bin
     283/opt/rtems/bin/@target_alias@-g77
     284
     285%dir /opt/rtems/info
     286%doc /opt/rtems/info/g77.info*
     287
     288%dir /opt/rtems/man
     289%dir /opt/rtems/man/man1
     290%doc /opt/rtems/man/man1/@target_alias@-g77.1
     291
     292/opt/rtems/lib/gcc-lib/@target_alias@/@gcc_version@/f771
     293
     294%post -n @target_alias@-g77
     295  if test -d $RPM_INSTALL_PREFIX/rtems/info;
     296  then
     297    rm -f $RPM_INSTALL_PREFIX/rtems/info/dir
     298    f=`find $RPM_INSTALL_PREFIX/rtems/info -name '*.info.gz'`
     299    test -n "$f" && for i in $f; do
     300      install-info $i $RPM_INSTALL_PREFIX/rtems/info/dir
     301    done
     302  fi
     303
     304%postun -n @target_alias@-g77
     305  if test -d $RPM_INSTALL_PREFIX/rtems/info;
     306  then
     307    rm -f $RPM_INSTALL_PREFIX/rtems/info/dir
     308    f=`find $RPM_INSTALL_PREFIX/rtems/info -name '*.info.gz'`
     309    test -n "$f" && for i in $f; do
     310      install-info $i $RPM_INSTALL_PREFIX/rtems/info/dir
     311    done
     312  fi
     313
     314
     315%files -n @target_alias@-objc -f build/files.objc
     316/opt/rtems/lib/gcc-lib/@target_alias@/@gcc_version@/cc1obj
     317/opt/rtems/lib/gcc-lib/@target_alias@/@gcc_version@/include/objc
Note: See TracChangeset for help on using the changeset viewer.