1 |
%define api 0.1 |
2 |
%define major 8 |
3 |
%define lib_name %mklibname %{name} %{api} %{major} |
4 |
%define develname %mklibname %{name} -d |
5 |
|
6 |
Name: SDLmm |
7 |
Summary: A C++ Wrapper for the Simple DirectMedia Layer |
8 |
Version: 0.1.8 |
9 |
Release: %mkrel 2 |
10 |
License: LGPLv2 |
11 |
Group: System/Libraries |
12 |
Source0: http://download.sourceforge.net/SDLmm/%{name}-%{version}.tar.bz2 |
13 |
Patch0: SDLmm-0.1.8-fix-underquoted-calls.patch |
14 |
Patch1: SDLmm-0.1.8-link.patch |
15 |
URL: http://sdlmm.sourceforge.net/ |
16 |
BuildRequires: SDL-devel |
17 |
|
18 |
%description |
19 |
SDLmm is a C++ glue for SDL, or the Simple DirectMedia Layer, which is a |
20 |
generic API that provides low level access to audio, keyboard, mouse, |
21 |
joystick, 3D hardware via OpenGL, and 2D framebuffer across multiple |
22 |
platforms. |
23 |
|
24 |
SDLmm aims to stay as close as possible to the C API while taking |
25 |
advantage of native C++ features like object orientation. |
26 |
|
27 |
%package -n %{lib_name} |
28 |
Summary: Main library for SDLmm |
29 |
Group: System/Libraries |
30 |
Provides: %{name} = %{version}-%{release} |
31 |
|
32 |
%description -n %{lib_name} |
33 |
This package contains the library needed to run programs dynamically |
34 |
linked with SDLmm. |
35 |
|
36 |
%package -n %{develname} |
37 |
Summary: Headers for developing programs that will use SDLmm |
38 |
Group: Development/C++ |
39 |
Requires: %{lib_name} = %{version} |
40 |
Provides: %{name}-devel = %{version}-%{release} |
41 |
|
42 |
%description -n %{develname} |
43 |
This package contains the headers that programmers will need to develop |
44 |
applications which will use SDLmm, the C++ interface to SDL. |
45 |
|
46 |
%prep |
47 |
%setup -q |
48 |
%patch0 -p1 -b .underquoted |
49 |
%patch1 -p0 -b .link |
50 |
|
51 |
%build |
52 |
%configure2_5x |
53 |
%make |
54 |
|
55 |
%install |
56 |
%makeinstall_std |
57 |
|
58 |
#multiarch |
59 |
%multiarch_binaries $RPM_BUILD_ROOT%{_bindir}/sdlmm-config |
60 |
|
61 |
%files -n %{lib_name} |
62 |
%doc AUTHORS |
63 |
%{_libdir}/libSDLmm-%{api}.so.%{major}* |
64 |
|
65 |
%files -n %{develname} |
66 |
%doc docs/html/*.{html,gif} NEWS README |
67 |
%{_bindir}/sdlmm-config |
68 |
%multiarch %{multiarch_bindir}/sdlmm-config |
69 |
%{_includedir}/* |
70 |
%{_libdir}/*.?a |
71 |
%{_libdir}/libSDLmm.a |
72 |
%{_libdir}/*.so |
73 |
%{_datadir}/aclocal/*.m4 |
74 |
%{_mandir}/*/* |