Changeset 21688 for trunk/tools/install
- Timestamp:
- Oct 1, 2011, 10:30:02 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/install/odin.spec
r21685 r21688 9 9 %define ver_patch 1 10 10 11 %define rpm_release 111 %define rpm_release 2 12 12 13 13 Name: odin … … 142 142 mkdir -p "$(echo %{odin_windowsdir} | sed -re 's,/@unixroot,'$UNIXROOT',g')" 143 143 (cd "%{odin_systemdir}/"; "%{odin_systemdir}"/odininst.exe) 144 ODIN_SYSTEMDIR_D="$(echo %{odin_systemdir} | sed -re 's,/@unixroot,'$UNIXROOT',g' -e 's,/,\\,g')" 145 rexxtry.cmd 1>nul 2>nul <<EOF 146 call rxfuncadd SysIni, rexxutil, SysIni 147 call SysIni 'USER', 'KLIBC', 'OdinPath', '$ODIN_SYSTEMDIR_D'||'00'x 148 exit 149 EOF 144 150 145 151 %postun -n lib%{name} 146 152 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 153 if [ "$1" -eq 0 ]; then # (upon removal) 154 rexxtry.cmd 1>nul 2>nul <<EOF 155 call rxfuncadd SysIni, rexxutil, SysIni 156 call SysIni 'USER', 'KLIBC', 'OdinPath', 'DELETE:' 157 exit 158 EOF 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 162 176 fi 163 177 … … 268 282 269 283 %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 284 if [ "$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 291 fi 276 292 277 293 #------------------------------------------------------------------------------ … … 295 311 296 312 %post doc 313 if [ "$1" -ge 1 ]; then # (upon update) 314 %wps_object_delete_all -n %{name}-doc 315 fi 297 316 %wps_object_create_begin -n %{name}-doc 298 317 %{pkg_wps_folder_create} … … 305 324 306 325 %postun doc 307 %wps_object_delete_all -n %{name}-doc 326 if [ "$1" -eq 0 ]; then # (upon removal) 327 %wps_object_delete_all -n %{name}-doc 328 fi 308 329 309 330 #------------------------------------------------------------------------------ … … 361 382 %changelog 362 383 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 363 389 * Fri Sep 30 2011 Dmitriy Kuminov <coding/dmik.org> - 0.7.1-1 364 390 - New release 0.7.1. See %{pkg_docdir}/ChangeLog for more information.
Note:
See TracChangeset
for help on using the changeset viewer.