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