]>
Commit | Line | Data |
---|---|---|
1 | Summary: Simple DirectMedia Layer - Sample Mixer Library | |
2 | Name: SDL_mixer | |
3 | Version: 1.0.5 | |
4 | Release: 1 | |
5 | License: LGPL | |
6 | Group: Libraries | |
7 | Source0: http://www.libsdl.org/projects/SDL_mixer/src/%{name}-%{version}.tar.gz | |
8 | URL: http://www.libsdl.org/projects/SDL_mixer/index.html | |
9 | BuildRequires: esound-devel | |
10 | BuildRequires: SDL-devel >= 1.1.1 | |
11 | BuildRequires: XFree86-devel | |
12 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
13 | ||
14 | %description | |
15 | Due to popular demand, here is a simple multi-channel audio mixer. It | |
16 | supports 4 channels of 16 bit stereo audio, plus a single channel of | |
17 | music, mixed by the popular MikMod MOD, Timidity MIDI and SMPEG MP3 | |
18 | libraries. | |
19 | ||
20 | %package devel | |
21 | Summary: Header files and more to develop SDL_mixer applications | |
22 | Group: Development/Libraries | |
23 | Group(fr): Development/Librairies | |
24 | Group(pl): Programowanie/Biblioteki | |
25 | Requires: %{name} = %{version} | |
26 | Requires: SDL-devel | |
27 | ||
28 | %description devel | |
29 | Header files and more to develop SDL_mixer applications. | |
30 | ||
31 | %package static | |
32 | Summary: Statis SDL_mixer libraries | |
33 | Group: Development/Libraries | |
34 | Group(fr): Development/Librairies | |
35 | Group(pl): Programowanie/Biblioteki | |
36 | Requires: %{name}-devel = %{version} | |
37 | ||
38 | %description static | |
39 | Statis SDL_mixer libraries. | |
40 | ||
41 | %prep | |
42 | %setup -q | |
43 | ||
44 | %build | |
45 | LDFLAGS="-s"; export LDFLAGS | |
46 | %configure | |
47 | %{__make} | |
48 | ||
49 | %install | |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | ||
52 | %{__make} install DESTDIR=$RPM_BUILD_ROOT | |
53 | ||
54 | strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/lib*.so.*.* | |
55 | ||
56 | gzip -9nf README CHANGES | |
57 | ||
58 | %post -p /sbin/ldconfig | |
59 | %postun -p /sbin/ldconfig | |
60 | ||
61 | %clean | |
62 | rm -rf $RPM_BUILD_ROOT | |
63 | ||
64 | %files | |
65 | %defattr(644,root,root,755) | |
66 | %attr(755,root,root) %{_bindir}/playmus | |
67 | %attr(755,root,root) %{_bindir}/playwave | |
68 | %attr(755,root,root) %{_libdir}/lib*.so.*.* | |
69 | ||
70 | %files devel | |
71 | %defattr(644,root,root,755) | |
72 | %doc *.gz | |
73 | %attr(755,root,root) %{_libdir}/lib*.so | |
74 | %attr(755,root,root) %{_libdir}/lib*.la | |
75 | %{_includedir}/SDL/* | |
76 | ||
77 | %files static | |
78 | %defattr(644,root,root,755) | |
79 | %{_libdir}/lib*.a |