Ignore:
Timestamp:
Sep 7, 2011, 7:29:50 PM (14 years ago)
Author:
Yuri Dario
Message:

spec: added gcc4 optional settings for Watcom tools support.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • spec/trunk/SPECS/gcc4.spec

    r173 r191  
    44Name: gcc
    55Version: %{gcc_version}
    6 Release: 6%{?dist}
     6Release: 7%{?dist}
    77
    88# libgcc, libgfortran, libmudflap, libgomp, libstdc++ and crtstuff have
     
    4343for stack protector.
    4444
     45%package wlink
     46Summary: GCC configuration changes for Watcom linker support.
     47Group: Development/Languages
     48Requires: watcom-wlink-hll
     49
     50%description wlink
     51This package triggers the required config.sys settings to allow use of Watcom
     52Linker instead of ld.
     53
     54%package wrc
     55Summary: GCC configuration changes for Watcom resource compiler support.
     56Group: Development/Languages
     57Requires: watcom-wrc
     58
     59%description wrc
     60This package triggers the required config.sys settings to allow use of Watcom
     61resource compiler instead of IBM one.
     62
    4563%prep
    4664%setup -q -c -a 1
     
    7088rm -rf %{buildroot}
    7189
     90%post wrc
     91if [ "$1" = 1 ] ; then
     92#execute only on first install
     93%cube {DELLINE "SET EMXOMFLD_RC="} c:\config.sys > NUL
     94%cube {DELLINE "SET EMXOMFLD_RC_TYPE="} c:\config.sys > NUL
     95%cube {ADDLINE "SET EMXOMFLD_RC=wrc.exe"} c:\config.sys > NUL
     96%cube {ADDLINE "SET EMXOMFLD_RC_TYPE=WRC"} c:\config.sys > NUL
     97fi
     98
     99%postun wrc
     100if [ "$1" = 0 ] ; then
     101#execute only on last uninstall
     102%cube {DELLINE "SET EMXOMFLD_RC="} c:\config.sys > NUL
     103%cube {DELLINE "SET EMXOMFLD_RC_TYPE="} c:\config.sys > NUL
     104fi
     105
     106%post wlink
     107if [ "$1" = 1 ] ; then
     108#execute only on first install
     109%cube {DELLINE "SET EMXOMFLD_LINKER="} c:\config.sys > NUL
     110%cube {DELLINE "SET EMXOMFLD_TYPE="} c:\config.sys > NUL
     111%cube {ADDLINE "SET EMXOMFLD_LINKER=wl.exe"} c:\config.sys > NUL
     112%cube {ADDLINE "SET EMXOMFLD_TYPE=WLINK"} c:\config.sys > NUL
     113fi
     114
     115%postun wlink
     116if [ "$1" = 0 ] ; then
     117#execute only on last uninstall
     118%cube {DELLINE "SET EMXOMFLD_LINKER="} c:\config.sys > NUL
     119%cube {DELLINE "SET EMXOMFLD_TYPE="} c:\config.sys > NUL
     120fi
     121
    72122%files
    73123%defattr(-,root,root,-)
Note: See TracChangeset for help on using the changeset viewer.