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

  ViewVC Help
Powered by ViewVC 1.1.28