Changeset 21688 for trunk/tools/install


Ignore:
Timestamp:
Oct 1, 2011, 10:30:02 PM (14 years ago)
Author:
dmik
Message:

Spec for release 0.7.1-2.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/install/odin.spec

    r21685 r21688  
    99%define ver_patch   1
    1010
    11 %define rpm_release 1
     11%define rpm_release 2
    1212
    1313Name:       odin
     
    142142mkdir -p "$(echo %{odin_windowsdir} | sed -re 's,/@unixroot,'$UNIXROOT',g')"
    143143(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
    144150
    145151%postun -n lib%{name}
    146152
    147 CFGSYS_CHANGED=
    148 %if "%{odin_bindir}" != "%{_bindir}"
    149 export ODIN_BINDIR_D="$(echo %{odin_bindir} | sed -re 's,/@unixroot,'$UNIXROOT',g' -e 's,/,\\,g')"
    150 %cube {DELSTRING ";%ODIN_BINDIR_D%" IN "SET PATH=" (FIRST} %{os2_config_sys} >nul
    151 CFGSYS_CHANGED=y
    152 %endif
    153 %if "%{odin_systemdir}" != "%{_libdir}"
    154 export ODIN_SYSTEMDIR_D="$(echo %{odin_systemdir} | sed -re 's,/@unixroot,'$UNIXROOT',g' -e 's,/,\\,g')"
    155 %cube {DELSTRING ";%ODIN_SYSTEMDIR_D%" IN "LIBPATH=" (FIRST} %{os2_config_sys} >nul
    156 %endif
    157 if [ -n "$CFGSYS_CHANGED" ]; then
    158     echo; echo "NOTE:"
    159     echo; echo "The file '%{os2_config_sys}' has been changed. You need to reboot your"
    160     echo "computer in order to activate these changes."
    161     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
    162176fi
    163177
     
    268282
    269283%postun win32k
    270 export ODIN_SYSTEMDIR_D="$(echo %{odin_systemdir} | sed -re 's,/@unixroot,'$UNIXROOT',g' -e 's,/,\\,g')"
    271 %cube {DELLINE "DEVICE=%ODIN_SYSTEMDIR_D%\win32k.sys"} %{os2_config_sys} >nul
    272 echo; echo "NOTE:"
    273 echo; echo "The file '%{os2_config_sys}' has been changed. You need to reboot your"
    274 echo "computer in order to activate these changes."
    275 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
    276292
    277293#------------------------------------------------------------------------------
     
    295311
    296312%post doc
     313if [ "$1" -ge 1 ]; then # (upon update)
     314    %wps_object_delete_all -n %{name}-doc
     315fi
    297316%wps_object_create_begin -n %{name}-doc
    298317%{pkg_wps_folder_create}
     
    305324
    306325%postun doc
    307 %wps_object_delete_all -n %{name}-doc
     326if [ "$1" -eq 0 ]; then # (upon removal)
     327    %wps_object_delete_all -n %{name}-doc
     328fi
    308329
    309330#------------------------------------------------------------------------------
     
    361382%changelog
    362383
     384* Sun Oct 02 2011 Dmitriy Kuminov <coding/dmik.org> - 0.7.1-2
     385- Add "KLIBC\OdinPath" to OS2.INI needed for some applications.
     386- Fix unexpected deletion of WPS objects when updating the "odin-doc" package
     387  ("yum reinstall odin-doc" is still requred after updating to this version).
     388
    363389* Fri Sep 30 2011 Dmitriy Kuminov <coding/dmik.org> - 0.7.1-1
    364390- New release 0.7.1. See %{pkg_docdir}/ChangeLog for more information.
Note: See TracChangeset for help on using the changeset viewer.