1 |
%define major 14 |
2 |
%define libname %mklibname %{name} %{major} |
3 |
%define develname %mklibname %{name} -d |
4 |
%define staticname %mklibname %{name} -d -s |
5 |
|
6 |
Summary: SDL graphics drawing primitives and other support functions |
7 |
Name: SDL_gfx |
8 |
Version: 2.0.24 |
9 |
Release: %mkrel 2 |
10 |
License: LGPLv2+ |
11 |
Group: System/Libraries |
12 |
URL: http://www.ferzkopp.net/~aschiffler/Software/SDL_gfx-2.0/index.html |
13 |
Source0: http://www.ferzkopp.net/Software/SDL_gfx-2.0/%{name}-%{version}.tar.gz |
14 |
BuildRequires: SDL-devel >= 1.2.0 |
15 |
|
16 |
%description |
17 |
The SDL_gfx library evolved out of the SDL_gfxPrimitives code. |
18 |
|
19 |
The current components of the SDL_gfx library are: |
20 |
- Graphic Primitives (SDL_gfxPrimitves.h) |
21 |
- Rotozoomer (SDL_rotozoom.h) |
22 |
- Framerate control (SDL_framerate.h) |
23 |
- MMX image filters (SDL_imageFilter.h) |
24 |
|
25 |
The library is backwards compatible to the above mentioned code. It's |
26 |
is written in plain C and can be used in C++ code. |
27 |
|
28 |
%package -n %{libname} |
29 |
Summary: SDL graphics drawing primitives and other support functions |
30 |
Group: System/Libraries |
31 |
|
32 |
%description -n %{libname} |
33 |
The SDL_gfx library evolved out of the SDL_gfxPrimitives code. |
34 |
|
35 |
The current components of the SDL_gfx library are: |
36 |
- Graphic Primitives (SDL_gfxPrimitves.h) |
37 |
- Rotozoomer (SDL_rotozoom.h) |
38 |
- Framerate control (SDL_framerate.h) |
39 |
- MMX image filters (SDL_imageFilter.h) |
40 |
|
41 |
The library is backwards compatible to the above mentioned code. It's |
42 |
is written in plain C and can be used in C++ code. |
43 |
|
44 |
%package -n %{develname} |
45 |
Summary: Header files and more to develop SDL_gfx applications |
46 |
Group: Development/C |
47 |
Requires: %{libname} = %{version}-%{release} |
48 |
Requires: SDL-devel |
49 |
Provides: %{name}-devel = %{version}-%{release} |
50 |
Provides: lib%{name}-devel = %{version}-%{release} |
51 |
Obsoletes: %mklibname %{name} 0 -d |
52 |
|
53 |
%description -n %{develname} |
54 |
Header files and more to develop SDL_gfx applications. |
55 |
|
56 |
%package -n %{staticname} |
57 |
Summary: Static SDL_gfx libraries |
58 |
Group: Development/C |
59 |
Requires: %{develname} = %{version}-%{release} |
60 |
Obsoletes: %mklibname %{name} 0 -d -s |
61 |
|
62 |
%description -n %{staticname} |
63 |
Static SDL_gfx libraries. |
64 |
|
65 |
%prep |
66 |
%setup -q |
67 |
|
68 |
%build |
69 |
%configure2_5x --disable-mmx --enable-static |
70 |
%make |
71 |
|
72 |
%install |
73 |
%makeinstall_std |
74 |
|
75 |
rm -f %{buildroot}%{_libdir}/*.la |
76 |
|
77 |
%files -n %{libname} |
78 |
%{_libdir}/lib*.so.%{major}* |
79 |
|
80 |
%files -n %{develname} |
81 |
%doc README ChangeLog AUTHORS Docs |
82 |
%{_libdir}/lib*.so |
83 |
%{_libdir}/pkgconfig/*.pc |
84 |
%{_includedir}/* |
85 |
|
86 |
%files -n %{staticname} |
87 |
%{_libdir}/lib*.a |