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

  ViewVC Help
Powered by ViewVC 1.1.28