/[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 96685 - (show annotations) (download)
Mon May 9 17:49:13 2011 UTC (12 years, 11 months ago) by misc
File size: 2788 byte(s)
remove uneeded requires on esound-devel, it compile fine without it

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 6
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: libmikmod-devel
18 BuildRequires: libvorbis-devel
19 BuildRequires: libz-devel
20 BuildRequires: nas-devel
21 BuildRequires: libflac-devel
22
23 %description
24 SDL_mixer is a sample multi-channel audio mixer library. It supports any
25 number of simultaneously playing channels of 16 bit stereo audio, plus a
26 single channel of music, mixed by the popular MikMod MOD, Timidity MIDI
27 and SMPEG MP3 libraries.
28
29 %package -n %{libname}
30 Summary: Main library for %{name}
31 Group: System/Libraries
32 Obsoletes: %{_lib}SDL_mixer1.2_0 < 1.2.10
33 Provides: %{name} = %{version}-%{release}
34
35 %description -n %{libname}
36 This package contains the library needed to run programs dynamically
37 linked with %{name}.
38
39 %package -n %{develname}
40 Summary: Headers for developing programs that will use %{name}
41 Group: Development/C
42 Requires: %{libname} = %{version}-%{release}
43 Requires: SDL-devel
44 Provides: %{name}-devel = %{version}-%{release}
45 Provides: lib%{name}-devel = %{version}-%{release}
46 Provides: %{name}%{apiver}-devel = %{version}-%{release}
47 Obsoletes: %{_lib}SDL_mixer1.2-devel < 1.2.10
48
49 %description -n %{develname}
50 This package contains the headers that programmers will need to develop
51 applications which will use %{name}.
52
53 %package -n %{name}-player
54 Summary: Players using %{name}
55 Group: System/Libraries
56 Obsoletes: %{_lib}SDL_mixer-test < 1.2.10
57 Requires: %{libname} = %{version}-%{release}
58
59 %description -n %{name}-player
60 This package contains binary to test the associated library.
61
62 %prep
63 %setup -q
64 %patch0 -p1
65
66 %build
67 %configure2_5x --enable-music-libmikmod=yes \
68 --enable-music-native-midi \
69 --disable-music-ogg-shared \
70 --disable-music-flac-shared \
71 --disable-music-mod-shared \
72 --disable-music-mp3-shared
73 %make
74
75 iconv -f ISO-8859-1 -t UTF-8 CHANGES > CHANGES.tmp
76 touch -r CHANGES CHANGES.tmp
77 mv CHANGES.tmp CHANGES
78
79 %install
80 rm -rf %{buildroot}
81 %makeinstall_std install-bin
82
83 %clean
84 rm -rf %{buildroot}
85
86 %files -n %{name}-player
87 %defattr(-, root, root)
88 %doc README
89 %{_bindir}/playwave
90 %{_bindir}/playmus
91
92 %files -n %{libname}
93 %defattr(-,root,root)
94 %doc timidity/FAQ timidity/README
95 %{_libdir}/lib*%{apiver}.so.%{major}*
96
97 %files -n %{develname}
98 %defattr(-,root,root)
99 %doc README CHANGES
100 %{_libdir}/*a
101 %{_libdir}/lib*.so
102 %{_includedir}/SDL/*
103 %{_libdir}/pkgconfig/%{name}.pc
104
105

  ViewVC Help
Powered by ViewVC 1.1.30