1 Summary: Graphics primitives and surface functions for SDL2
2 Summary(pl.UTF-8): Funkcje do figur graficznych i powierzchni dla SDL2
6 License: ZLib (BSD-like)
8 #Source0Download: http://www.ferzkopp.net/wordpress/2016/01/02/sdl_gfx-sdl2_gfx/
9 Source0: http://www.ferzkopp.net/Software/SDL2_gfx/%{name}-%{version}.tar.gz
10 # Source0-md5: 6cd25c38a803295348e8c00e9c69d364
11 Patch0: %{name}-local-labels.patch
12 URL: http://www.ferzkopp.net/wordpress/2016/01/02/sdl_gfx-sdl2_gfx/
13 BuildRequires: SDL2-devel >= 2.0.0
14 BuildRequires: autoconf >= 2.59-9
15 BuildRequires: automake
16 BuildRequires: libtool >= 2:2
17 BuildRequires: pkgconfig
18 BuildRequires: rpmbuild(macros) >= 1.566
19 BuildRequires: sed >= 4.0
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 The SDL2_gfx library provides the basic drawing functions such as
24 lines, circles or polygons provided by SDL_gfx on SDL2 against
27 The current components of the SDL_gfx2 library are:
28 - Graphic Primitives (SDL2_gfxPrimitves.h)
29 - Surface Rotozoomer (SDL2_rotozoom.h)
30 - Framerate control (SDL2_framerate.h)
31 - MMX image filters (SDL2_imageFilter.h).
33 %description -l pl.UTF-8
34 Biblioteka SDL2_gfx udostępnia użytkownikom biblioteki SDL2 podstawowe
35 funkcje do rysowania figur takich jak linie, okręgi czy wielokąty,
36 udostępniane wcześniej przez SDL_gfx.
38 Aktualnie SDL2_gfx zawiera następujące komponenty:
39 - prymitywy graficzne (SDL2_gfxPrimitives.h)
40 - Rotozoomer (SDL2_rotozoom.h)
41 - kontrola szybkości rysowania obrazu (SDL2_framerate.h)
42 - filtry obrazów używające MMX (SDL2_imageFilter.h).
45 Summary: Header files and more to develop SDL2_gfx applications
46 Summary(pl.UTF-8): Pliki nagłówkowe do rozwijania aplikacji używających SDL2_gfx
47 Group: Development/Libraries
48 Requires: %{name} = %{version}-%{release}
49 Requires: SDL2-devel >= 2.0.0
52 Header files and more to develop SDL2_gfx applications.
54 %description devel -l pl.UTF-8
55 Pliki nagłówkowe do rozwijania aplikacji używających SDL2_gfx.
58 Summary: Static SDL2_gfx library
59 Summary(pl.UTF-8): Statyczna biblioteka SDL2_gfx
60 Group: Development/Libraries
61 Requires: %{name}-devel = %{version}-%{release}
64 Static SDL2_gfx library.
66 %description static -l pl.UTF-8
67 Statyczna biblioteka SDL2_gfx.
70 Summary: API documentation for SDL2_gfx library
71 Summary(pl.UTF-8): Dokumentacja API biblioteki SDL2_gfx
75 API documentation for SDL2_gfx library.
77 %description apidocs -l pl.UTF-8
78 Dokumentacja API biblioteki SDL2_gfx.
97 rm -rf $RPM_BUILD_ROOT
100 DESTDIR=$RPM_BUILD_ROOT
102 # obsoleted by pkg-config
103 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libSDL2_gfx.la
106 rm -rf $RPM_BUILD_ROOT
108 %post -p /sbin/ldconfig
109 %postun -p /sbin/ldconfig
112 %defattr(644,root,root,755)
113 %doc AUTHORS COPYING ChangeLog README
114 %attr(755,root,root) %{_libdir}/libSDL2_gfx-1.0.so.*.*.*
115 %attr(755,root,root) %ghost %{_libdir}/libSDL2_gfx-1.0.so.0
118 %defattr(644,root,root,755)
119 %attr(755,root,root) %{_libdir}/libSDL2_gfx.so
120 %{_includedir}/SDL2/SDL2_framerate.h
121 %{_includedir}/SDL2/SDL2_gfxPrimitives.h
122 %{_includedir}/SDL2/SDL2_imageFilter.h
123 %{_includedir}/SDL2/SDL2_rotozoom.h
124 %{_pkgconfigdir}/SDL2_gfx.pc
127 %defattr(644,root,root,755)
128 %{_libdir}/libSDL2_gfx.a
131 %defattr(644,root,root,755)