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