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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 18958 - (show annotations) (download)
Sat Jan 15 15:49:31 2011 UTC (13 years, 3 months ago) by supp
File size: 2852 byte(s)
- add patch (from upstream) fixing some uninitialized values...
1 %define major 0
2 %define apiver 1.2
3 %define libname %mklibname %{name} %{apiver} %{major}
4 %define develname %mklibname %{name} -d
5 %define version 1.2.11
6
7 Summary: Simple DirectMedia Layer - mixer
8 Name: SDL_mixer
9 Version: %{version}
10 Release: %mkrel 1
11 License: LGPLv2+
12 Group: System/Libraries
13 URL: http://www.libsdl.org/projects/SDL_mixer/
14 Source0: http://www.libsdl.org/projects/SDL_mixer/release/%{name}-%{version}.tar.gz
15 Patch0: SDL_mixer-1.2.11-mga-uninit-var-fix.patch
16 BuildRequires: SDL-devel >= 1.2.10
17 BuildRequires: esound-devel
18 BuildRequires: libmikmod-devel
19 BuildRequires: oggvorbis-devel
20 BuildRequires: libz-devel
21 BuildRequires: nas-devel
22 BuildRequires: smpeg-devel >= 0.4.3
23 BuildRequires: libflac-devel
24
25 %description
26 SDL_mixer is a sample multi-channel audio mixer library. It supports any
27 number of simultaneously playing channels of 16 bit stereo audio, plus a
28 single channel of music, mixed by the popular MikMod MOD, Timidity MIDI
29 and SMPEG MP3 libraries.
30
31 %package -n %{libname}
32 Summary: Main library for %{name}
33 Group: System/Libraries
34 Obsoletes: %{_lib}SDL_mixer1.2_0 < 1.2.10
35 Provides: %{name} = %{version}-%{release}
36
37 %description -n %{libname}
38 This package contains the library needed to run programs dynamically
39 linked with %{name}.
40
41 %package -n %{develname}
42 Summary: Headers for developing programs that will use %{name}
43 Group: Development/C
44 Requires: %{libname} = %{version}-%{release}
45 Requires: SDL-devel
46 Provides: %{name}-devel = %{version}-%{release}
47 Provides: lib%{name}-devel = %{version}-%{release}
48 Provides: %{name}%{apiver}-devel = %{version}-%{release}
49 Obsoletes: %{_lib}SDL_mixer1.2-devel < 1.2.10
50
51 %description -n %{develname}
52 This package contains the headers that programmers will need to develop
53 applications which will use %{name}.
54
55 %package -n %{name}-player
56 Summary: Players using %{name}
57 Group: System/Libraries
58 Obsoletes: %{_lib}SDL_mixer-test < 1.2.10
59 Requires: %{libname} = %{version}-%{release}
60
61 %description -n %{name}-player
62 This package contains binary to test the associated library.
63
64 %prep
65 %setup -q
66 %patch0 -p1
67
68 %build
69 %configure2_5x --enable-music-libmikmod=yes \
70 --enable-music-native-midi \
71 --disable-music-ogg-shared \
72 --disable-music-flac-shared \
73 --disable-music-mod-shared \
74 --disable-music-mp3-shared
75 %make
76
77 iconv -f ISO-8859-1 -t UTF-8 CHANGES > CHANGES.tmp
78 touch -r CHANGES CHANGES.tmp
79 mv CHANGES.tmp CHANGES
80
81 %install
82 rm -rf %{buildroot}
83 %makeinstall_std install-bin
84
85 %clean
86 rm -rf %{buildroot}
87
88 %files -n %{name}-player
89 %defattr(-, root, root)
90 %doc README
91 %{_bindir}/playwave
92 %{_bindir}/playmus
93
94 %files -n %{libname}
95 %defattr(-,root,root)
96 %doc timidity/FAQ timidity/README
97 %{_libdir}/lib*%{apiver}.so.%{major}*
98
99 %files -n %{develname}
100 %defattr(-,root,root)
101 %doc README CHANGES
102 %{_libdir}/*a
103 %{_libdir}/lib*.so
104 %{_includedir}/SDL/*
105 %{_libdir}/pkgconfig/%{name}.pc
106
107

  ViewVC Help
Powered by ViewVC 1.1.30