]>
Commit | Line | Data |
---|---|---|
4a37b7d1 | 1 | Summary: Simple DirectMedia Layer - Sample Mixer Library |
2 | Name: SDL_mixer | |
5ec40e03 | 3 | Version: 1.0.6 |
4a37b7d1 | 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) | |
b346880d | 13 | |
14 | %description | |
4a37b7d1 | 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 | |
b346880d | 18 | libraries. |
19 | ||
20 | %package devel | |
4a37b7d1 | 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 | |
b346880d | 27 | |
28 | %description devel | |
4a37b7d1 | 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. | |
b346880d | 40 | |
41 | %prep | |
4a37b7d1 | 42 | %setup -q |
b346880d | 43 | |
44 | %build | |
4a37b7d1 | 45 | LDFLAGS="-s"; export LDFLAGS |
46 | %configure | |
47 | %{__make} | |
b346880d | 48 | |
49 | %install | |
50 | rm -rf $RPM_BUILD_ROOT | |
4a37b7d1 | 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 | |
b346880d | 60 | |
61 | %clean | |
62 | rm -rf $RPM_BUILD_ROOT | |
63 | ||
64 | %files | |
4a37b7d1 | 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.*.* | |
b346880d | 69 | |
70 | %files devel | |
4a37b7d1 | 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 |