Changeset 254 for spec/trunk/SPECS


Ignore:
Timestamp:
Dec 18, 2011, 11:52:47 PM (14 years ago)
Author:
dmik
Message:

odin: Update spec to the latest version used before switch to GCC.

This was in the trunk before merging with gcc-kmk.

File:
1 edited

Legend:

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

    r232 r254  
    99%define ver_patch   1
    1010
    11 %define rpm_release 1
     11%define rpm_release 3
    1212
    1313Name:       odin
     
    124124export ODIN_BINDIR_D="$(echo %{odin_bindir} | sed -re 's,/@unixroot,'$UNIXROOT',g' -e 's,/,\\,g')"
    125125%cube {ADDSTRING ";%ODIN_BINDIR_D%" IN "SET PATH=" (FIRST AFTER} %{os2_config_sys} >nul
    126 CFGSYS_CHANGED=y
    127126%endif
    128127if [ -n "$CFGSYS_CHANGED" ]; then
     
    143142mkdir -p "$(echo %{odin_windowsdir} | sed -re 's,/@unixroot,'$UNIXROOT',g')"
    144143(cd "%{odin_systemdir}/"; "%{odin_systemdir}"/odininst.exe)
     144ODIN_SYSTEMDIR_D="$(echo %{odin_systemdir} | sed -re 's,/@unixroot,'$UNIXROOT',g' -e 's,/,\\,g')"
     145rexxtry.cmd 1>nul 2>nul <<EOF
     146call rxfuncadd SysIni, rexxutil, SysIni
     147call SysIni 'USER', 'KLIBC', 'OdinPath', '$ODIN_SYSTEMDIR_D'||'00'x
     148exit
     149EOF
    145150
    146151%postun -n lib%{name}
    147152
    148 CFGSYS_CHANGED=
    149 %if "%{odin_bindir}" != "%{_bindir}"
    150 export ODIN_BINDIR_D="$(echo %{odin_bindir} | sed -re 's,/@unixroot,'$UNIXROOT',g' -e 's,/,\\,g')"
    151 %cube {DELSTRING ";%ODIN_BINDIR_D%" IN "SET PATH=" (FIRST} %{os2_config_sys} >nul
    152 CFGSYS_CHANGED=y
    153 %endif
    154 %if "%{odin_systemdir}" != "%{_libdir}"
    155 export ODIN_SYSTEMDIR_D="$(echo %{odin_systemdir} | sed -re 's,/@unixroot,'$UNIXROOT',g' -e 's,/,\\,g')"
    156 %cube {DELSTRING ";%ODIN_SYSTEMDIR_D%" IN "LIBPATH=" (FIRST} %{os2_config_sys} >nul
    157 CFGSYS_CHANGED=y
    158 %endif
    159 if [ -n "$CFGSYS_CHANGED" ]; then
    160     echo; echo "NOTE:"
    161     echo; echo "The file '%{os2_config_sys}' has been changed. You need to reboot your"
    162     echo "computer in order to activate these changes."
    163     echo
     153if [ "$1" -eq 0 ]; then # (upon removal)
     154    rexxtry.cmd 1>nul 2>nul <<EOF
     155call rxfuncadd SysIni, rexxutil, SysIni
     156call SysIni 'USER', 'KLIBC', 'OdinPath', 'DELETE:'
     157exit
     158EOF
     159
     160    CFGSYS_CHANGED=
     161    %if "%{odin_bindir}" != "%{_bindir}"
     162    export ODIN_BINDIR_D="$(echo %{odin_bindir} | sed -re 's,/@unixroot,'$UNIXROOT',g' -e 's,/,\\,g')"
     163    %cube {DELSTRING ";%ODIN_BINDIR_D%" IN "SET PATH=" (FIRST} %{os2_config_sys} >nul
     164    CFGSYS_CHANGED=y
     165    %endif
     166    %if "%{odin_systemdir}" != "%{_libdir}"
     167    export ODIN_SYSTEMDIR_D="$(echo %{odin_systemdir} | sed -re 's,/@unixroot,'$UNIXROOT',g' -e 's,/,\\,g')"
     168    %cube {DELSTRING ";%ODIN_SYSTEMDIR_D%" IN "LIBPATH=" (FIRST} %{os2_config_sys} >nul
     169    %endif
     170    if [ -n "$CFGSYS_CHANGED" ]; then
     171        echo; echo "NOTE:"
     172        echo; echo "The file '%{os2_config_sys}' has been changed. You need to reboot your"
     173        echo "computer in order to activate these changes."
     174        echo
     175    fi
    164176fi
    165177
     
    270282
    271283%postun win32k
    272 export ODIN_SYSTEMDIR_D="$(echo %{odin_systemdir} | sed -re 's,/@unixroot,'$UNIXROOT',g' -e 's,/,\\,g')"
    273 %cube {DELLINE "DEVICE=%ODIN_SYSTEMDIR_D%\win32k.sys"} %{os2_config_sys} >nul
    274 echo; echo "NOTE:"
    275 echo; echo "The file '%{os2_config_sys}' has been changed. You need to reboot your"
    276 echo "computer in order to activate these changes."
    277 echo
     284if [ "$1" -eq 0 ]; then # (upon removal)
     285    export ODIN_SYSTEMDIR_D="$(echo %{odin_systemdir} | sed -re 's,/@unixroot,'$UNIXROOT',g' -e 's,/,\\,g')"
     286    %cube {DELLINE "DEVICE=%ODIN_SYSTEMDIR_D%\win32k.sys"} %{os2_config_sys} >nul
     287    echo; echo "NOTE:"
     288    echo; echo "The file '%{os2_config_sys}' has been changed. You need to reboot your"
     289    echo "computer in order to activate these changes."
     290    echo
     291fi
    278292
    279293#------------------------------------------------------------------------------
     
    297311
    298312%post doc
     313if [ "$1" -ge 1 ]; then # (upon update)
     314    %wps_object_delete_all -n %{name}-doc
     315fi
    299316%wps_object_create_begin -n %{name}-doc
    300317%{pkg_wps_folder_create}
     
    307324
    308325%postun doc
    309 %wps_object_delete_all -n %{name}-doc
     326if [ "$1" -eq 0 ]; then # (upon removal)
     327    %wps_object_delete_all -n %{name}-doc
     328fi
    310329
    311330#------------------------------------------------------------------------------
     
    341360mkdir -p %{buildroot}%{odin_systemdir}/
    342361cp -dp system32/*.dll %{buildroot}%{odin_systemdir}/
    343 cp -dp system32/*.exe %{buildroot}%{odin_systemdir}/
    344362cp -dp system32/win32k.sys %{buildroot}%{odin_systemdir}/
    345363
    346364mkdir -p %{buildroot}%{odin_bindir}/
    347 cp system32/*.exe %{buildroot}%{odin_bindir}/
     365cp -dp system32/*.exe %{buildroot}%{odin_bindir}/
    348366
    349367# these are internal tools that should not be in PATH
     
    363381%changelog
    364382
     383* Mon Oct 03 2011 Dmitriy Kuminov <coding/dmik.org> - 0.7.1-3
     384- Remove executables from "libodin" (they are provided by "odin-exe-tools").
     385
     386* Sun Oct 02 2011 Dmitriy Kuminov <coding/dmik.org> - 0.7.1-2
     387- Add "KLIBC\OdinPath" to OS2.INI needed for some applications.
     388- Fix unexpected deletion of WPS objects when updating the "odin-doc" package
     389  ("yum reinstall odin-doc" is still requred after updating to this version).
     390
    365391* Fri Sep 30 2011 Dmitriy Kuminov <coding/dmik.org> - 0.7.1-1
    366392- New release 0.7.1. See %{pkg_docdir}/ChangeLog for more information.
Note: See TracChangeset for help on using the changeset viewer.