]>
Commit | Line | Data |
---|---|---|
e204f46d | 1 | Summary: An abstract soundfile decoder. |
2 | Name: SDL_sound | |
3 | Version: 1.0.0 | |
4 | Release: 1 | |
5 | License: LGPL | |
6 | Group: Libraries | |
7 | Source0: http://www.icculus.org/%{name}/downloads//%{name}-%{version}.tar.gz | |
8 | URL: http://www.icculus.org/SDL_sound/ | |
9 | BuildRequires: autoconf | |
10 | BuildRequires: automake | |
11 | BuildRequires: libtool | |
12 | BuildRequires: SDL-devel >= 1.2.0 | |
13 | Requires: SDL >= 1.2.0 | |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
15 | ||
16 | %define _prefix /usr/X11R6 | |
17 | ||
18 | %description | |
19 | SDL_sound is a library that handles the decoding of several popular | |
20 | sound file formats, such as .WAV and .MP3. It is meant to make the | |
21 | programmer's sound playback tasks simpler. The programmer gives | |
22 | SDL_sound a filename, or feeds it data directly from one of many | |
23 | sources, and then reads the decoded waveform data back at her leisure. | |
24 | If resource constraints are a concern, SDL_sound can process sound | |
25 | data in programmer-specified blocks. Alternately, SDL_sound can decode | |
26 | a whole sound file and hand back a single pointer to the whole | |
27 | waveform. SDL_sound can also handle sample rate, audio format, and | |
28 | channel conversion on-the-fly and behind-the-scenes, if the programmer | |
29 | desires. | |
30 | ||
31 | %package devel | |
32 | Summary: Header files and more to develop SDL_sound applications | |
33 | Group: Development/Libraries | |
34 | Requires: %{name} = %{version} | |
35 | Requires: SDL-devel | |
36 | ||
37 | %description devel | |
38 | Header files and more to develop SDL_sound applications. | |
39 | ||
40 | %package static | |
41 | Summary: Static SDL_sound libraries | |
42 | Group: Development/Libraries | |
43 | Requires: %{name}-devel = %{version} | |
44 | ||
45 | %description static | |
46 | Statis SDL_net libraries. | |
47 | ||
48 | %prep | |
49 | %setup -q | |
50 | ||
51 | %build | |
52 | %configure | |
53 | %{__make} | |
54 | ||
55 | %install | |
56 | rm -rf $RPM_BUILD_ROOT | |
57 | ||
58 | %{__make} install DESTDIR=$RPM_BUILD_ROOT | |
59 | ||
60 | %clean | |
61 | rm -rf $RPM_BUILD_ROOT | |
62 | ||
63 | %post -p /sbin/ldconfig | |
64 | %postun -p /sbin/ldconfig | |
65 | ||
66 | %files | |
67 | %defattr(644,root,root,755) | |
68 | %attr(755,root,root) %{_bindir}/playsound | |
69 | %attr(755,root,root) %{_libdir}/lib*.so.*.* | |
70 | ||
71 | %files devel | |
72 | %defattr(644,root,root,755) | |
73 | %doc README | |
74 | %attr(755,root,root) %{_libdir}/lib*.so | |
75 | %{_libdir}/lib*.la | |
76 | %{_includedir}/SDL/* | |
77 | ||
78 | %files static | |
79 | %defattr(644,root,root,755) | |
80 | %{_libdir}/lib*.a |