]>
Commit | Line | Data |
---|---|---|
1798792b | 1 | Summary: SDL graphics drawing primitives and other support functions |
8339736f | 2 | Summary(pl.UTF-8): Funkcje rysowania grafiki i inne dla SDL |
1798792b | 3 | Name: SDL_gfx |
c25918d8 | 4 | Version: 2.0.18 |
5 | Release: 1 | |
1798792b JK |
6 | License: LGPL |
7 | Group: Libraries | |
c7a61c0e | 8 | Source0: http://www.ferzkopp.net/Software/SDL_gfx-2.0/%{name}-%{version}.tar.gz |
c25918d8 | 9 | # Source0-md5: b107fd478d3d1269d7a6ff42906f0482 |
48a8a37d | 10 | Patch0: %{name}-local-labels.patch |
c7a61c0e | 11 | URL: http://www.ferzkopp.net/Software/SDL_gfx-2.0/ |
1798792b | 12 | BuildRequires: SDL-devel >= 1.2.0 |
54caf23a | 13 | BuildRequires: autoconf >= 2.59-9 |
1798792b JK |
14 | BuildRequires: automake |
15 | BuildRequires: libjpeg-devel | |
16 | BuildRequires: libpng >= 1.0.8 | |
17 | BuildRequires: libtiff-devel | |
18 | BuildRequires: libtool | |
19 | BuildRequires: zlib-devel | |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
21 | ||
1798792b JK |
22 | %description |
23 | The SDL_gfx library evolved out of the SDL_gfxPrimitives code. | |
24 | ||
25 | The current components of the SDL_gfx library are: | |
91b3341b JB |
26 | - Graphic Primitives (SDL_gfxPrimitves.h) |
27 | - Rotozoomer (SDL_rotozoom.h) | |
28 | - Framerate control (SDL_framerate.h) | |
29 | - MMX image filters (SDL_imageFilter.h) | |
1798792b | 30 | |
91b3341b | 31 | The library is backwards compatible to the above mentioned code. It's |
1798792b JK |
32 | is written in plain C and can be used in C++ code. |
33 | ||
653e5dc2 JR |
34 | %description -l pl.UTF-8 |
35 | Biblioteka SDL_gfx wyewoluowała z kodu SDL_gfxPrimitives. | |
91b3341b | 36 | |
653e5dc2 | 37 | Aktualnie SDL_gfx zawiera następujące komponenty: |
91b3341b JB |
38 | - prymitywy graficzne (SDL_gfxPrimitives.h) |
39 | - Rotozoomer (SDL_rotozoom.h) | |
653e5dc2 JR |
40 | - kontrola szybkości rysowania obrazu (SDL_framerate.h) |
41 | - filtry obrazów używające MMX (SDL_imageFilter.h). | |
91b3341b | 42 | |
653e5dc2 JR |
43 | Biblioteka jest wstecznie kompatybilna z wyżej wspomnianym kodem. Jest |
44 | napisana w czystym C, może też być używana w kodzie C++. | |
1798792b JK |
45 | |
46 | %package devel | |
91b3341b | 47 | Summary: Header files and more to develop SDL_gfx applications |
8339736f | 48 | Summary(pl.UTF-8): Pliki nagłówkowe do rozwijania aplikacji używających SDL_gfx |
1798792b | 49 | Group: Development/Libraries |
b2912e0e | 50 | Requires: %{name} = %{version}-%{release} |
1798792b JK |
51 | Requires: SDL-devel |
52 | ||
53 | %description devel | |
54 | Header files and more to develop SDL_gfx applications. | |
55 | ||
653e5dc2 JR |
56 | %description devel -l pl.UTF-8 |
57 | Pliki nagłówkowe do rozwijania aplikacji używających SDL_gfx. | |
1798792b JK |
58 | |
59 | %package static | |
60 | Summary: Static SDL_gfx libraries | |
8339736f | 61 | Summary(pl.UTF-8): Statyczne biblioteki SDL_gfx |
1798792b | 62 | Group: Development/Libraries |
b2912e0e | 63 | Requires: %{name}-devel = %{version}-%{release} |
1798792b JK |
64 | |
65 | %description static | |
b6668e1d | 66 | Static SDL_gfx libraries. |
1798792b | 67 | |
653e5dc2 | 68 | %description static -l pl.UTF-8 |
1798792b JK |
69 | Statyczne biblioteki SDL_gfx. |
70 | ||
71 | %prep | |
72 | %setup -q | |
80678106 | 73 | %patch0 -p1 |
1798792b JK |
74 | |
75 | %build | |
b2912e0e | 76 | rm -f acinclude.m4 |
490fa9ba | 77 | %{__libtoolize} |
ed62963b | 78 | %{__aclocal} |
b4cbb2ef | 79 | %{__autoconf} |
80 | %{__automake} | |
7662e164 | 81 | |
bbecf461 | 82 | %configure \ |
b2912e0e | 83 | %ifnarch %{ix86} |
bbecf461 | 84 | --disable-mmx |
7662e164 | 85 | %endif |
86 | ||
1798792b JK |
87 | %{__make} |
88 | ||
89 | %install | |
90 | rm -rf $RPM_BUILD_ROOT | |
91 | ||
bbecf461 PG |
92 | %{__make} install \ |
93 | DESTDIR=$RPM_BUILD_ROOT | |
1798792b | 94 | |
1798792b JK |
95 | %clean |
96 | rm -rf $RPM_BUILD_ROOT | |
97 | ||
6a9f7e90 | 98 | %post -p /sbin/ldconfig |
99 | %postun -p /sbin/ldconfig | |
91b3341b | 100 | |
1798792b JK |
101 | %files |
102 | %defattr(644,root,root,755) | |
4592532e | 103 | %doc README AUTHORS ChangeLog |
c1d051e8 | 104 | %attr(755,root,root) %{_libdir}/libSDL_gfx.so.*.*.* |
c25918d8 | 105 | %attr(755,root,root) %ghost %{_libdir}/libSDL_gfx.so.0 |
1798792b JK |
106 | |
107 | %files devel | |
108 | %defattr(644,root,root,755) | |
4592532e | 109 | %doc Docs/* |
c1d051e8 JB |
110 | %attr(755,root,root) %{_libdir}/libSDL_gfx.so |
111 | %{_libdir}/libSDL_gfx.la | |
99aead48 JB |
112 | %{_includedir}/SDL/SDL_framerate.h |
113 | %{_includedir}/SDL/SDL_gfx*.h | |
114 | %{_includedir}/SDL/SDL_imageFilter.h | |
115 | %{_includedir}/SDL/SDL_rotozoom.h | |
1798792b JK |
116 | |
117 | %files static | |
118 | %defattr(644,root,root,755) | |
c1d051e8 | 119 | %{_libdir}/libSDL_gfx.a |