1 |
%define major 1 |
2 |
%define apiver 1.0 |
3 |
%define libname %mklibname %name %{apiver} %{major} |
4 |
%define develname %mklibname %{name} -d |
5 |
%define staticname %mklibname %{name} -d -s |
6 |
%define oldlibname %mklibname %name 1.0 |
7 |
|
8 |
Summary: An abstract SDL sound-file decoder |
9 |
Name: SDL_sound |
10 |
Version: 1.0.3 |
11 |
Release: %mkrel 12 |
12 |
Group: System/Libraries |
13 |
License: LGPLv2+ |
14 |
URL: http://www.icculus.org/SDL_sound |
15 |
Source: http://www.icculus.org/SDL_sound/downloads/%{name}-%{version}.tar.gz |
16 |
BuildRequires: SDL-devel |
17 |
BuildRequires: libflac-devel |
18 |
BuildRequires: libmikmod-devel |
19 |
BuildRequires: libmodplug-devel |
20 |
BuildRequires: libvorbis-devel |
21 |
BuildRequires: libspeex-devel |
22 |
BuildRequires: physfs-devel |
23 |
BuildRequires: doxygen |
24 |
|
25 |
%description |
26 |
SDL_sound is a library that handles the decoding of several popular |
27 |
sound file formats, such as .WAV and .MP3. It is meant to make the |
28 |
programmer's sound playback tasks simpler. The programmer gives |
29 |
SDL_sound a file-name, or feeds it data directly from one of many |
30 |
sources, and then reads the decoded waveform data back at her |
31 |
leisure. If resource constraints are a concern, SDL_sound can process |
32 |
sound data in programmer-specified blocks. Alternately, SDL_sound can |
33 |
decode a whole sound file and hand back a single pointer to the whole |
34 |
waveform. SDL_sound can also handle sample rate, audio format, and |
35 |
channel conversion on-the-fly and behind-the-scenes, if the programmer |
36 |
desires. |
37 |
|
38 |
%package -n %{libname} |
39 |
Summary: SDL graphics drawing primitives and other support functions |
40 |
Group: System/Libraries |
41 |
Obsoletes: %oldlibname < 1.0.1-15 |
42 |
|
43 |
%description -n %{libname} |
44 |
SDL_sound is a library that handles the decoding of several popular |
45 |
sound file formats, such as .WAV and .MP3. It is meant to make the |
46 |
programmer's sound playback tasks simpler. The programmer gives |
47 |
SDL_sound a file-name, or feeds it data directly from one of many |
48 |
sources, and then reads the decoded waveform data back at her |
49 |
leisure. If resource constraints are a concern, SDL_sound can process |
50 |
sound data in programmer-specified blocks. Alternately, SDL_sound can |
51 |
decode a whole sound file and hand back a single pointer to the whole |
52 |
waveform. SDL_sound can also handle sample rate, audio format, and |
53 |
channel conversion on-the-fly and behind-the-scenes, if the programmer |
54 |
desires. |
55 |
|
56 |
%package -n %{develname} |
57 |
Summary: Header files and more to develop SDL_sound applications |
58 |
Group: Development/C |
59 |
Requires: %{libname} = %{version}-%{release} |
60 |
Provides: lib%{name}-devel = %{version}-%{release} |
61 |
Provides: %{name}-devel = %{version}-%{release} |
62 |
Obsoletes: %oldlibname-devel < 1.0.1-15 |
63 |
|
64 |
%description -n %{develname} |
65 |
Header files and more to develop SDL_sound applications. |
66 |
|
67 |
%package -n %{staticname} |
68 |
Summary: Static SDL_sound libraries |
69 |
Group: Development/C |
70 |
Requires: %{develname} = %{version}-%{release} |
71 |
Obsoletes: %oldlibname-static-devel < 1.0.1-15 |
72 |
|
73 |
%description -n %{staticname} |
74 |
Static SDL_sound libraries. |
75 |
|
76 |
%prep |
77 |
%setup -q |
78 |
|
79 |
%build |
80 |
export CPPFLAGS="-I%{_includedir}/libmodplug" |
81 |
%configure2_5x --enable-static |
82 |
%make |
83 |
doxygen |
84 |
|
85 |
%install |
86 |
%makeinstall_std |
87 |
|
88 |
rm -f %buildroot%_libdir/*.la |
89 |
|
90 |
%files |
91 |
%doc README |
92 |
%{_bindir}/* |
93 |
|
94 |
%files -n %{libname} |
95 |
%{_libdir}/lib*%{apiver}.so.%{major}* |
96 |
|
97 |
%files -n %{develname} |
98 |
%doc CHANGELOG TODO CREDITS docs/html |
99 |
%{_libdir}/lib*.so |
100 |
%{_includedir}/SDL/* |
101 |
|
102 |
%files -n %{staticname} |
103 |
%{_libdir}/lib*.a |