source: spec/trunk/SPECS/SDL.spec@ 812

Last change on this file since 812 was 741, checked in by valerius, 10 years ago

spec: SDL: Made in accordance with Fedora specs.

File size: 24.3 KB
Line 
1%define svn_url http://svn.netlabs.org/repos/ports/libsdl/trunk
2%define svn_rev 1537
3
4Name: SDL
5Version: 1.2.15
6Release: 3%{?dist}
7Summary: A cross-platform multimedia library
8Group: System Environment/Libraries
9URL: http://www.libsdl.org/
10# The license of the file src/video/fbcon/riva_mmio.h is bad, but the contents
11# of the file has been relicensed to MIT in 2008 by Nvidia for the
12# xf86_video-nv driver, therefore it can be considered ok.
13License: LGPLv2+
14# Source: http://www.libsdl.org/release/%%{name}-%%{version}.tar.gz
15# To create the repackaged archive use ./repackage.sh %%{version}
16Source0: %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip
17Patch0: SDL-os2-2.patch
18# Rejected by upstream as sdl1155, rh480065
19#Patch0: SDL-1.2.10-GrabNotViewable.patch
20# Proposed to upstream as sdl1680, rh891973
21#Patch1: SDL-1.2.15-x11-Bypass-SetGammaRamp-when-changing-gamma.patch
22# Proposded to upstream as sdl1769
23#Patch2: SDL-1.2.15-const_XData32.patch
24# sdl-config(1) manual from Debian, rh948864
25#Patch3: SDL-1.2.15-add_sdl_config_man.patch
26# Upstream fix for sdl1486, rh990677
27#Patch4: SDL-1.2.15-ignore_insane_joystick_axis.patch
28# Do not use backing store by default, sdl2383, rh1073057, rejected by
29# upstream
30#Patch5: SDL-1.2.15-no-default-backing-store.patch
31# Fix processing keyboard events if SDL_EnableUNICODE() is enabled, sdl2325,
32# rh1126136, in upstream after 1.2.15
33#Patch6: SDL-1.2.15-SDL_EnableUNICODE_drops_keyboard_events.patch
34
35#BuildRequires: alsa-lib-devel
36#%if %{with arts}
37#BuildRequires: arts-devel
38#%endif
39#BuildRequires: audiofile-devel
40BuildRequires: coreutils
41#%if %{with esound}
42#BuildRequires: esound-devel
43#%endif
44BuildRequires: gcc
45BuildRequires: libc-devel
46#BuildRequires: mesa-libGL-devel
47#BuildRequires: mesa-libGLU-devel
48#BuildRequires: libXext-devel
49#BuildRequires: libX11-devel
50#BuildRequires: libXrandr-devel
51#BuildRequires: libXrender-devel
52BuildRequires: make
53#%if %{with nas}
54#BuildRequires: nas-devel
55#%endif
56#%ifarch %{ix86}
57BuildRequires: nasm
58#%endif
59#BuildRequires: pulseaudio-libs-devel
60#%if %{with esound}
61#BuildRequires: sed
62#%endif
63# Autotools
64BuildRequires: automake
65BuildRequires: autoconf
66BuildRequires: libtool
67
68%description
69Simple DirectMedia Layer (SDL) is a cross-platform multimedia library designed
70to provide fast access to the graphics frame buffer and audio device.
71
72%package devel
73Summary: Files needed to develop Simple DirectMedia Layer applications
74Group: Development/Libraries
75Requires: %{name} = %{version}-%{release}
76#Requires: alsa-lib-devel
77#Requires: mesa-libGL-devel
78#Requires: mesa-libGLU-devel
79#Requires: libX11-devel
80#Requires: libXext-devel
81#Requires: libXrandr-devel
82#Requires: libXrender-devel
83
84%description devel
85Simple DirectMedia Layer (SDL) is a cross-platform multimedia library designed
86to provide fast access to the graphics frame buffer and audio device. This
87package provides the libraries, include files, and other resources needed for
88developing SDL applications.
89
90#%package static
91#Summary: Files needed to develop static Simple DirectMedia Layer applications
92#Group: Development/Libraries
93#Requires: SDL-devel = %{version}-%{release}
94
95#%description static
96#Simple DirectMedia Layer (SDL) is a cross-platform multimedia library designed
97#to provide fast access to the graphics frame buffer and audio device. This
98#package provides the static libraries needed for developing static SDL
99#applications.
100
101%debug_package
102
103%prep
104%if %{?svn_rev:%(sh -c 'if test -f "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip" ; then echo 1 ; else echo 0 ; fi')}%{!?svn_rev):0}
105%setup -q
106%else
107%setup -q -n "%{name}-%{version}" -Tc
108svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force
109rm -f "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip"
110(cd .. && zip -SrX9 "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip" "%{name}-%{version}")
111%endif
112
113#%patch0 -p1
114
115libtoolize -fci
116./autogen.sh
117
118%build
119export CFLAGS="-g -DBUILD_SDL -DUSE_ASM_MIXER_VC -DICONV_INBUF_NONCONST -DUSE_DOSSETPRIORITY \
120 -DSDL_AUDIO_DRIVER_DARTALT -DUSE_OS2_TOOLKIT_HEADERS -idirafter /@unixroot/usr/include/os2tk45" \
121 CXXFLAGS="-g -DBUILD_SDL -DUSE_ASM_MIXER_VC -DICONV_INBUF_NONCONST -DUSE_DOSSETPRIORITY \
122 -DSDL_AUDIO_DRIVER_DARTALT -DUSE_OS2_TOOLKIT_HEADERS -idirafter /@unixroot/usr/include/os2tk45" \
123 LDFLAGS="-Zomf -Zhigh-mem -g -lmmpm2"
124
125%configure \
126 --enable-audio \
127 --enable-video \
128 --enable-events \
129 --enable-joystick \
130 --enable-cdrom \
131 --enable-threads \
132 --enable-timers \
133 --enable-file \
134 --enable-loadso \
135 --enable-cpuinfo \
136 --enable-assembly \
137 --disable-static \
138 --enable-shared
139
140%{__make} %{?_smp_mflags}
141
142
143%install
144rm -rf $RPM_BUILD_ROOT
145%makeinstall
146
147# create OMF libs
148emximp -o %{buildroot}%{_libdir}/SDL_dll.lib %{buildroot}%{_libdir}/SDL120.dll
149emximp -o %{buildroot}%{_libdir}/SDL120_dll.lib %{buildroot}%{_libdir}/SDL120.dll
150emximp -o %{buildroot}%{_libdir}/SDL_dll.a %{buildroot}%{_libdir}/SDL120.dll
151emximp -o %{buildroot}%{_libdir}/SDL120_dll.a %{buildroot}%{_libdir}/SDL120.dll
152rm -rf %{buildroot}%{_libdir}/SDLmain.a
153
154# create forwarder
155cat << EOF >%{buildroot}%{_libdir}/SDL12.def
156LIBRARY SDL12
157DESCRIPTION '@#libsdl org:1.2.15#@##1## 2016-03-16 dtp::::::@@Simple DirectMedia Layer (alternative port) forwarder'
158DATA MULTIPLE NONSHARED
159IMPORTS
160 SDL_InitSubSystem=SDL120.SDL_InitSubSystem
161 SDL_Init=SDL120.SDL_Init
162 SDL_QuitSubSystem=SDL120.SDL_QuitSubSystem
163 SDL_WasInit=SDL120.SDL_WasInit
164 SDL_Quit=SDL120.SDL_Quit
165 SDL_Linked_Version=SDL120.SDL_Linked_Version
166 SDL_SetError=SDL120.SDL_SetError
167 SDL_GetError=SDL120.SDL_GetError
168 SDL_ClearError=SDL120.SDL_ClearError
169 SDL_Error=SDL120.SDL_Error
170; SDL_revcpy=SDL120.SDL_revcpy
171; SDL_strtoul=SDL120.SDL_strtoul
172; SDL_strtoull=SDL120.SDL_strtoull
173; SDL_strncasecmp=SDL120.SDL_strncasecmp
174 SDL_ConvertAudio=SDL120.SDL_ConvertAudio
175 SDL_BuildAudioCVT=SDL120.SDL_BuildAudioCVT
176 SDL_MixAudio=SDL120.SDL_MixAudio
177 SDL_LoadWAV_RW=SDL120.SDL_LoadWAV_RW
178 SDL_FreeWAV=SDL120.SDL_FreeWAV
179 SDL_OpenAudio=SDL120.SDL_OpenAudio
180 SDL_AudioQuit=SDL120.SDL_AudioQuit
181 SDL_AudioInit=SDL120.SDL_AudioInit
182 SDL_CloseAudio=SDL120.SDL_CloseAudio
183 SDL_AudioDriverName=SDL120.SDL_AudioDriverName
184 SDL_GetAudioStatus=SDL120.SDL_GetAudioStatus
185 SDL_PauseAudio=SDL120.SDL_PauseAudio
186 SDL_LockAudio=SDL120.SDL_LockAudio
187 SDL_UnlockAudio=SDL120.SDL_UnlockAudio
188 SDL_HasRDTSC=SDL120.SDL_HasRDTSC
189 SDL_HasMMX=SDL120.SDL_HasMMX
190 SDL_HasMMXExt=SDL120.SDL_HasMMXExt
191 SDL_Has3DNow=SDL120.SDL_Has3DNow
192 SDL_Has3DNowExt=SDL120.SDL_Has3DNowExt
193 SDL_HasSSE=SDL120.SDL_HasSSE
194 SDL_HasSSE2=SDL120.SDL_HasSSE2
195 SDL_HasAltiVec=SDL120.SDL_HasAltiVec
196 SDL_GetAppState=SDL120.SDL_GetAppState
197 SDL_PeepEvents=SDL120.SDL_PeepEvents
198 SDL_PumpEvents=SDL120.SDL_PumpEvents
199 SDL_PollEvent=SDL120.SDL_PollEvent
200 SDL_WaitEvent=SDL120.SDL_WaitEvent
201 SDL_PushEvent=SDL120.SDL_PushEvent
202 SDL_SetEventFilter=SDL120.SDL_SetEventFilter
203 SDL_GetEventFilter=SDL120.SDL_GetEventFilter
204 SDL_EventState=SDL120.SDL_EventState
205 SDL_EnableUNICODE=SDL120.SDL_EnableUNICODE
206 SDL_GetKeyState=SDL120.SDL_GetKeyState
207 SDL_GetModState=SDL120.SDL_GetModState
208 SDL_SetModState=SDL120.SDL_SetModState
209 SDL_GetKeyName=SDL120.SDL_GetKeyName
210 SDL_EnableKeyRepeat=SDL120.SDL_EnableKeyRepeat
211 SDL_GetKeyRepeat=SDL120.SDL_GetKeyRepeat
212 SDL_GetMouseState=SDL120.SDL_GetMouseState
213 SDL_GetRelativeMouseState=SDL120.SDL_GetRelativeMouseState
214 SDL_RWFromFile=SDL120.SDL_RWFromFile
215 SDL_RWFromFP=SDL120.SDL_RWFromFP
216 SDL_RWFromMem=SDL120.SDL_RWFromMem
217 SDL_RWFromConstMem=SDL120.SDL_RWFromConstMem
218 SDL_AllocRW=SDL120.SDL_AllocRW
219 SDL_FreeRW=SDL120.SDL_FreeRW
220 SDL_ReadLE16=SDL120.SDL_ReadLE16
221 SDL_ReadBE16=SDL120.SDL_ReadBE16
222 SDL_ReadLE32=SDL120.SDL_ReadLE32
223 SDL_ReadBE32=SDL120.SDL_ReadBE32
224 SDL_ReadLE64=SDL120.SDL_ReadLE64
225 SDL_ReadBE64=SDL120.SDL_ReadBE64
226 SDL_WriteLE16=SDL120.SDL_WriteLE16
227 SDL_WriteBE16=SDL120.SDL_WriteBE16
228 SDL_WriteLE32=SDL120.SDL_WriteLE32
229 SDL_WriteBE32=SDL120.SDL_WriteBE32
230 SDL_WriteLE64=SDL120.SDL_WriteLE64
231 SDL_WriteBE64=SDL120.SDL_WriteBE64
232 SDL_NumJoysticks=SDL120.SDL_NumJoysticks
233 SDL_JoystickName=SDL120.SDL_JoystickName
234 SDL_JoystickOpen=SDL120.SDL_JoystickOpen
235 SDL_JoystickOpened=SDL120.SDL_JoystickOpened
236 SDL_JoystickIndex=SDL120.SDL_JoystickIndex
237 SDL_JoystickNumAxes=SDL120.SDL_JoystickNumAxes
238 SDL_JoystickNumHats=SDL120.SDL_JoystickNumHats
239 SDL_JoystickNumBalls=SDL120.SDL_JoystickNumBalls
240 SDL_JoystickNumButtons=SDL120.SDL_JoystickNumButtons
241 SDL_JoystickGetAxis=SDL120.SDL_JoystickGetAxis
242 SDL_JoystickGetHat=SDL120.SDL_JoystickGetHat
243 SDL_JoystickGetBall=SDL120.SDL_JoystickGetBall
244 SDL_JoystickGetButton=SDL120.SDL_JoystickGetButton
245 SDL_JoystickClose=SDL120.SDL_JoystickClose
246 SDL_JoystickUpdate=SDL120.SDL_JoystickUpdate
247 SDL_JoystickEventState=SDL120.SDL_JoystickEventState
248 SDL_LoadObject=SDL120.SDL_LoadObject
249 SDL_LoadFunction=SDL120.SDL_LoadFunction
250 SDL_UnloadObject=SDL120.SDL_UnloadObject
251 SDL_CreateThread=SDL120.SDL_CreateThread
252 SDL_WaitThread=SDL120.SDL_WaitThread
253 SDL_GetThreadID=SDL120.SDL_GetThreadID
254 SDL_KillThread=SDL120.SDL_KillThread
255 SDL_CreateMutex=SDL120.SDL_CreateMutex
256 SDL_DestroyMutex=SDL120.SDL_DestroyMutex
257 SDL_mutexP=SDL120.SDL_mutexP
258 SDL_mutexV=SDL120.SDL_mutexV
259 SDL_CreateSemaphore=SDL120.SDL_CreateSemaphore
260 SDL_DestroySemaphore=SDL120.SDL_DestroySemaphore
261 SDL_SemWaitTimeout=SDL120.SDL_SemWaitTimeout
262 SDL_SemTryWait=SDL120.SDL_SemTryWait
263 SDL_SemWait=SDL120.SDL_SemWait
264 SDL_SemValue=SDL120.SDL_SemValue
265 SDL_SemPost=SDL120.SDL_SemPost
266 SDL_ThreadID=SDL120.SDL_ThreadID
267 SDL_CreateCond=SDL120.SDL_CreateCond
268 SDL_DestroyCond=SDL120.SDL_DestroyCond
269 SDL_CondSignal=SDL120.SDL_CondSignal
270 SDL_CondBroadcast=SDL120.SDL_CondBroadcast
271 SDL_CondWaitTimeout=SDL120.SDL_CondWaitTimeout
272 SDL_CondWait=SDL120.SDL_CondWait
273 SDL_AddTimer=SDL120.SDL_AddTimer
274 SDL_RemoveTimer=SDL120.SDL_RemoveTimer
275 SDL_SetTimer=SDL120.SDL_SetTimer
276 SDL_GetTicks=SDL120.SDL_GetTicks
277 SDL_Delay=SDL120.SDL_Delay
278 SDL_LoadBMP_RW=SDL120.SDL_LoadBMP_RW
279 SDL_SaveBMP_RW=SDL120.SDL_SaveBMP_RW
280 SDL_CreateCursor=SDL120.SDL_CreateCursor
281 SDL_SetCursor=SDL120.SDL_SetCursor
282 SDL_GetCursor=SDL120.SDL_GetCursor
283 SDL_FreeCursor=SDL120.SDL_FreeCursor
284 SDL_ShowCursor=SDL120.SDL_ShowCursor
285 SDL_WarpMouse=SDL120.SDL_WarpMouse
286 SDL_SetGamma=SDL120.SDL_SetGamma
287 SDL_SetGammaRamp=SDL120.SDL_SetGammaRamp
288 SDL_GetGammaRamp=SDL120.SDL_GetGammaRamp
289 SDL_MapRGB=SDL120.SDL_MapRGB
290 SDL_MapRGBA=SDL120.SDL_MapRGBA
291 SDL_GetRGBA=SDL120.SDL_GetRGBA
292 SDL_GetRGB=SDL120.SDL_GetRGB
293 SDL_SoftStretch=SDL120.SDL_SoftStretch
294 SDL_CreateRGBSurface=SDL120.SDL_CreateRGBSurface
295 SDL_CreateRGBSurfaceFrom=SDL120.SDL_CreateRGBSurfaceFrom
296 SDL_SetColorKey=SDL120.SDL_SetColorKey
297 SDL_SetAlpha=SDL120.SDL_SetAlpha
298 SDL_SetClipRect=SDL120.SDL_SetClipRect
299 SDL_GetClipRect=SDL120.SDL_GetClipRect
300 SDL_LowerBlit=SDL120.SDL_LowerBlit
301 SDL_UpperBlit=SDL120.SDL_UpperBlit
302 SDL_FillRect=SDL120.SDL_FillRect
303 SDL_LockSurface=SDL120.SDL_LockSurface
304 SDL_UnlockSurface=SDL120.SDL_UnlockSurface
305 SDL_ConvertSurface=SDL120.SDL_ConvertSurface
306 SDL_FreeSurface=SDL120.SDL_FreeSurface
307 SDL_VideoInit=SDL120.SDL_VideoInit
308 SDL_VideoDriverName=SDL120.SDL_VideoDriverName
309 SDL_GetVideoSurface=SDL120.SDL_GetVideoSurface
310 SDL_GetVideoInfo=SDL120.SDL_GetVideoInfo
311 SDL_ListModes=SDL120.SDL_ListModes
312 SDL_VideoModeOK=SDL120.SDL_VideoModeOK
313 SDL_SetVideoMode=SDL120.SDL_SetVideoMode
314 SDL_DisplayFormat=SDL120.SDL_DisplayFormat
315 SDL_DisplayFormatAlpha=SDL120.SDL_DisplayFormatAlpha
316 SDL_UpdateRect=SDL120.SDL_UpdateRect
317 SDL_UpdateRects=SDL120.SDL_UpdateRects
318 SDL_Flip=SDL120.SDL_Flip
319 SDL_SetPalette=SDL120.SDL_SetPalette
320 SDL_SetColors=SDL120.SDL_SetColors
321 SDL_VideoQuit=SDL120.SDL_VideoQuit
322 SDL_GL_LoadLibrary=SDL120.SDL_GL_LoadLibrary
323 SDL_GL_GetProcAddress=SDL120.SDL_GL_GetProcAddress
324 SDL_GL_SetAttribute=SDL120.SDL_GL_SetAttribute
325 SDL_GL_GetAttribute=SDL120.SDL_GL_GetAttribute
326 SDL_GL_SwapBuffers=SDL120.SDL_GL_SwapBuffers
327 SDL_GL_UpdateRects=SDL120.SDL_GL_UpdateRects
328 SDL_GL_Lock=SDL120.SDL_GL_Lock
329 SDL_GL_Unlock=SDL120.SDL_GL_Unlock
330 SDL_WM_SetCaption=SDL120.SDL_WM_SetCaption
331 SDL_WM_GetCaption=SDL120.SDL_WM_GetCaption
332 SDL_WM_SetIcon=SDL120.SDL_WM_SetIcon
333 SDL_WM_GrabInput=SDL120.SDL_WM_GrabInput
334 SDL_WM_IconifyWindow=SDL120.SDL_WM_IconifyWindow
335 SDL_WM_ToggleFullScreen=SDL120.SDL_WM_ToggleFullScreen
336 SDL_GetWMInfo=SDL120.SDL_GetWMInfo
337 SDL_CreateYUVOverlay=SDL120.SDL_CreateYUVOverlay
338 SDL_LockYUVOverlay=SDL120.SDL_LockYUVOverlay
339 SDL_UnlockYUVOverlay=SDL120.SDL_UnlockYUVOverlay
340 SDL_DisplayYUVOverlay=SDL120.SDL_DisplayYUVOverlay
341 SDL_FreeYUVOverlay=SDL120.SDL_FreeYUVOverlay
342 SDL_CDNumDrives=SDL120.SDL_CDNumDrives
343 SDL_CDName=SDL120.SDL_CDName
344 SDL_CDOpen=SDL120.SDL_CDOpen
345 SDL_CDStatus=SDL120.SDL_CDStatus
346 SDL_CDPlayTracks=SDL120.SDL_CDPlayTracks
347 SDL_CDPlay=SDL120.SDL_CDPlay
348 SDL_CDPause=SDL120.SDL_CDPause
349 SDL_CDResume=SDL120.SDL_CDResume
350 SDL_CDStop=SDL120.SDL_CDStop
351 SDL_CDEject=SDL120.SDL_CDEject
352 SDL_CDClose=SDL120.SDL_CDClose
353EXPORTS
354 SDL_InitSubSystem @1
355 SDL_Init @2
356 SDL_QuitSubSystem @3
357 SDL_WasInit @4
358 SDL_Quit @5
359 SDL_Linked_Version @6
360 SDL_SetError @7
361 SDL_GetError @8
362 SDL_ClearError @9
363 SDL_Error @10
364 SDL_revcpy @11
365 SDL_strtoul @12
366 SDL_strtoull @13
367 SDL_strncasecmp @14
368 SDL_ConvertAudio @15
369 SDL_BuildAudioCVT @16
370 SDL_MixAudio @17
371 SDL_LoadWAV_RW @18
372 SDL_FreeWAV @19
373 SDL_OpenAudio @20
374 SDL_AudioQuit @21
375 SDL_AudioInit @22
376 SDL_CloseAudio @23
377 SDL_AudioDriverName @24
378 SDL_GetAudioStatus @25
379 SDL_PauseAudio @26
380 SDL_LockAudio @27
381 SDL_UnlockAudio @28
382 SDL_HasRDTSC @29
383 SDL_HasMMX @30
384 SDL_HasMMXExt @31
385 SDL_Has3DNow @32
386 SDL_Has3DNowExt @33
387 SDL_HasSSE @34
388 SDL_HasSSE2 @35
389 SDL_HasAltiVec @36
390 SDL_GetAppState @37
391 SDL_PeepEvents @38
392 SDL_PumpEvents @39
393 SDL_PollEvent @40
394 SDL_WaitEvent @41
395 SDL_PushEvent @42
396 SDL_SetEventFilter @43
397 SDL_GetEventFilter @44
398 SDL_EventState @45
399 SDL_EnableUNICODE @46
400 SDL_GetKeyState @47
401 SDL_GetModState @48
402 SDL_SetModState @49
403 SDL_GetKeyName @50
404 SDL_EnableKeyRepeat @51
405 SDL_GetKeyRepeat @52
406 SDL_GetMouseState @53
407 SDL_GetRelativeMouseState @54
408 SDL_RWFromFile @55
409 SDL_RWFromFP @56
410 SDL_RWFromMem @57
411 SDL_RWFromConstMem @58
412 SDL_AllocRW @59
413 SDL_FreeRW @60
414 SDL_ReadLE16 @61
415 SDL_ReadBE16 @62
416 SDL_ReadLE32 @63
417 SDL_ReadBE32 @64
418 SDL_ReadLE64 @65
419 SDL_ReadBE64 @66
420 SDL_WriteLE16 @67
421 SDL_WriteBE16 @68
422 SDL_WriteLE32 @69
423 SDL_WriteBE32 @70
424 SDL_WriteLE64 @71
425 SDL_WriteBE64 @72
426 SDL_NumJoysticks @73
427 SDL_JoystickName @74
428 SDL_JoystickOpen @75
429 SDL_JoystickOpened @76
430 SDL_JoystickIndex @77
431 SDL_JoystickNumAxes @78
432 SDL_JoystickNumHats @79
433 SDL_JoystickNumBalls @80
434 SDL_JoystickNumButtons @81
435 SDL_JoystickGetAxis @82
436 SDL_JoystickGetHat @83
437 SDL_JoystickGetBall @84
438 SDL_JoystickGetButton @85
439 SDL_JoystickClose @86
440 SDL_JoystickUpdate @87
441 SDL_JoystickEventState @88
442 SDL_LoadObject @89
443 SDL_LoadFunction @90
444 SDL_UnloadObject @91
445 SDL_CreateThread @92
446 SDL_WaitThread @93
447 SDL_GetThreadID @94
448 SDL_KillThread @95
449 SDL_CreateMutex @96
450 SDL_DestroyMutex @97
451 SDL_mutexP @98
452 SDL_mutexV @99
453 SDL_CreateSemaphore @100
454 SDL_DestroySemaphore @101
455 SDL_SemWaitTimeout @102
456 SDL_SemTryWait @103
457 SDL_SemWait @104
458 SDL_SemValue @105
459 SDL_SemPost @106
460 SDL_ThreadID @107
461 SDL_CreateCond @108
462 SDL_DestroyCond @109
463 SDL_CondSignal @110
464 SDL_CondBroadcast @111
465 SDL_CondWaitTimeout @112
466 SDL_CondWait @113
467 SDL_AddTimer @114
468 SDL_RemoveTimer @115
469 SDL_SetTimer @116
470 SDL_GetTicks @117
471 SDL_Delay @118
472 SDL_LoadBMP_RW @119
473 SDL_SaveBMP_RW @120
474 SDL_CreateCursor @121
475 SDL_SetCursor @122
476 SDL_GetCursor @123
477 SDL_FreeCursor @124
478 SDL_ShowCursor @125
479 SDL_WarpMouse @126
480 SDL_SetGamma @127
481 SDL_SetGammaRamp @128
482 SDL_GetGammaRamp @129
483 SDL_MapRGB @130
484 SDL_MapRGBA @131
485 SDL_GetRGBA @132
486 SDL_GetRGB @133
487 SDL_SoftStretch @134
488 SDL_CreateRGBSurface @135
489 SDL_CreateRGBSurfaceFrom @136
490 SDL_SetColorKey @137
491 SDL_SetAlpha @138
492 SDL_SetClipRect @139
493 SDL_GetClipRect @140
494 SDL_LowerBlit @141
495 SDL_UpperBlit @142
496 SDL_FillRect @143
497 SDL_LockSurface @144
498 SDL_UnlockSurface @145
499 SDL_ConvertSurface @146
500 SDL_FreeSurface @147
501 SDL_VideoInit @148
502 SDL_VideoDriverName @149
503 SDL_GetVideoSurface @150
504 SDL_GetVideoInfo @151
505 SDL_ListModes @152
506 SDL_VideoModeOK @153
507 SDL_SetVideoMode @154
508 SDL_DisplayFormat @155
509 SDL_DisplayFormatAlpha @156
510 SDL_UpdateRect @157
511 SDL_UpdateRects @158
512 SDL_Flip @159
513 SDL_SetPalette @160
514 SDL_SetColors @161
515 SDL_VideoQuit @162
516 SDL_GL_LoadLibrary @163
517 SDL_GL_GetProcAddress @164
518 SDL_GL_SetAttribute @165
519 SDL_GL_GetAttribute @166
520 SDL_GL_SwapBuffers @167
521 SDL_GL_UpdateRects @168
522 SDL_GL_Lock @169
523 SDL_GL_Unlock @170
524 SDL_WM_SetCaption @171
525 SDL_WM_GetCaption @172
526 SDL_WM_SetIcon @173
527 SDL_WM_GrabInput @174
528 SDL_WM_IconifyWindow @175
529 SDL_WM_ToggleFullScreen @176
530 SDL_GetWMInfo @177
531 SDL_CreateYUVOverlay @178
532 SDL_LockYUVOverlay @179
533 SDL_UnlockYUVOverlay @180
534 SDL_DisplayYUVOverlay @181
535 SDL_FreeYUVOverlay @182
536 SDL_CDNumDrives @183
537 SDL_CDName @184
538 SDL_CDOpen @185
539 SDL_CDStatus @186
540 SDL_CDPlayTracks @187
541 SDL_CDPlay @188
542 SDL_CDPause @189
543 SDL_CDResume @190
544 SDL_CDStop @191
545 SDL_CDEject @192
546 SDL_CDClose @193
547EOF
548gcc -Zomf -c %{_builddir}/%{?buildsubdir}/src/stdlib/os2/wrap.c -o %{buildroot}%{_libdir}/wrap.o
549gcc -Zomf -Zdll -g -o %{buildroot}%{_libdir}/SDL12.dll %{buildroot}%{_libdir}/SDL12.def \
550 %{buildroot}%{_libdir}/wrap.o -L%{buildroot}%{_libdir} -lSDL_dll
551rm -rf %{buildroot}%{_libdir}/wrap.o %{buildroot}%{_libdir}/SDL12.def
552
553%clean
554rm -rf $RPM_BUILD_ROOT
555
556%files
557%doc README-SDL.txt COPYING CREDITS BUGS README.OS2 README-Digi.OS2 sdl.ini
558%{_libdir}/SDL12*.dll
559
560%files devel
561%doc README README-SDL.txt COPYING CREDITS BUGS WhatsNew docs.html
562%doc docs/index.html docs/html
563%{_bindir}/*-config
564%{_libdir}/SDL*.a
565%{_libdir}/SDL*.lib
566%exclude %{_libdir}/lib*.la
567%dir %{_includedir}/SDL
568%{_includedir}/SDL/*.h
569%{_libdir}/pkgconfig/sdl.pc
570%{_datadir}/aclocal/*
571%{_mandir}/man3/*
572
573#%files static
574#%{_libdir}/lib*.a
575
576%changelog
577* Thu Apr 14 2016 Valery V.Sedletski <_valerius@mail.ru> - 1.2.15-3
578- Made the .spec in accordance with Fedora version, renamed to SDL in caps
579
580* Tue Mar 15 2016 Valery V.Sedletski <_valerius@mail.ru> - 1.2.15-2
581- Adding the debug info for forwarder/wrapper
582
583* Sat Mar 12 2016 Valery V.Sedletski <_valerius@mail.ru> - 1.2.15-1
584- Initial OS/2 packaging
Note: See TracBrowser for help on using the repository browser.