Changeset 1210 for spec/trunk/SPECS
- Timestamp:
- Jul 30, 2017, 3:44:13 PM (8 years ago)
- Location:
- spec/trunk/SPECS
- Files:
-
- 1 deleted
- 1 copied
-
odin (deleted)
-
odin.spec (copied) (copied from spec/trunk/SPECS/odin/odin.spec ) (20 diffs)
Legend:
- Unmodified
- Added
- Removed
-
spec/trunk/SPECS/odin.spec
r1208 r1210 1 #2 # http://svn.netlabs.org/odin323 #4 5 1 %define test_mode 0 6 2 7 3 %define ver_major 0 8 %define ver_minor 89 %define ver_patch 94 %define ver_minor 9 5 %define ver_patch 0 10 6 11 7 %define rpm_release 1 … … 19 15 Release: %{rpm_release} 20 16 21 Source: %{name}-%{version}.zip 17 %scm_source svn http://svn.netlabs.org/repos/odin32/tags/%{version} 22145 22 18 23 19 %define descr_brief Odin is a set of libraries that provide a Win32-compatible runtime environment.\ … … 25 21 native OS/2 applications built from Win32 sources using Odin SDK. 26 22 27 %define pkg_docdir %{_docdir}/%{name} 23 %define pkg_docdir %{_docdir}/%{name}-%{version} 28 24 29 25 %define pkg_wps_base ODIN … … 41 37 %define odin_bindir %{_bindir} 42 38 %define odin_systemdir %{odin_libdir} 39 %define odin_sysexedir %{_libdir}/odin 43 40 %define odin_windowsdir %{_var}/lib/odin 44 45 # disable lxlite compression (this causes problems for some DLLs)46 %define __os_install_post %{nil}47 41 48 42 #------------------------------------------------------------------------------ … … 60 54 the main package to exist. 61 55 56 BuildRequires: kbuild 57 BuildRequires: os2tk45-headers os2tk45-rc os2tk45-utils 58 62 59 #------------------------------------------------------------------------------ 63 60 %package -n lib%{name} … … 67 64 Group: System Environment/Libraries 68 65 66 # For os2_dos_path, os2_langdir etc. macros 67 Requires: os2-rpm >= 0-4 68 # For -e in scriptlets 69 Requires: rpm >= 4.9 70 69 71 %description -n lib%{name} 70 72 %{descr_brief} … … 73 75 74 76 %files -n lib%{name} 75 %defattr(-,root,root,-)76 77 %doc %{pkg_docdir}/ 77 78 %exclude %{pkg_docdir}/odinuser.inf … … 80 81 %endif 81 82 %if "%{odin_bindir}" != "%{_bindir}" 82 % {odin_bindir}/83 %e lse83 %dir %{odin_bindir}/ 84 %endif 84 85 %{odin_bindir}/*.exe 85 %endif86 86 %exclude %{odin_bindir}/pe.exe 87 87 %exclude %{odin_bindir}/pec.exe 88 88 %exclude %{odin_bindir}/xx2lx.exe 89 89 %if "%{odin_systemdir}" != "%{odin_libdir}" 90 %{odin_systemdir}/ 91 %else 92 %{odin_systemdir}/* 93 %endif 90 %dir %{odin_systemdir}/ 91 %endif 92 %{odin_systemdir}/*.dll 94 93 %exclude %{odin_systemdir}/capi2032.dll 95 94 %exclude %{odin_systemdir}/secur32.dll 96 95 %exclude %{odin_systemdir}/schannel.dll 96 %dir %{odin_sysexedir}/ 97 %{odin_sysexedir}/*.exe 97 98 %if 0%{?have_win32k} 98 99 %exclude %{odin_systemdir}/win32k.sys 99 %exclude %{odin_sys temdir}/win32kCC.exe100 %exclude %{odin_sys temdir}/kRx.exe100 %exclude %{odin_sysexedir}/win32kCC.exe 101 %exclude %{odin_sysexedir}/kRx.exe 101 102 %endif 102 103 # files/directories generated by odininst.exe removed on uninstall 103 % attr(0755,root,root) %ghost %{odin_systemdir}/Drivers/104 % attr(0755,root,root) %ghost %{odin_systemdir}/Drivers/etc/105 % attr(0644,root,root) %ghost %{odin_systemdir}/ODIN.INI104 %ghost %{odin_systemdir}/Drivers/ 105 %ghost %{odin_systemdir}/Drivers/etc/ 106 %ghost %{odin_systemdir}/ODIN.INI 106 107 # files/directories generated by odininst.exe preserved on uninstall 107 % attr(0755,root,root) %ghost %config %{odin_windowsdir}/108 %ghost %config %{odin_windowsdir}/ 108 109 109 110 %pre -n lib%{name} … … 115 116 %warpin_conflicts_end 116 117 117 %post -n lib%{name} 118 119 ODIN_SYSTEMDIR_D="$(echo %{odin_systemdir} | sed -re 's,/@unixroot,'$UNIXROOT',g' -e 's,/,\\,g')" 120 ODIN_BINDIR_D="$(echo %{odin_bindir} | sed -re 's,/@unixroot,'$UNIXROOT',g' -e 's,/,\\,g')" 121 122 CFGSYS_CHANGED= 118 %post -n lib%{name} -e 119 120 ODIN_SYSTEMDIR_D="%%{os2_expand_dos_vars %{os2_dos_path %{odin_systemdir}}}" 121 ODIN_BINDIR_D="%%{os2_expand_dos_vars %{os2_dos_path %{odin_bindir}}}" 122 123 123 %if "%{odin_systemdir}" != "%{_libdir}" 124 124 export ODIN_SYSTEMDIR_D 125 125 %cube {ADDSTRING ";%ODIN_SYSTEMDIR_D%" IN "LIBPATH=" (FIRST AFTER} %{os2_config_sys} >nul 126 CFGSYS_CHANGED=y127 126 %endif 128 127 %if "%{odin_bindir}" != "%{_bindir}" 129 128 export ODIN_BINDIR_D 130 129 %cube {ADDSTRING ";%ODIN_BINDIR_D%" IN "SET PATH=" (FIRST AFTER} %{os2_config_sys} >nul 131 CFGSYS_CHANGED=y 132 %endif 133 if [ -n "$CFGSYS_CHANGED" ]; then 134 echo; echo "NOTE:" 135 echo; echo "The boot configuration has been changed. You need to reboot your" 136 echo "computer in order to activate these changes." 137 echo 138 fi 139 140 #initialize system directories, registry and INI files 141 ODIN_WINDOWSDIR_D=$(echo "%{odin_windowsdir}" | sed -re 's,/@unixroot,'$UNIXROOT',g' -e 's,/,\\,g') 142 echo \ 143 "[DEVDIRECTORIES] 130 %endif 131 132 # initialize system directories, registry and INI files 133 134 ODIN_WINDOWSDIR_D="%%{os2_expand_dos_vars %{os2_dos_path %{odin_windowsdir}}}" 135 cat > "%{odin_systemdir}/ODIN.INI" <<EOF 136 [DEVDIRECTORIES] 144 137 WINDOWS=$ODIN_WINDOWSDIR_D 145 " \ 146 > "%{odin_systemdir}/ODIN.INI" 147 echo \ 148 "[ODINSYSTEM] 149 PE_EXE=$ODIN_BINDIR_D\\PE.EXE 150 PEC_EXE=$ODIN_BINDIR_D\\PEC.EXE 151 W16ODIN_EXE=$ODIN_BINDIR_D\\W16ODIN.EXE 152 " \ 153 >> "%{odin_systemdir}/ODIN.INI" 154 # mkdir -p fails on /@unixroot, replace it with the real value 155 mkdir -p "$(echo %{odin_windowsdir} | sed -re 's,/@unixroot,'$UNIXROOT',g')" 156 (cd "%{odin_systemdir}/"; "%{odin_systemdir}"/odininst.exe) 157 ODIN_SYSTEMDIR_D="$(echo %{odin_systemdir} | sed -re 's,/@unixroot,'$UNIXROOT',g' -e 's,/,\\,g')" 138 139 [ODINSYSTEM] 140 PE_EXE=$ODIN_BINDIR_D\PE.EXE 141 PEC_EXE=$ODIN_BINDIR_D\PEC.EXE 142 W16ODIN_EXE=$ODIN_BINDIR_D\W16ODIN.EXE 143 EOF 144 145 %%{__mkdir_p} %{odin_windowsdir} 146 (cd "%{odin_systemdir}/"; "%{odin_sysexedir}"/odininst.exe) 147 158 148 rexxtry.cmd 1>nul 2>nul <<EOF 159 149 call rxfuncadd SysIni, rexxutil, SysIni … … 162 152 EOF 163 153 164 %postun -n lib%{name} 154 %postun -n lib%{name} -e 165 155 166 156 if [ "$1" -eq 0 ]; then # (upon removal) 167 rexxtry.cmd 1>nul 2>nul <<EOF157 rexxtry.cmd 1>nul 2>nul <<EOF 168 158 call rxfuncadd SysIni, rexxutil, SysIni 169 159 call SysIni 'USER', 'KLIBC', 'OdinPath', 'DELETE:' … … 171 161 EOF 172 162 173 CFGSYS_CHANGED= 174 %if "%{odin_bindir}" != "%{_bindir}" 175 export ODIN_BINDIR_D="$(echo %{odin_bindir} | sed -re 's,/@unixroot,'$UNIXROOT',g' -e 's,/,\\,g')" 176 %cube {DELSTRING ";%ODIN_BINDIR_D%" IN "SET PATH=" (FIRST} %{os2_config_sys} >nul 177 CFGSYS_CHANGED=y 178 %endif 179 %if "%{odin_systemdir}" != "%{_libdir}" 180 export ODIN_SYSTEMDIR_D="$(echo %{odin_systemdir} | sed -re 's,/@unixroot,'$UNIXROOT',g' -e 's,/,\\,g')" 181 %cube {DELSTRING ";%ODIN_SYSTEMDIR_D%" IN "LIBPATH=" (FIRST} %{os2_config_sys} >nul 182 %endif 183 if [ -n "$CFGSYS_CHANGED" ]; then 184 echo; echo "NOTE:" 185 echo; echo "The boot configuration has been changed. You need to reboot your" 186 echo "computer in order to activate these changes." 187 echo 188 fi 163 %if "%{odin_bindir}" != "%{_bindir}" 164 export ODIN_BINDIR_D="%%{os2_expand_dos_vars %{os2_dos_path %{odin_bindir}}}" 165 %cube {DELSTRING ";%ODIN_BINDIR_D%" IN "SET PATH=" (FIRST} %{os2_config_sys} >nul 166 %endif 167 %if "%{odin_systemdir}" != "%{_libdir}" 168 export ODIN_SYSTEMDIR_D="%%{os2_expand_dos_vars %{os2_dos_path %{odin_systemdir}}}" 169 %cube {DELSTRING ";%ODIN_SYSTEMDIR_D%" IN "LIBPATH=" (FIRST} %{os2_config_sys} >nul 170 %endif 189 171 fi 190 172 … … 210 192 211 193 %files -n lib%{name}-capi20 212 %defattr(-,root,root,-)213 194 %{odin_systemdir}/capi2032.dll 214 195 … … 234 215 235 216 %files -n lib%{name}-security 236 %defattr(-,root,root,-)237 217 %{odin_systemdir}/secur32.dll 218 %{odin_systemdir}/schannel.dll 238 219 239 220 #------------------------------------------------------------------------------ … … 256 237 257 238 %files exe-tools 258 %defattr(-,root,root,-)259 239 %{odin_bindir}/pe.exe 260 240 %{odin_bindir}/pec.exe … … 283 263 284 264 %files win32k 285 %defattr(-,root,root,-)286 265 %{odin_systemdir}/win32k.sys 287 %{odin_sys temdir}/win32kCC.exe288 %{odin_sys temdir}/kRx.exe289 290 %post win32k 291 export ODIN_SYSTEMDIR_D=" $(echo %{odin_systemdir} | sed -re 's,/@unixroot,'$UNIXROOT',g' -e 's,/,\\,g')"266 %{odin_sysexedir}/win32kCC.exe 267 %{odin_sysexedir}/kRx.exe 268 269 %post win32k -e 270 export ODIN_SYSTEMDIR_D="%%{os2_expand_dos_vars %{os2_dos_path %{odin_systemdir}}}" 292 271 %cube {ADDLINE "DEVICE=%ODIN_SYSTEMDIR_D%\win32k.sys" (AFTER "DEVICE="} %{os2_config_sys} >nul 293 echo; echo "NOTE:" 294 echo; echo "The boot configuration has been changed. You need to reboot your" 295 echo "computer in order to activate these changes." 296 echo 297 298 %postun win32k 272 273 %postun win32k -e 299 274 if [ "$1" -eq 0 ]; then # (upon removal) 300 export ODIN_SYSTEMDIR_D="$(echo %{odin_systemdir} | sed -re 's,/@unixroot,'$UNIXROOT',g' -e 's,/,\\,g')" 301 %cube {DELLINE "DEVICE=%ODIN_SYSTEMDIR_D%\win32k.sys"} %{os2_config_sys} >nul 302 echo; echo "NOTE:" 303 echo; echo "The boot configuration has been changed. You need to reboot your" 304 echo "computer in order to activate these changes." 305 echo 275 export ODIN_SYSTEMDIR_D="%%{os2_expand_dos_vars %{os2_dos_path %{odin_systemdir}}}" 276 %cube {DELLINE "DEVICE=%ODIN_SYSTEMDIR_D%\win32k.sys"} %{os2_config_sys} >nul 306 277 fi 307 278 … … 329 300 %post doc 330 301 if [ "$1" -ge 1 ]; then # (upon update) 331 %wps_object_delete_all -n %{name}-doc302 %wps_object_delete_all -n %{name}-doc 332 303 fi 333 304 %wps_object_create_begin -n %{name}-doc … … 342 313 %postun doc 343 314 if [ "$1" -eq 0 ]; then # (upon removal) 344 %wps_object_delete_all -n %{name}-doc315 %wps_object_delete_all -n %{name}-doc 345 316 fi 346 317 347 318 #------------------------------------------------------------------------------ 319 # Note: Odin exception handler wants .sym and won't read .dbg files so we supply 320 # the list of files for the debug package in debugfiles.list ourselves (below). 321 %define _strip_opts --no-debuginfo 322 %debug_package 323 #------------------------------------------------------------------------------ 324 325 #------------------------------------------------------------------------------ 348 326 %prep 349 327 #------------------------------------------------------------------------------ 350 328 351 %if 0%{?test_mode} 352 %setup -TD 353 %else 354 # @todo move the zip to the right place! 355 %setup -q 356 %endif 329 %scm_setup 357 330 358 331 #------------------------------------------------------------------------------ … … 360 333 #------------------------------------------------------------------------------ 361 334 335 %define kmk_env \\\ 336 CFLAGS="%{optflags}" \\\ 337 CXXFLAGS="%{optflags}" \\\ 338 PATH_INS=%{buildroot}/ \\\ 339 INST_BIN=%{odin_bindir}/ \\\ 340 INST_LIB=%{odin_libdir}/ \\\ 341 INST_DLL=%{odin_systemdir}/ \\\ 342 INST_DEBUG=./ 343 344 kmk %{?_smp_mflags} %{kmk_env} 345 362 346 #------------------------------------------------------------------------------ 363 347 %install 364 348 #------------------------------------------------------------------------------ 365 349 366 rm -rf %{buildroot} 367 368 mkdir -p %{buildroot}%{pkg_docdir} 369 cp *.txt %{buildroot}%{pkg_docdir}/ 370 cp LICENSE.TXT %{buildroot}%{pkg_docdir}/ 371 cp ChangeLog %{buildroot}%{pkg_docdir}/ 372 cp WGSS50.lic %{buildroot}%{pkg_docdir}/ 373 cp odinuser.inf %{buildroot}%{pkg_docdir}/ 374 375 mkdir -p %{buildroot}%{odin_windowsdir}/ 376 377 mkdir -p %{buildroot}%{odin_systemdir}/ 378 cp -dp system32/*.dll %{buildroot}%{odin_systemdir}/ 350 %{__rm} -rf %{buildroot} 351 352 kmk install %{kmk_env} 353 354 %{__mkdir_p} %{buildroot}%{pkg_docdir} 355 %{__cp} -a \ 356 doc/Logging.txt \ 357 doc/Odin.ini.txt \ 358 doc/Readme.txt \ 359 doc/ReportingBugs.txt \ 360 doc/odinuser.inf \ 361 LICENSE.TXT \ 362 ChangeLog \ 363 WGSS50.lic \ 364 %{buildroot}%{pkg_docdir}/ 365 366 %{__mkdir_p} %{buildroot}%{odin_windowsdir}/ 367 368 %{__mkdir_p} %{buildroot}%{odin_sysexedir}/ 369 370 # these are internal tools that should not be in PATH 371 %{__mv} %{buildroot}%{odin_bindir}/odininst.* %{buildroot}%{odin_sysexedir}/ 379 372 %if 0%{?have_win32k} 380 cp -dp system32/win32k.sys %{buildroot}%{odin_systemdir}/ 381 %endif 382 383 mkdir -p %{buildroot}%{odin_bindir}/ 384 cp -dp system32/*.exe %{buildroot}%{odin_bindir}/ 385 386 # these are internal tools that should not be in PATH 387 mv %{buildroot}%{odin_bindir}/odininst.exe %{buildroot}%{odin_systemdir}/ 388 %if 0%{?have_win32k} 389 mv %{buildroot}%{odin_bindir}/win32kCC.exe %{buildroot}%{odin_systemdir}/ 390 mv %{buildroot}%{odin_bindir}/kRx.exe %{buildroot}%{odin_systemdir}/ 391 %endif 373 %{__mv} %{buildroot}%{odin_bindir}/win32kCC.* %{buildroot}%{odin_sysexedir}/ 374 %{__mv} %{buildroot}%{odin_bindir}/kRx.* %{buildroot}%{odin_sysexedir}/ 375 %endif 376 377 # wgss 378 %{__cp} -a bin/wgss50.* %{buildroot}%{odin_systemdir}/ 379 380 # we don't need static libraries 381 %{__rm} %{buildroot}%{odin_libdir}/*.lib 382 383 # list all .sym files for debug_package ourselves (see note above) 384 %{__rm} -f debugfiles.list 385 for f in `find %{buildroot} -name *.sym` ; do 386 echo ${f#%{buildroot}} >> debugfiles.list 387 done 392 388 393 389 #------------------------------------------------------------------------------ … … 396 392 397 393 %if !0%{?test_mode} 398 rm-rf %{buildroot}394 %{__rm} -rf %{buildroot} 399 395 %endif 400 396 401 397 #------------------------------------------------------------------------------ 402 398 %changelog 399 * Sun Jul 30 2017 Dmitriy Kuminov <coding@dmik.org> - 0.9.0-1 400 - New release 0.9.0. See %{pkg_docdir}/ChangeLog for more information. 401 - Update SPEC to use latest OS/2 RPM environment guidelines (scm_source etc.) 402 which includes building Odin from sources rather than using zipped binaries 403 when building RPMs and also makes RPM a primary distribution format for Odin. 404 - Add schannel.dll to odin-security sub-package. 403 405 404 406 * Sun Feb 17 2013 Dmitriy Kuminov <coding/dmik.org> - 0.8.9-1 405 - <List changes here>407 - New release 0.8.9. See %{pkg_docdir}/ChangeLog for more information. 406 408 407 409 * Mon Dec 31 2012 Dmitriy Kuminov <coding/dmik.org> - 0.8.8-1 … … 420 422 - New release 0.8.4. See %{pkg_docdir}/ChangeLog for more information. 421 423 422 * MonFeb 07 2012 Dmitriy Kuminov <coding/dmik.org> - 0.8.3-1424 * Tue Feb 07 2012 Dmitriy Kuminov <coding/dmik.org> - 0.8.3-1 423 425 - New release 0.8.3. See %{pkg_docdir}/ChangeLog for more information. 424 426
Note:
See TracChangeset
for help on using the changeset viewer.
