]> git.pld-linux.org Git - packages/SDL_gfx.git/blob - SDL_gfx.spec
noarch apidocs
[packages/SDL_gfx.git] / SDL_gfx.spec
1 Summary:        SDL graphics drawing primitives and other supporting functions
2 Summary(pl.UTF-8):      Funkcje rysowania grafiki i inne pomocnicze dla SDL
3 Name:           SDL_gfx
4 Version:        2.0.26
5 Release:        2
6 License:        ZLib (BSD-like)
7 Group:          Libraries
8 #Source0Download: http://www.ferzkopp.net/wordpress/2016/01/02/sdl_gfx-sdl2_gfx/
9 Source0:        http://www.ferzkopp.net/Software/SDL_gfx-2.0/%{name}-%{version}.tar.gz
10 # Source0-md5:  0b3b5ab5f9e7d10f1faf14d4255db6ba
11 Patch0:         %{name}-local-labels.patch
12 URL:            http://www.ferzkopp.net/wordpress/2016/01/02/sdl_gfx-sdl2_gfx/
13 BuildRequires:  SDL-devel >= 1.2.0
14 BuildRequires:  autoconf >= 2.59-9
15 BuildRequires:  automake
16 BuildRequires:  libtool
17 BuildRequires:  pkgconfig
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %description
21 The SDL_gfx library evolved out of the SDL_gfxPrimitives code.
22
23 The current components of the SDL_gfx library are:
24 - Graphic Primitives (SDL_gfxPrimitves.h)
25 - Rotozoomer (SDL_rotozoom.h)
26 - Framerate control (SDL_framerate.h)
27 - MMX image filters (SDL_imageFilter.h)
28
29 The library is backwards compatible to the above mentioned code. It's
30 is written in plain C and can be used in C++ code.
31
32 %description -l pl.UTF-8
33 Biblioteka SDL_gfx wyewoluowała z kodu SDL_gfxPrimitives.
34
35 Aktualnie SDL_gfx zawiera następujące komponenty:
36 - prymitywy graficzne (SDL_gfxPrimitives.h)
37 - Rotozoomer (SDL_rotozoom.h)
38 - kontrola szybkości rysowania obrazu (SDL_framerate.h)
39 - filtry obrazów używające MMX (SDL_imageFilter.h).
40
41 Biblioteka jest wstecznie kompatybilna z wyżej wspomnianym kodem. Jest
42 napisana w czystym C, może też być używana w kodzie C++.
43
44 %package devel
45 Summary:        Header files and more to develop SDL_gfx applications
46 Summary(pl.UTF-8):      Pliki nagłówkowe do rozwijania aplikacji używających SDL_gfx
47 Group:          Development/Libraries
48 Requires:       %{name} = %{version}-%{release}
49 Requires:       SDL-devel >= 1.2.0
50
51 %description devel
52 Header files and more to develop SDL_gfx applications.
53
54 %description devel -l pl.UTF-8
55 Pliki nagłówkowe do rozwijania aplikacji używających SDL_gfx.
56
57 %package static
58 Summary:        Static SDL_gfx library
59 Summary(pl.UTF-8):      Statyczna biblioteka SDL_gfx
60 Group:          Development/Libraries
61 Requires:       %{name}-devel = %{version}-%{release}
62
63 %description static
64 Static SDL_gfx library.
65
66 %description static -l pl.UTF-8
67 Statyczna biblioteka SDL_gfx.
68
69 %package apidocs
70 Summary:        API documentation for SDL_gfx library
71 Summary(pl.UTF-8):      Dokumentacja API biblioteki SDL_gfx
72 Group:          Documentation
73 BuildArch:      noarch
74
75 %description apidocs
76 API documentation for SDL_gfx library.
77
78 %description apidocs -l pl.UTF-8
79 Dokumentacja API biblioteki SDL_gfx.
80
81 %prep
82 %setup -q
83 %patch0 -p1
84
85 %build
86 %{__libtoolize}
87 %{__aclocal}
88 %{__autoconf}
89 %{__automake}
90
91 %configure \
92 %ifnarch %{ix86}
93         --disable-mmx
94 %endif
95
96 %{__make}
97
98 %install
99 rm -rf $RPM_BUILD_ROOT
100
101 %{__make} install \
102         DESTDIR=$RPM_BUILD_ROOT
103
104 %clean
105 rm -rf $RPM_BUILD_ROOT
106
107 %post   -p /sbin/ldconfig
108 %postun -p /sbin/ldconfig
109
110 %files
111 %defattr(644,root,root,755)
112 %doc AUTHORS COPYING ChangeLog LICENSE README
113 %attr(755,root,root) %{_libdir}/libSDL_gfx.so.*.*.*
114 %attr(755,root,root) %ghost %{_libdir}/libSDL_gfx.so.16
115
116 %files devel
117 %defattr(644,root,root,755)
118 %attr(755,root,root) %{_libdir}/libSDL_gfx.so
119 %{_libdir}/libSDL_gfx.la
120 %{_includedir}/SDL/SDL_framerate.h
121 %{_includedir}/SDL/SDL_gfx*.h
122 %{_includedir}/SDL/SDL_imageFilter.h
123 %{_includedir}/SDL/SDL_rotozoom.h
124 %{_pkgconfigdir}/SDL_gfx.pc
125
126 %files static
127 %defattr(644,root,root,755)
128 %{_libdir}/libSDL_gfx.a
129
130 %files apidocs
131 %defattr(644,root,root,755)
132 %doc Docs/{Screenshots,html,*.png,index.html}
This page took 0.094287 seconds and 3 git commands to generate.