]>
Commit | Line | Data |
---|---|---|
6256eb13 JB |
1 | Summary: Graphics primitives and surface functions for SDL2 |
2 | Summary(pl.UTF-8): Funkcje do figur graficznych i powierzchni dla SDL2 | |
3 | Name: SDL2_gfx | |
ff7e9c6d | 4 | Version: 1.0.4 |
6256eb13 JB |
5 | Release: 1 |
6 | License: ZLib (BSD-like) | |
7 | Group: Libraries | |
ff7e9c6d JB |
8 | #Source0Download: https://www.ferzkopp.net/wordpress/2016/01/02/sdl_gfx-sdl2_gfx/ |
9 | Source0: https://www.ferzkopp.net/Software/SDL2_gfx/%{name}-%{version}.tar.gz | |
10 | # Source0-md5: 15f9866c6464ca298f28f62fe5b36d9f | |
6256eb13 | 11 | Patch0: %{name}-local-labels.patch |
ff7e9c6d | 12 | URL: https://www.ferzkopp.net/wordpress/2016/01/02/sdl_gfx-sdl2_gfx/ |
6256eb13 JB |
13 | BuildRequires: SDL2-devel >= 2.0.0 |
14 | BuildRequires: autoconf >= 2.59-9 | |
15 | BuildRequires: automake | |
16 | BuildRequires: libtool >= 2:2 | |
17 | BuildRequires: pkgconfig | |
6256eb13 JB |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
19 | ||
20 | %description | |
21 | The SDL2_gfx library provides the basic drawing functions such as | |
22 | lines, circles or polygons provided by SDL_gfx on SDL2 against | |
23 | renderers of SDL2. | |
24 | ||
25 | The current components of the SDL_gfx2 library are: | |
26 | - Graphic Primitives (SDL2_gfxPrimitves.h) | |
27 | - Surface Rotozoomer (SDL2_rotozoom.h) | |
28 | - Framerate control (SDL2_framerate.h) | |
29 | - MMX image filters (SDL2_imageFilter.h). | |
30 | ||
31 | %description -l pl.UTF-8 | |
32 | Biblioteka SDL2_gfx udostępnia użytkownikom biblioteki SDL2 podstawowe | |
33 | funkcje do rysowania figur takich jak linie, okręgi czy wielokąty, | |
34 | udostępniane wcześniej przez SDL_gfx. | |
35 | ||
36 | Aktualnie SDL2_gfx zawiera następujące komponenty: | |
37 | - prymitywy graficzne (SDL2_gfxPrimitives.h) | |
38 | - Rotozoomer (SDL2_rotozoom.h) | |
39 | - kontrola szybkości rysowania obrazu (SDL2_framerate.h) | |
40 | - filtry obrazów używające MMX (SDL2_imageFilter.h). | |
41 | ||
42 | %package devel | |
43 | Summary: Header files and more to develop SDL2_gfx applications | |
44 | Summary(pl.UTF-8): Pliki nagłówkowe do rozwijania aplikacji używających SDL2_gfx | |
45 | Group: Development/Libraries | |
46 | Requires: %{name} = %{version}-%{release} | |
47 | Requires: SDL2-devel >= 2.0.0 | |
48 | ||
49 | %description devel | |
50 | Header files and more to develop SDL2_gfx applications. | |
51 | ||
52 | %description devel -l pl.UTF-8 | |
53 | Pliki nagłówkowe do rozwijania aplikacji używających SDL2_gfx. | |
54 | ||
55 | %package static | |
56 | Summary: Static SDL2_gfx library | |
57 | Summary(pl.UTF-8): Statyczna biblioteka SDL2_gfx | |
58 | Group: Development/Libraries | |
59 | Requires: %{name}-devel = %{version}-%{release} | |
60 | ||
61 | %description static | |
62 | Static SDL2_gfx library. | |
63 | ||
64 | %description static -l pl.UTF-8 | |
65 | Statyczna biblioteka SDL2_gfx. | |
66 | ||
67 | %package apidocs | |
68 | Summary: API documentation for SDL2_gfx library | |
69 | Summary(pl.UTF-8): Dokumentacja API biblioteki SDL2_gfx | |
70 | Group: Documentation | |
71 | ||
72 | %description apidocs | |
73 | API documentation for SDL2_gfx library. | |
74 | ||
75 | %description apidocs -l pl.UTF-8 | |
76 | Dokumentacja API biblioteki SDL2_gfx. | |
77 | ||
78 | %prep | |
79 | %setup -q | |
80 | %patch0 -p1 | |
81 | ||
82 | %build | |
83 | %{__libtoolize} | |
84 | %{__aclocal} | |
85 | %{__autoconf} | |
86 | %{__automake} | |
87 | %configure \ | |
88 | %ifnarch %{ix86} | |
89 | --disable-mmx | |
90 | %endif | |
91 | ||
92 | %{__make} | |
93 | ||
94 | %install | |
95 | rm -rf $RPM_BUILD_ROOT | |
96 | ||
97 | %{__make} install \ | |
98 | DESTDIR=$RPM_BUILD_ROOT | |
99 | ||
100 | # obsoleted by pkg-config | |
101 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libSDL2_gfx.la | |
102 | ||
103 | %clean | |
104 | rm -rf $RPM_BUILD_ROOT | |
105 | ||
106 | %post -p /sbin/ldconfig | |
107 | %postun -p /sbin/ldconfig | |
108 | ||
109 | %files | |
110 | %defattr(644,root,root,755) | |
111 | %doc AUTHORS COPYING ChangeLog README | |
112 | %attr(755,root,root) %{_libdir}/libSDL2_gfx-1.0.so.*.*.* | |
113 | %attr(755,root,root) %ghost %{_libdir}/libSDL2_gfx-1.0.so.0 | |
114 | ||
115 | %files devel | |
116 | %defattr(644,root,root,755) | |
117 | %attr(755,root,root) %{_libdir}/libSDL2_gfx.so | |
118 | %{_includedir}/SDL2/SDL2_framerate.h | |
119 | %{_includedir}/SDL2/SDL2_gfxPrimitives.h | |
120 | %{_includedir}/SDL2/SDL2_imageFilter.h | |
121 | %{_includedir}/SDL2/SDL2_rotozoom.h | |
122 | %{_pkgconfigdir}/SDL2_gfx.pc | |
123 | ||
124 | %files static | |
125 | %defattr(644,root,root,755) | |
126 | %{_libdir}/libSDL2_gfx.a | |
127 | ||
128 | %files apidocs | |
129 | %defattr(644,root,root,755) | |
130 | %doc Docs/html/* |