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