/[packages]/cauldron/SDL_sound/current/SPECS/SDL_sound.spec
ViewVC logotype

Contents of /cauldron/SDL_sound/current/SPECS/SDL_sound.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 42263 - (show annotations) (download)
Thu Jan 27 20:30:43 2011 UTC (13 years, 2 months ago) by stewb
File size: 3592 byte(s)
imported package SDL_sound
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 soundfile decoder
9 Name: SDL_sound
10 Version: 1.0.3
11 Release: %mkrel 8
12 Group: Sound
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 BuildRoot: %{_tmppath}/%{name}-buildroot
25
26 %description
27 SDL_sound is a library that handles the decoding of several popular
28 sound file formats, such as .WAV and .MP3. It is meant to make the
29 programmer's sound playback tasks simpler. The programmer gives
30 SDL_sound a filename, or feeds it data directly from one of many
31 sources, and then reads the decoded waveform data back at her
32 leisure. If resource constraints are a concern, SDL_sound can process
33 sound data in programmer-specified blocks. Alternately, SDL_sound can
34 decode a whole sound file and hand back a single pointer to the whole
35 waveform. SDL_sound can also handle sample rate, audio format, and
36 channel conversion on-the-fly and behind-the-scenes, if the programmer
37 desires.
38
39
40 %package -n %{libname}
41 Summary: SDL graphics drawing primitives and other support functions
42 Group: System/Libraries
43 Obsoletes: %oldlibname < 1.0.1-15
44
45 %description -n %{libname}
46 SDL_sound is a library that handles the decoding of several popular
47 sound file formats, such as .WAV and .MP3. It is meant to make the
48 programmer's sound playback tasks simpler. The programmer gives
49 SDL_sound a filename, or feeds it data directly from one of many
50 sources, and then reads the decoded waveform data back at her
51 leisure. If resource constraints are a concern, SDL_sound can process
52 sound data in programmer-specified blocks. Alternately, SDL_sound can
53 decode a whole sound file and hand back a single pointer to the whole
54 waveform. SDL_sound can also handle sample rate, audio format, and
55 channel conversion on-the-fly and behind-the-scenes, if the programmer
56 desires.
57
58 %package -n %{develname}
59 Summary: Header files and more to develop SDL_sound applications
60 Group: Development/C
61 Requires: %{libname} = %{version}-%{release}
62 Provides: lib%{name}-devel = %{version}-%{release}
63 Provides: %{name}-devel = %{version}-%{release}
64 Obsoletes: %oldlibname-devel < 1.0.1-15
65
66 %description -n %{develname}
67 Header files and more to develop SDL_sound applications.
68
69 %package -n %{staticname}
70 Summary: Static SDL_sound libraries
71 Group: Development/C
72 Requires: %{develname} = %{version}-%{release}
73 Obsoletes: %oldlibname-static-devel < 1.0.1-15
74
75 %description -n %{staticname}
76 Static SDL_sound libraries.
77
78 %prep
79 %setup -q
80
81 %build
82 export CPPFLAGS="-I%{_includedir}/libmodplug"
83 %configure2_5x
84 %make
85 doxygen
86
87 %install
88 rm -rf %{buildroot}
89 %makeinstall_std
90
91 %clean
92 rm -rf %{buildroot}
93
94 %if %mdkversion < 200900
95 %post -n %{libname} -p /sbin/ldconfig
96 %endif
97 %if %mdkversion < 200900
98 %postun -n %{libname} -p /sbin/ldconfig
99 %endif
100
101 %files
102 %defattr(-,root,root)
103 %doc README
104 %{_bindir}/*
105
106 %files -n %{libname}
107 %defattr(-,root,root)
108 %{_libdir}/lib*%{apiver}.so.%{major}*
109
110 %files -n %{develname}
111 %defattr(-,root,root)
112 %doc CHANGELOG TODO CREDITS docs/html
113 %{_libdir}/lib*.so
114 %attr(644,root,root) %{_libdir}/lib*.la
115 %{_includedir}/SDL/*
116
117 %files -n %{staticname}
118 %defattr(-,root,root)
119 %{_libdir}/lib*.a
120
121

  ViewVC Help
Powered by ViewVC 1.1.30