| 1 | %define svn_url http://svn.netlabs.org/repos/ports/sdl_image/trunk
|
|---|
| 2 | %define svn_rev 1433
|
|---|
| 3 |
|
|---|
| 4 | %define prefix %{_prefix}
|
|---|
| 5 | %define version 2.0.25
|
|---|
| 6 | %define release 1
|
|---|
| 7 | %define _unpackaged_files_terminate_build 0
|
|---|
| 8 |
|
|---|
| 9 | Summary: SDL graphics drawing primitives and other support functions
|
|---|
| 10 | Name: sdl_gfx
|
|---|
| 11 | Version: %{version}
|
|---|
| 12 | Release: %{release}%{?dist}
|
|---|
| 13 | License: ZLIB
|
|---|
| 14 | Group: System Environment/Libraries
|
|---|
| 15 | Prefix: %{prefix}
|
|---|
| 16 | #Source: http://www.ferzkopp.net/Software/SDL_gfx-2.0/SDL_gfx-2.0.25.tar.gz
|
|---|
| 17 | Source: %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip
|
|---|
| 18 | #Patch0: %{name}-os2.patch
|
|---|
| 19 | Packager: Danny Sung <dannys at mail.com>
|
|---|
| 20 | Vendor: Andreas Schiffler <aschiffler at ferzkopp.net>
|
|---|
| 21 | BuildRoot: /tmp/%{name}-root-%{version}
|
|---|
| 22 | BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
|
|---|
| 23 | BuildRequires: sdl-devel
|
|---|
| 24 |
|
|---|
| 25 | %description
|
|---|
| 26 | The SDL_gfx library evolved out of the SDL_gfxPrimitives code which
|
|---|
| 27 | provided basic drawing routines such as lines, circles or polygons and
|
|---|
| 28 | SDL_rotozoom which implemented a interpolating rotozoomer for SDL
|
|---|
| 29 | surfaces.
|
|---|
| 30 |
|
|---|
| 31 | The current components of the SDL_gfx library are:
|
|---|
| 32 |
|
|---|
| 33 | * Graphic Primitives (SDL_gfxPrimitves.h)
|
|---|
| 34 | * Rotozoomer (SDL_rotozoom.h)
|
|---|
| 35 | * Framerate control (SDL_framerate.h)
|
|---|
| 36 | * MMX image filters (SDL_imageFilter.h)
|
|---|
| 37 | * Custom blit functions (SDL_gfxBlitFunc.h)
|
|---|
| 38 |
|
|---|
| 39 | The library is is written in plain C and can be used in C++ code.
|
|---|
| 40 |
|
|---|
| 41 | %package devel
|
|---|
| 42 | Summary: Libraries and includes to develop SDL_gfx programs
|
|---|
| 43 | Group: Development/Libraries
|
|---|
| 44 | Requires: %{name} = %{version}-%{release}
|
|---|
| 45 | Requires: sdl-devel
|
|---|
| 46 |
|
|---|
| 47 | %description devel
|
|---|
| 48 | The SDL_gfx library evolved out of the SDL_gfxPrimitives code which
|
|---|
| 49 | provided basic drawing routines such as lines, circles or polygons and
|
|---|
| 50 | SDL_rotozoom which implemented a interpolating rotozoomer for SDL
|
|---|
| 51 | surfaces.
|
|---|
| 52 |
|
|---|
| 53 | The current components of the SDL_gfx library are:
|
|---|
| 54 |
|
|---|
| 55 | * Graphic Primitives (SDL_gfxPrimitves.h)
|
|---|
| 56 | * Rotozoomer (SDL_rotozoom.h)
|
|---|
| 57 | * Framerate control (SDL_framerate.h)
|
|---|
| 58 | * MMX image filters (SDL_imageFilter.h)
|
|---|
| 59 | * Custom blit functions (SDL_gfxBlitFunc.h)
|
|---|
| 60 |
|
|---|
| 61 | The library is is written in plain C and can be used in C++ code.
|
|---|
| 62 |
|
|---|
| 63 | %package demos
|
|---|
| 64 | Summary: SDL_gfx demo and test programs
|
|---|
| 65 | Group: Applications/Multimedia
|
|---|
| 66 | Requires: %{name} = %{version}
|
|---|
| 67 |
|
|---|
| 68 | %description demos
|
|---|
| 69 | SDL_gfx demo applications and source code.
|
|---|
| 70 |
|
|---|
| 71 | %debug_package
|
|---|
| 72 |
|
|---|
| 73 | %prep
|
|---|
| 74 | %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}
|
|---|
| 75 | %setup -q
|
|---|
| 76 | %else
|
|---|
| 77 | %setup -q -n "%{name}-%{version}" -Tc
|
|---|
| 78 | svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force
|
|---|
| 79 | rm -f "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip"
|
|---|
| 80 | (cd .. && zip -SrX9 "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip" "%{name}-%{version}")
|
|---|
| 81 | %endif
|
|---|
| 82 |
|
|---|
| 83 | #%patch0 -p1
|
|---|
| 84 |
|
|---|
| 85 | autoreconf -fi
|
|---|
| 86 |
|
|---|
| 87 | %build
|
|---|
| 88 | CFLAGS="-g -DBUILD_SDL" LDFLAGS="-g -Zhigh-mem" ./configure --prefix=%{_prefix} --disable-static
|
|---|
| 89 | %{__make} %{?_smp_mflags}
|
|---|
| 90 |
|
|---|
| 91 | cd Test
|
|---|
| 92 |
|
|---|
| 93 | autoreconf -fi
|
|---|
| 94 | CFLAGS="-I." LDFLAGS="-L../.libs" ./configure --prefix=%{_prefix}
|
|---|
| 95 | mkdir SDL
|
|---|
| 96 | cd SDL
|
|---|
| 97 | ln -sf ../../SDL_framerate.h
|
|---|
| 98 | ln -sf ../../SDL_gfxBlitFunc.h
|
|---|
| 99 | ln -sf ../../SDL_gfxPrimitives_font.h
|
|---|
| 100 | ln -sf ../../SDL_gfxPrimitives.h
|
|---|
| 101 | ln -sf ../../SDL_imageFilter.h
|
|---|
| 102 | ln -sf ../../SDL_rotozoom.h
|
|---|
| 103 | cd ..
|
|---|
| 104 | %{__make} %{?_smp_mflags}
|
|---|
| 105 |
|
|---|
| 106 | cd ..
|
|---|
| 107 |
|
|---|
| 108 | %install
|
|---|
| 109 | %makeinstall
|
|---|
| 110 |
|
|---|
| 111 | install -m755 -d $RPM_BUILD_ROOT%{_datadir}/SDL_gfx-demos
|
|---|
| 112 | rm -rf Test/m4 Test/SDL Test/autom4te.cache Test/.libs
|
|---|
| 113 | rm -rf Test/*.o Test/config.log Test/config.* Test/configure Test/configure.lineno
|
|---|
| 114 | cp Test/* $RPM_BUILD_ROOT%{_datadir}/SDL_gfx-demos
|
|---|
| 115 |
|
|---|
| 116 | # create import libs
|
|---|
| 117 | emximp -o %{buildroot}%{_libdir}/SDL_gfx_dll.lib %{buildroot}%{_libdir}/SDL_gf15.dll
|
|---|
| 118 | emximp -o %{buildroot}%{_libdir}/SDL_gfx15_dll.lib %{buildroot}%{_libdir}/SDL_gf15.dll
|
|---|
| 119 |
|
|---|
| 120 | # create forwarder
|
|---|
| 121 | cat << EOF >%{buildroot}%{_libdir}/sdlgfx.def
|
|---|
| 122 | LIBRARY SDLgfx
|
|---|
| 123 | DESCRIPTION '@#libsdl org:1.2.15#@##1## 2016-03-16 dtp::::::@@SDL_gfx (alternative port) forwarder'
|
|---|
| 124 | IMPORTS
|
|---|
| 125 | SDL_initFramerate=SDL_gf15.SDL_initFramerate
|
|---|
| 126 | SDL_setFramerate=SDL_gf15.SDL_setFramerate
|
|---|
| 127 | SDL_getFramerate=SDL_gf15.SDL_getFramerate
|
|---|
| 128 | SDL_framerateDelay=SDL_gf15.SDL_framerateDelay
|
|---|
| 129 | pixelColor=SDL_gf15.pixelColor
|
|---|
| 130 | pixelRGBA=SDL_gf15.pixelRGBA
|
|---|
| 131 | hlineColor=SDL_gf15.hlineColor
|
|---|
| 132 | hlineRGBA=SDL_gf15.hlineRGBA
|
|---|
| 133 | vlineColor=SDL_gf15.vlineColor
|
|---|
| 134 | vlineRGBA=SDL_gf15.vlineRGBA
|
|---|
| 135 | rectangleColor=SDL_gf15.rectangleColor
|
|---|
| 136 | rectangleRGBA=SDL_gf15.rectangleRGBA
|
|---|
| 137 | boxColor=SDL_gf15.boxColor
|
|---|
| 138 | boxRGBA=SDL_gf15.boxRGBA
|
|---|
| 139 | lineColor=SDL_gf15.lineColor
|
|---|
| 140 | lineRGBA=SDL_gf15.lineRGBA
|
|---|
| 141 | aalineColor=SDL_gf15.aalineColor
|
|---|
| 142 | aalineRGBA=SDL_gf15.aalineRGBA
|
|---|
| 143 | circleColor=SDL_gf15.circleColor
|
|---|
| 144 | circleRGBA=SDL_gf15.circleRGBA
|
|---|
| 145 | aacircleColor=SDL_gf15.aacircleColor
|
|---|
| 146 | aacircleRGBA=SDL_gf15.aacircleRGBA
|
|---|
| 147 | filledCircleColor=SDL_gf15.filledCircleColor
|
|---|
| 148 | filledCircleRGBA=SDL_gf15.filledCircleRGBA
|
|---|
| 149 | ellipseColor=SDL_gf15.ellipseColor
|
|---|
| 150 | ellipseRGBA=SDL_gf15.ellipseRGBA
|
|---|
| 151 | aaellipseColor=SDL_gf15.aaellipseColor
|
|---|
| 152 | aaellipseRGBA=SDL_gf15.aaellipseRGBA
|
|---|
| 153 | filledEllipseColor=SDL_gf15.filledEllipseColor
|
|---|
| 154 | filledEllipseRGBA=SDL_gf15.filledEllipseRGBA
|
|---|
| 155 | pieColor=SDL_gf15.pieColor
|
|---|
| 156 | pieRGBA=SDL_gf15.pieRGBA
|
|---|
| 157 | filledPieColor=SDL_gf15.filledPieColor
|
|---|
| 158 | filledPieRGBA=SDL_gf15.filledPieRGBA
|
|---|
| 159 | trigonColor=SDL_gf15.trigonColor
|
|---|
| 160 | trigonRGBA=SDL_gf15.trigonRGBA
|
|---|
| 161 | aatrigonColor=SDL_gf15.aatrigonColor
|
|---|
| 162 | aatrigonRGBA=SDL_gf15.aatrigonRGBA
|
|---|
| 163 | filledTrigonColor=SDL_gf15.filledTrigonColor
|
|---|
| 164 | filledTrigonRGBA=SDL_gf15.filledTrigonRGBA
|
|---|
| 165 | polygonColor=SDL_gf15.polygonColor
|
|---|
| 166 | polygonRGBA=SDL_gf15.polygonRGBA
|
|---|
| 167 | aapolygonColor=SDL_gf15.aapolygonColor
|
|---|
| 168 | aapolygonRGBA=SDL_gf15.aapolygonRGBA
|
|---|
| 169 | filledPolygonColor=SDL_gf15.filledPolygonColor
|
|---|
| 170 | filledPolygonRGBA=SDL_gf15.filledPolygonRGBA
|
|---|
| 171 | gfxPrimitivesSetFont=SDL_gf15.gfxPrimitivesSetFont
|
|---|
| 172 | characterColor=SDL_gf15.characterColor
|
|---|
| 173 | characterRGBA=SDL_gf15.characterRGBA
|
|---|
| 174 | stringColor=SDL_gf15.stringColor
|
|---|
| 175 | stringRGBA=SDL_gf15.stringRGBA
|
|---|
| 176 | bezierColor=SDL_gf15.bezierColor
|
|---|
| 177 | bezierRGBA=SDL_gf15.bezierRGBA
|
|---|
| 178 | SDL_imageFilterMMXdetect=SDL_gf15.SDL_imageFilterMMXdetect
|
|---|
| 179 | SDL_imageFilterMMXoff=SDL_gf15.SDL_imageFilterMMXoff
|
|---|
| 180 | SDL_imageFilterMMXon=SDL_gf15.SDL_imageFilterMMXon
|
|---|
| 181 | SDL_imageFilterAdd=SDL_gf15.SDL_imageFilterAdd
|
|---|
| 182 | SDL_imageFilterMean=SDL_gf15.SDL_imageFilterMean
|
|---|
| 183 | SDL_imageFilterSub=SDL_gf15.SDL_imageFilterSub
|
|---|
| 184 | SDL_imageFilterAbsDiff=SDL_gf15.SDL_imageFilterAbsDiff
|
|---|
| 185 | SDL_imageFilterMult=SDL_gf15.SDL_imageFilterMult
|
|---|
| 186 | SDL_imageFilterMultNor=SDL_gf15.SDL_imageFilterMultNor
|
|---|
| 187 | SDL_imageFilterMultDivby2=SDL_gf15.SDL_imageFilterMultDivby2
|
|---|
| 188 | SDL_imageFilterMultDivby4=SDL_gf15.SDL_imageFilterMultDivby4
|
|---|
| 189 | SDL_imageFilterBitAnd=SDL_gf15.SDL_imageFilterBitAnd
|
|---|
| 190 | SDL_imageFilterBitOr=SDL_gf15.SDL_imageFilterBitOr
|
|---|
| 191 | SDL_imageFilterDiv=SDL_gf15.SDL_imageFilterDiv
|
|---|
| 192 | SDL_imageFilterBitNegation=SDL_gf15.SDL_imageFilterBitNegation
|
|---|
| 193 | SDL_imageFilterAddByte=SDL_gf15.SDL_imageFilterAddByte
|
|---|
| 194 | SDL_imageFilterAddUint=SDL_gf15.SDL_imageFilterAddUint
|
|---|
| 195 | SDL_imageFilterAddByteToHalf=SDL_gf15.SDL_imageFilterAddByteToHalf
|
|---|
| 196 | SDL_imageFilterSubByte=SDL_gf15.SDL_imageFilterSubByte
|
|---|
| 197 | SDL_imageFilterSubUint=SDL_gf15.SDL_imageFilterSubUint
|
|---|
| 198 | SDL_imageFilterShiftRight=SDL_gf15.SDL_imageFilterShiftRight
|
|---|
| 199 | SDL_imageFilterShiftRightUint=SDL_gf15.SDL_imageFilterShiftRightUint
|
|---|
| 200 | SDL_imageFilterMultByByte=SDL_gf15.SDL_imageFilterMultByByte
|
|---|
| 201 | SDL_imageFilterShiftRightAndMultByByte=SDL_gf15.SDL_imageFilterShiftRightAndMultByByte
|
|---|
| 202 | SDL_imageFilterShiftLeftByte=SDL_gf15.SDL_imageFilterShiftLeftByte
|
|---|
| 203 | SDL_imageFilterShiftLeftUint=SDL_gf15.SDL_imageFilterShiftLeftUint
|
|---|
| 204 | SDL_imageFilterShiftLeft=SDL_gf15.SDL_imageFilterShiftLeft
|
|---|
| 205 | SDL_imageFilterBinarizeUsingThreshold=SDL_gf15.SDL_imageFilterBinarizeUsingThreshold
|
|---|
| 206 | SDL_imageFilterClipToRange=SDL_gf15.SDL_imageFilterClipToRange
|
|---|
| 207 | SDL_imageFilterNormalizeLinear=SDL_gf15.SDL_imageFilterNormalizeLinear
|
|---|
| 208 | SDL_imageFilterConvolveKernel3x3Divide=SDL_gf15.SDL_imageFilterConvolveKernel3x3Divide
|
|---|
| 209 | SDL_imageFilterConvolveKernel5x5Divide=SDL_gf15.SDL_imageFilterConvolveKernel5x5Divide
|
|---|
| 210 | SDL_imageFilterConvolveKernel7x7Divide=SDL_gf15.SDL_imageFilterConvolveKernel7x7Divide
|
|---|
| 211 | SDL_imageFilterConvolveKernel9x9Divide=SDL_gf15.SDL_imageFilterConvolveKernel9x9Divide
|
|---|
| 212 | SDL_imageFilterConvolveKernel3x3ShiftRight=SDL_gf15.SDL_imageFilterConvolveKernel3x3ShiftRight
|
|---|
| 213 | SDL_imageFilterConvolveKernel5x5ShiftRight=SDL_gf15.SDL_imageFilterConvolveKernel5x5ShiftRight
|
|---|
| 214 | SDL_imageFilterConvolveKernel7x7ShiftRight=SDL_gf15.SDL_imageFilterConvolveKernel7x7ShiftRight
|
|---|
| 215 | SDL_imageFilterConvolveKernel9x9ShiftRight=SDL_gf15.SDL_imageFilterConvolveKernel9x9ShiftRight
|
|---|
| 216 | SDL_imageFilterSobelX=SDL_gf15.SDL_imageFilterSobelX
|
|---|
| 217 | SDL_imageFilterSobelXShiftRight=SDL_gf15.SDL_imageFilterSobelXShiftRight
|
|---|
| 218 | SDL_imageFilterAlignStack=SDL_gf15.SDL_imageFilterAlignStack
|
|---|
| 219 | SDL_imageFilterRestoreStack=SDL_gf15.SDL_imageFilterRestoreStack
|
|---|
| 220 | rotozoomSurfaceSizeXY=SDL_gf15.rotozoomSurfaceSizeXY
|
|---|
| 221 | rotozoomSurfaceSize=SDL_gf15.rotozoomSurfaceSize
|
|---|
| 222 | rotozoomSurface=SDL_gf15.rotozoomSurface
|
|---|
| 223 | rotozoomSurfaceXY=SDL_gf15.rotozoomSurfaceXY
|
|---|
| 224 | zoomSurfaceSize=SDL_gf15.zoomSurfaceSize
|
|---|
| 225 | zoomSurface=SDL_gf15.zoomSurface
|
|---|
| 226 | EXPORTS
|
|---|
| 227 | SDL_initFramerate @1
|
|---|
| 228 | SDL_setFramerate @2
|
|---|
| 229 | SDL_getFramerate @3
|
|---|
| 230 | SDL_framerateDelay @4
|
|---|
| 231 | pixelColor @5
|
|---|
| 232 | pixelRGBA @6
|
|---|
| 233 | hlineColor @7
|
|---|
| 234 | hlineRGBA @8
|
|---|
| 235 | vlineColor @9
|
|---|
| 236 | vlineRGBA @10
|
|---|
| 237 | rectangleColor @11
|
|---|
| 238 | rectangleRGBA @12
|
|---|
| 239 | boxColor @13
|
|---|
| 240 | boxRGBA @14
|
|---|
| 241 | lineColor @15
|
|---|
| 242 | lineRGBA @16
|
|---|
| 243 | aalineColor @17
|
|---|
| 244 | aalineRGBA @18
|
|---|
| 245 | circleColor @19
|
|---|
| 246 | circleRGBA @20
|
|---|
| 247 | aacircleColor @21
|
|---|
| 248 | aacircleRGBA @22
|
|---|
| 249 | filledCircleColor @23
|
|---|
| 250 | filledCircleRGBA @24
|
|---|
| 251 | ellipseColor @25
|
|---|
| 252 | ellipseRGBA @26
|
|---|
| 253 | aaellipseColor @27
|
|---|
| 254 | aaellipseRGBA @28
|
|---|
| 255 | filledEllipseColor @29
|
|---|
| 256 | filledEllipseRGBA @30
|
|---|
| 257 | pieColor @31
|
|---|
| 258 | pieRGBA @32
|
|---|
| 259 | filledPieColor @33
|
|---|
| 260 | filledPieRGBA @34
|
|---|
| 261 | trigonColor @35
|
|---|
| 262 | trigonRGBA @36
|
|---|
| 263 | aatrigonColor @37
|
|---|
| 264 | aatrigonRGBA @38
|
|---|
| 265 | filledTrigonColor @39
|
|---|
| 266 | filledTrigonRGBA @40
|
|---|
| 267 | polygonColor @41
|
|---|
| 268 | polygonRGBA @42
|
|---|
| 269 | aapolygonColor @43
|
|---|
| 270 | aapolygonRGBA @44
|
|---|
| 271 | filledPolygonColor @45
|
|---|
| 272 | filledPolygonRGBA @46
|
|---|
| 273 | gfxPrimitivesSetFont @47
|
|---|
| 274 | characterColor @48
|
|---|
| 275 | characterRGBA @49
|
|---|
| 276 | stringColor @50
|
|---|
| 277 | stringRGBA @51
|
|---|
| 278 | bezierColor @52
|
|---|
| 279 | bezierRGBA @53
|
|---|
| 280 | SDL_imageFilterMMXdetect @54
|
|---|
| 281 | SDL_imageFilterMMXoff @55
|
|---|
| 282 | SDL_imageFilterMMXon @56
|
|---|
| 283 | SDL_imageFilterAdd @57
|
|---|
| 284 | SDL_imageFilterMean @58
|
|---|
| 285 | SDL_imageFilterSub @59
|
|---|
| 286 | SDL_imageFilterAbsDiff @60
|
|---|
| 287 | SDL_imageFilterMult @61
|
|---|
| 288 | SDL_imageFilterMultNor @62
|
|---|
| 289 | SDL_imageFilterMultDivby2 @63
|
|---|
| 290 | SDL_imageFilterMultDivby4 @64
|
|---|
| 291 | SDL_imageFilterBitAnd @65
|
|---|
| 292 | SDL_imageFilterBitOr @66
|
|---|
| 293 | SDL_imageFilterDiv @67
|
|---|
| 294 | SDL_imageFilterBitNegation @68
|
|---|
| 295 | SDL_imageFilterAddByte @69
|
|---|
| 296 | SDL_imageFilterAddUint @70
|
|---|
| 297 | SDL_imageFilterAddByteToHalf @71
|
|---|
| 298 | SDL_imageFilterSubByte @72
|
|---|
| 299 | SDL_imageFilterSubUint @73
|
|---|
| 300 | SDL_imageFilterShiftRight @74
|
|---|
| 301 | SDL_imageFilterShiftRightUint @75
|
|---|
| 302 | SDL_imageFilterMultByByte @76
|
|---|
| 303 | SDL_imageFilterShiftRightAndMultByByte @77
|
|---|
| 304 | SDL_imageFilterShiftLeftByte @78
|
|---|
| 305 | SDL_imageFilterShiftLeftUint @79
|
|---|
| 306 | SDL_imageFilterShiftLeft @80
|
|---|
| 307 | SDL_imageFilterBinarizeUsingThreshold @81
|
|---|
| 308 | SDL_imageFilterClipToRange @82
|
|---|
| 309 | SDL_imageFilterNormalizeLinear @83
|
|---|
| 310 | SDL_imageFilterConvolveKernel3x3Divide @84
|
|---|
| 311 | SDL_imageFilterConvolveKernel5x5Divide @85
|
|---|
| 312 | SDL_imageFilterConvolveKernel7x7Divide @86
|
|---|
| 313 | SDL_imageFilterConvolveKernel9x9Divide @87
|
|---|
| 314 | SDL_imageFilterConvolveKernel3x3ShiftRight @88
|
|---|
| 315 | SDL_imageFilterConvolveKernel5x5ShiftRight @89
|
|---|
| 316 | SDL_imageFilterConvolveKernel7x7ShiftRight @90
|
|---|
| 317 | SDL_imageFilterConvolveKernel9x9ShiftRight @91
|
|---|
| 318 | SDL_imageFilterSobelX @92
|
|---|
| 319 | SDL_imageFilterSobelXShiftRight @93
|
|---|
| 320 | SDL_imageFilterAlignStack @94
|
|---|
| 321 | SDL_imageFilterRestoreStack @95
|
|---|
| 322 | rotozoomSurfaceSizeXY @96
|
|---|
| 323 | rotozoomSurfaceSize @97
|
|---|
| 324 | rotozoomSurface @98
|
|---|
| 325 | rotozoomSurfaceXY @99
|
|---|
| 326 | zoomSurfaceSize @100
|
|---|
| 327 | zoomSurface @101
|
|---|
| 328 | EOF
|
|---|
| 329 | echo "">%{buildroot}%{_libdir}/dummy.c
|
|---|
| 330 | gcc -Zomf -o %{buildroot}%{_libdir}/dummy.o -c %{buildroot}%{_libdir}/dummy.c
|
|---|
| 331 | gcc -Zomf -Zdll -o %{buildroot}%{_libdir}/SDLgfx.dll \
|
|---|
| 332 | %{buildroot}%{_libdir}/sdlgfx.def %{buildroot}%{_libdir}/dummy.o
|
|---|
| 333 | rm -rf %{buildroot}%{_libdir}/dummy.* %{buildroot}%{_libdir}/sdlgfx.def
|
|---|
| 334 |
|
|---|
| 335 | %clean
|
|---|
| 336 | rm -rf $RPM_BUILD_ROOT
|
|---|
| 337 |
|
|---|
| 338 | %files
|
|---|
| 339 | %defattr(-,root,root)
|
|---|
| 340 | %{_libdir}/SDL*.dll
|
|---|
| 341 |
|
|---|
| 342 | %files devel
|
|---|
| 343 | %defattr(-,root,root)
|
|---|
| 344 | %doc AUTHORS COPYING ChangeLog INSTALL LICENSE NEWS README
|
|---|
| 345 | %doc Docs/
|
|---|
| 346 | %{_libdir}/SDL*.a
|
|---|
| 347 | %exclude %{_libdir}/libSDL_gfx.la*
|
|---|
| 348 | %{_libdir}/SDL*.lib
|
|---|
| 349 | %{_libdir}/pkgconfig/SDL_gfx.pc
|
|---|
| 350 | %{_includedir}/SDL/SDL_framerate.h
|
|---|
| 351 | %{_includedir}/SDL/SDL_gfxPrimitives_font.h
|
|---|
| 352 | %{_includedir}/SDL/SDL_gfxPrimitives.h
|
|---|
| 353 | %{_includedir}/SDL/SDL_imageFilter.h
|
|---|
| 354 | %{_includedir}/SDL/SDL_rotozoom.h
|
|---|
| 355 | %{_includedir}/SDL/SDL_gfxBlitFunc.h
|
|---|
| 356 |
|
|---|
| 357 | %files demos
|
|---|
| 358 | %defattr(-,root,root)
|
|---|
| 359 | %{_datadir}/SDL_gfx-demos
|
|---|
| 360 |
|
|---|
| 361 | %changelog
|
|---|
| 362 | * Wed Mar 16 2016 Valery V.Sedletski <_valerius@mail.ru> - 2.0.25-1
|
|---|
| 363 | - Initial OS/2 packaging
|
|---|