1 |
blino |
24858 |
%define build_3264bit 0 |
2 |
|
|
%{?_with_3264bit: %{expand: %%global build_3264bit 1}} |
3 |
|
|
%{?_without_3264bit: %{expand: %%global build_3264bit 0}} |
4 |
|
|
%if %{build_3264bit} |
5 |
|
|
%define pkgext 32 |
6 |
|
|
%else |
7 |
|
|
%define pkgext %{nil} |
8 |
|
|
%endif |
9 |
|
|
|
10 |
|
|
%define name mplayer%{pkgext} |
11 |
|
|
%define Name MPlayer |
12 |
|
|
%define Summary Movie player for linux |
13 |
luigiwalser |
261011 |
%define prerel %{nil} |
14 |
|
|
%define version 1.1 |
15 |
luigiwalser |
443885 |
%define svn r36347 |
16 |
fwang |
425843 |
%define ffmpegversion 1.2.1 |
17 |
luigiwalser |
261011 |
%if "%{svn}" != "" |
18 |
luigiwalser |
256023 |
%define fversion %{svn} |
19 |
luigiwalser |
261011 |
%else |
20 |
|
|
%define fversion %{version} |
21 |
|
|
%endif |
22 |
|
|
%if "%{prerel}" != "" |
23 |
|
|
%if "%{svn}" != "" |
24 |
luigiwalser |
412435 |
%define rel 1.%{prerel}.0.%{svn}.1 |
25 |
blino |
24858 |
%else |
26 |
luigiwalser |
261011 |
%define rel 1.%{prerel}.1 |
27 |
blino |
24858 |
%endif |
28 |
luigiwalser |
261011 |
%else |
29 |
|
|
%if "%{svn}" != "" |
30 |
luigiwalser |
443885 |
%define rel 14.%{svn}.1 |
31 |
luigiwalser |
261011 |
%else |
32 |
fwang |
425843 |
%define rel 14 |
33 |
luigiwalser |
261011 |
%endif |
34 |
|
|
%endif |
35 |
|
|
%define release %mkrel %{rel} |
36 |
blino |
24858 |
|
37 |
|
|
%define build_plf 0 |
38 |
|
|
%define build_optimization 0 |
39 |
|
|
%define build_debug 0 |
40 |
|
|
%define build_mencoder 1 |
41 |
|
|
%define build_gui 1 |
42 |
luigiwalser |
196696 |
%define build_system_ffmpeg 1 |
43 |
blino |
24858 |
|
44 |
|
|
%define build_yasm 1 |
45 |
|
|
%define build_live 1 |
46 |
|
|
%define build_vesa 1 |
47 |
|
|
%define build_theora 1 |
48 |
|
|
%define build_ggi 0 |
49 |
|
|
%define build_lirc 1 |
50 |
|
|
%define build_xmms 0 |
51 |
|
|
%define build_amr 0 |
52 |
|
|
%define build_arts 0 |
53 |
|
|
%define build_aa 1 |
54 |
luigiwalser |
196699 |
%define build_cdda 0 |
55 |
blino |
24858 |
%define build_compiz 0 |
56 |
|
|
%define build_dirac 1 |
57 |
|
|
%define build_dv 1 |
58 |
|
|
%define build_sdl 1 |
59 |
|
|
%define build_lzo 1 |
60 |
|
|
%define build_smb 1 |
61 |
|
|
%define build_mga 1 |
62 |
|
|
%define build_fbdev 1 |
63 |
|
|
%define build_dvb 1 |
64 |
|
|
%define build_fribidi 1 |
65 |
|
|
%define build_enca 1 |
66 |
|
|
%define build_alsa 1 |
67 |
|
|
%define build_jack 1 |
68 |
|
|
%define build_openal 0 |
69 |
|
|
%define build_pulse 1 |
70 |
|
|
%define build_schroedinger 1 |
71 |
|
|
%define build_twolame 0 |
72 |
|
|
%define build_lame 0 |
73 |
|
|
%define build_faac 0 |
74 |
|
|
%define build_faad 0 |
75 |
|
|
%define build_x264 0 |
76 |
|
|
%define build_xvid 0 |
77 |
|
|
%define build_dts 0 |
78 |
|
|
%define build_directfb 1 |
79 |
|
|
%define build_v4l2 1 |
80 |
|
|
%define build_xvmc 1 |
81 |
|
|
%define build_vdpau 1 |
82 |
|
|
%define build_ivtv 0 |
83 |
|
|
%define build_libass 1 |
84 |
|
|
%define build_vpx 1 |
85 |
|
|
%define build_rtmp 1 |
86 |
ahmad |
81539 |
%define build_zr 0 |
87 |
luigiwalser |
196698 |
%define build_libnut 1 |
88 |
luigiwalser |
196699 |
%define build_cdio 1 |
89 |
|
|
%if %build_cdio |
90 |
|
|
%define build_cdda 0 |
91 |
|
|
%endif |
92 |
fwang |
225140 |
%define build_bluray 1 |
93 |
blino |
24858 |
|
94 |
|
|
%define build_smb 0 |
95 |
|
|
|
96 |
|
|
%ifnarch %ix86 |
97 |
|
|
%define build_vesa 0 |
98 |
|
|
%endif |
99 |
|
|
|
100 |
cjw |
100681 |
%if "%{?distro_section}" == "tainted" |
101 |
|
|
%define build_plf 1 |
102 |
|
|
%endif |
103 |
|
|
|
104 |
blino |
24858 |
%if %build_plf |
105 |
|
|
%define build_amr 1 |
106 |
|
|
%define build_twolame 1 |
107 |
|
|
%define build_lame 1 |
108 |
cjw |
100681 |
%define build_faac 0 |
109 |
blino |
24858 |
%define build_faad 1 |
110 |
|
|
%define build_x264 1 |
111 |
|
|
%define build_xvid 1 |
112 |
|
|
%define build_dts 1 |
113 |
|
|
%define build_yasm 1 |
114 |
|
|
%define build_dirac 1 |
115 |
|
|
%define build_schroedinger 1 |
116 |
|
|
%endif |
117 |
|
|
|
118 |
luigiwalser |
196696 |
%if %build_system_ffmpeg |
119 |
|
|
%define build_amr 0 |
120 |
|
|
%define build_dirac 0 |
121 |
|
|
%define build_schroedinger 0 |
122 |
|
|
%define build_vpx 0 |
123 |
|
|
%define build_zr 0 |
124 |
|
|
%endif |
125 |
|
|
|
126 |
blino |
24858 |
%{?_with_amr: %{expand: %%global build_amr 1}} |
127 |
|
|
%{?_without_amr: %{expand: %%global build_amr 0}} |
128 |
|
|
%{?_with_live: %{expand: %%global build_live 1}} |
129 |
|
|
%{?_without_live: %{expand: %%global build_live 0}} |
130 |
|
|
%{?_with_yasm: %{expand: %%global build_yasm 1}} |
131 |
|
|
%{?_without_yasm: %{expand: %%global build_yasm 0}} |
132 |
|
|
%{?_with_vesa: %{expand: %%global build_vesa 1}} |
133 |
|
|
%{?_without_vesa: %{expand: %%global build_vesa 0}} |
134 |
|
|
%{?_with_optimization: %{expand: %%global build_optimization 1}} |
135 |
|
|
%{?_with_debug: %{expand: %%global build_debug 1}} |
136 |
|
|
%{?_without_debug: %{expand: %%global build_debug 0}} |
137 |
|
|
%{?_with_mencoder: %{expand: %%global build_mencoder 1}} |
138 |
|
|
%{?_without_mencoder: %{expand: %%global build_mencoder 0}} |
139 |
|
|
%{?_with_gui: %{expand: %%global build_gui 1}} |
140 |
|
|
%{?_without_gui: %{expand: %%global build_gui 0}} |
141 |
luigiwalser |
196696 |
%{?_with_system_ffmpeg: %{expand: %%global build_system_ffmpeg 1}} |
142 |
|
|
%{?_without_system_ffmpeg: %{expand: %%global build_system_ffmpeg 0}} |
143 |
blino |
24858 |
%{?_with_theora: %{expand: %%global build_theora 1}} |
144 |
|
|
%{?_without_theora: %{expand: %%global build_theora 0}} |
145 |
|
|
%{?_with_smb: %{expand: %%global build_smb 1}} |
146 |
|
|
%{?_without_smb: %{expand: %%global build_smb 0}} |
147 |
|
|
%{?_with_ggi: %{expand: %%global build_ggi 1}} |
148 |
|
|
%{?_without_ggi: %{expand: %%global build_ggi 0}} |
149 |
|
|
%{?_with_lirc: %{expand: %%global build_lirc 1}} |
150 |
|
|
%{?_without_lirc: %{expand: %%global build_lirc 0}} |
151 |
|
|
%{?_with_xmms: %{expand: %%global build_xmms 1}} |
152 |
|
|
%{?_without_xmms: %{expand: %%global build_xmms 0}} |
153 |
|
|
%{?_with_arts: %{expand: %%global build_arts 1}} |
154 |
|
|
%{?_without_arts: %{expand: %%global build_arts 0}} |
155 |
|
|
%{?_with_aa: %{expand: %%global build_aa 1}} |
156 |
|
|
%{?_without_aa: %{expand: %%global build_aa 0}} |
157 |
|
|
%{?_with_cdda: %{expand: %%global build_cdda 1}} |
158 |
|
|
%{?_without_cdda: %{expand: %%global build_cdda 0}} |
159 |
|
|
%{?_with_dirac: %{expand: %%global build_dirac 1}} |
160 |
|
|
%{?_without_dirac: %{expand: %%global build_dirac 0}} |
161 |
|
|
%{?_with_dv: %{expand: %%global build_dv 1}} |
162 |
|
|
%{?_without_dv: %{expand: %%global build_dv 0}} |
163 |
|
|
%{?_with_sdl: %{expand: %%global build_sdl 1}} |
164 |
|
|
%{?_without_sdl: %{expand: %%global build_sdl 0}} |
165 |
|
|
%{?_with_lzo: %{expand: %%global build_lzo 1}} |
166 |
|
|
%{?_without_lzo: %{expand: %%global build_lzo 0}} |
167 |
|
|
%{?_with_mga: %{expand: %%global build_mga 1}} |
168 |
|
|
%{?_without_mga: %{expand: %%global build_mga 0}} |
169 |
|
|
%{?_with_fribidi: %{expand: %%global build_fribidi 1}} |
170 |
|
|
%{?_without_fribidi: %{expand: %%global build_fribidi 0}} |
171 |
|
|
%{?_with_enca: %{expand: %%global build_enca 1}} |
172 |
|
|
%{?_without_enca: %{expand: %%global build_enca 0}} |
173 |
|
|
%{?_with_jack: %{expand: %%global build_jack 1}} |
174 |
|
|
%{?_without_jack: %{expand: %%global build_jack 0}} |
175 |
|
|
%{?_with_libass: %{expand: %%global build_libass 1}} |
176 |
|
|
%{?_without_libass: %{expand: %%global build_libass 0}} |
177 |
|
|
%{?_with_pulse: %{expand: %%global build_pulse 1}} |
178 |
|
|
%{?_without_pulse: %{expand: %%global build_pulse 0}} |
179 |
|
|
%{?_with_openal: %{expand: %%global build_openal 1}} |
180 |
|
|
%{?_without_openal: %{expand: %%global build_openal 0}} |
181 |
|
|
%{?_with_schroedinger: %{expand: %%global build_schroedinger 1}} |
182 |
|
|
%{?_without_schroedinger: %{expand: %%global build_schroedinger 0}} |
183 |
|
|
%{?_with_twolame: %{expand: %%global build_twolame 1}} |
184 |
|
|
%{?_without_twolame: %{expand: %%global build_twolame 0}} |
185 |
|
|
%{?_with_lame: %{expand: %%global build_lame 1}} |
186 |
|
|
%{?_without_lame: %{expand: %%global build_lame 0}} |
187 |
|
|
%{?_with_faac: %{expand: %%global build_faac 1}} |
188 |
|
|
%{?_without_faac: %{expand: %%global build_faac 0}} |
189 |
|
|
%{?_with_faad: %{expand: %%global build_faad 1}} |
190 |
|
|
%{?_without_faad: %{expand: %%global build_faad 0}} |
191 |
|
|
%{?_with_x264: %{expand: %%global build_x264 1}} |
192 |
|
|
%{?_without_x264: %{expand: %%global build_x264 0}} |
193 |
|
|
%{?_with_xvid: %{expand: %%global build_xvid 1}} |
194 |
|
|
%{?_without_xvid: %{expand: %%global build_xvid 0}} |
195 |
|
|
%{?_with_dts: %{expand: %%global build_dts 1}} |
196 |
|
|
%{?_without_dts: %{expand: %%global build_dts 0}} |
197 |
|
|
%{?_with_directfb: %{expand: %%global build_directfb 1}} |
198 |
|
|
%{?_without_directfb: %{expand: %%global build_directfb 0}} |
199 |
|
|
%{?_with_rtmp: %{expand: %%global build_rtmp 1}} |
200 |
|
|
%{?_without_rtmp: %{expand: %%global build_rtmp 0}} |
201 |
|
|
%{?_with_v4l2: %{expand: %%global build_v4l2 1}} |
202 |
|
|
%{?_without_v4l2: %{expand: %%global build_v4l2 0}} |
203 |
|
|
%{?_with_xvmc: %{expand: %%global build_xvmc 1}} |
204 |
|
|
%{?_without_xvmc: %{expand: %%global build_xvmc 0}} |
205 |
|
|
%{?_with_vdpau: %{expand: %%global build_vdpau 1}} |
206 |
|
|
%{?_without_vdpau: %{expand: %%global build_vdpau 0}} |
207 |
luigiwalser |
196705 |
%{?_with_vpx: %{expand: %%global build_vpx 1}} |
208 |
|
|
%{?_without_vpx: %{expand: %%global build_vpx 0}} |
209 |
luigiwalser |
196698 |
%{?_with_libnut: %{expand: %%global build_libnut 1}} |
210 |
|
|
%{?_without_libnut: %{expand: %%global build_libnut 0}} |
211 |
luigiwalser |
196699 |
%{?_with_cdio: %{expand: %%global build_cdio 1}} |
212 |
|
|
%{?_without_cdio: %{expand: %%global build_cdio 0}} |
213 |
fwang |
225140 |
%{?_with_bluray: %{expand: %%global build_bluray 1}} |
214 |
|
|
%{?_without_bluray: %{expand: %%global build_bluray 0}} |
215 |
blino |
24858 |
|
216 |
|
|
Name: %{name} |
217 |
|
|
Version: %{version} |
218 |
|
|
Release: %{release} |
219 |
|
|
Summary: %{Summary} |
220 |
luigiwalser |
261011 |
%if "%{svn}" != "" |
221 |
blino |
24858 |
#gw generated using svn export |
222 |
|
|
Source0: %{name}-%{svn}.tar.xz |
223 |
|
|
%else |
224 |
luigiwalser |
261011 |
Source0: ftp://ftp.mplayerhq.hu/MPlayer/releases/%{Name}-%{fversion}.tar.xz |
225 |
blino |
24858 |
%endif |
226 |
fwang |
298916 |
Source1: http://ffmpeg.org/releases/ffmpeg-%{ffmpegversion}.tar.bz2 |
227 |
blino |
24858 |
#gw default skin |
228 |
luigiwalser |
223439 |
Source4: Blue-1.8.tar.bz2 |
229 |
zezinho |
215565 |
Patch0: mplayer-1.0rc4-distro-config.patch |
230 |
blino |
24858 |
Patch3: mplayer-mp3lib-no-strict-aliasing.patch |
231 |
|
|
Patch7: mplayer-1.0pre1-nomgafirst.patch |
232 |
|
|
Patch21: mplayer-1.0rc2-compiz.patch |
233 |
|
|
# fixes for crashes found while fixing CVE-2008-1558 |
234 |
|
|
Patch28: mplayer-rtsp-extra-fixes.patch |
235 |
luigiwalser |
193626 |
Patch31: mplayer-format-string-literal.patch |
236 |
blino |
24858 |
#gw HAVE_DLFCN_H isn't defined |
237 |
luigiwalser |
193626 |
Patch33: mplayer-have-dlfcn_h.patch |
238 |
blino |
24858 |
#gw fix crash: https://qa.mandriva.com/show_bug.cgi?id=55443 |
239 |
luigiwalser |
193626 |
Patch35: mplayer-fix-dvd-crash.patch |
240 |
luigiwalser |
248507 |
Patch43: mplayer-r34911-dont-use-ffmpeg-functionality-outside-stable-release.patch |
241 |
anssi |
202249 |
# hack to build video filters that require internal FFmpeg headers - |
242 |
|
|
# this requires the private headers to be present during build |
243 |
|
|
# (it is somewhat bad, but there are many other files in mplayer that |
244 |
|
|
# already require them, so we couldn't remove them anyway) |
245 |
|
|
Patch49: mplayer-filters-hack-with-shared.patch |
246 |
luigiwalser |
261011 |
Patch50: mplayer-1.1-fix-live-test.patch |
247 |
luigiwalser |
328988 |
Patch51: mplayer-1.1-giflib.patch |
248 |
rtp |
406721 |
Patch54: 60_arm-private-symbols.patch |
249 |
luigiwalser |
443885 |
Patch58: mplayer-r36347-revert-r36198-r36201-r36202-r36203-r36205-jpeg2000.patch |
250 |
|
|
Patch59: mplayer-there-is-no-is_planar.patch |
251 |
|
|
Patch60: mplayer-r36347-revert-r36269-dtk.patch |
252 |
|
|
Patch61: mplayer-r36347-revert-r36172-ass.patch |
253 |
blino |
24858 |
URL: http://www.mplayerhq.hu |
254 |
|
|
License: GPLv2 |
255 |
fwang |
298917 |
Group: Video/Players |
256 |
blino |
24858 |
BuildRequires: libncurses-devel |
257 |
|
|
%if %build_aa |
258 |
|
|
BuildRequires: libaa-devel |
259 |
|
|
%endif |
260 |
|
|
BuildRequires: a52dec-devel |
261 |
|
|
%if %build_arts |
262 |
|
|
BuildRequires: libarts-devel |
263 |
|
|
%endif |
264 |
|
|
%if %build_amr |
265 |
|
|
BuildRequires: opencore-amr-devel |
266 |
|
|
%endif |
267 |
|
|
|
268 |
|
|
%if %build_jack |
269 |
|
|
BuildRequires: libjack-devel |
270 |
|
|
%endif |
271 |
|
|
%if %build_pulse |
272 |
|
|
BuildRequires: libpulseaudio-devel |
273 |
|
|
%endif |
274 |
|
|
%if %build_openal |
275 |
|
|
BuildRequires: libopenal-devel |
276 |
|
|
%endif |
277 |
|
|
%if %build_cdda |
278 |
|
|
BuildRequires: libcdda-devel |
279 |
|
|
%endif |
280 |
|
|
%if %build_dirac |
281 |
|
|
BuildRequires: libdirac-devel >= 0.9.0 |
282 |
|
|
%endif |
283 |
|
|
%if %build_schroedinger |
284 |
|
|
BuildRequires: libschroedinger-devel |
285 |
|
|
%endif |
286 |
|
|
%if %build_dv |
287 |
|
|
BuildRequires: libdv-devel |
288 |
|
|
%endif |
289 |
|
|
BuildRequires: libdxr3-devel |
290 |
|
|
BuildRequires: libjpeg-devel |
291 |
|
|
BuildRequires: openjpeg-devel |
292 |
|
|
%if %build_lirc |
293 |
|
|
BuildRequires: liblirc-devel |
294 |
|
|
%endif |
295 |
|
|
%if %build_lzo |
296 |
|
|
BuildRequires: liblzo-devel |
297 |
|
|
%endif |
298 |
|
|
BuildRequires: libmad-devel |
299 |
|
|
BuildRequires: libnas-devel |
300 |
|
|
BuildRequires: libpng-devel |
301 |
|
|
%if %build_sdl |
302 |
|
|
BuildRequires: libSDL-devel >= 1.1.8 |
303 |
|
|
%endif |
304 |
|
|
BuildRequires: libtermcap-devel |
305 |
|
|
%if %build_xmms |
306 |
|
|
BuildRequires: libxmms-devel |
307 |
|
|
%endif |
308 |
|
|
%if %build_ggi |
309 |
|
|
BuildRequires: libggiwmh-devel |
310 |
|
|
%endif |
311 |
|
|
%if %build_smb |
312 |
|
|
# require samba < 3.2.0 to avoid shipping GPLv2 vs GPLv3 |
313 |
|
|
BuildRequires: libsmbclient-devel < 3.2.0 |
314 |
|
|
%endif |
315 |
|
|
%if %build_twolame |
316 |
|
|
BuildRequires: libtwolame-devel |
317 |
|
|
%endif |
318 |
|
|
%if %build_faac |
319 |
|
|
BuildRequires: libfaac-devel |
320 |
|
|
%endif |
321 |
|
|
%if %build_faad |
322 |
|
|
BuildRequires: libfaad2-devel |
323 |
|
|
%endif |
324 |
|
|
%if %build_x264 |
325 |
luigiwalser |
194871 |
BuildRequires: libx264-devel >= 0.120 |
326 |
blino |
24858 |
%endif |
327 |
|
|
%if %build_xvid |
328 |
|
|
BuildRequires: xvid-devel >= 1.0.0-0.beta2.1plf |
329 |
|
|
%endif |
330 |
|
|
%if %build_dts |
331 |
|
|
BuildRequires: dtsdec-devel |
332 |
|
|
%endif |
333 |
|
|
%if %build_lame |
334 |
|
|
BuildRequires: liblame-devel |
335 |
|
|
%endif |
336 |
|
|
%if %build_plf |
337 |
|
|
Requires: %mklibname dvdcss 2 |
338 |
|
|
%endif |
339 |
|
|
%if %build_live |
340 |
|
|
BuildRequires: live-devel |
341 |
|
|
%endif |
342 |
|
|
%if %build_vesa |
343 |
|
|
BuildRequires: libvbe-devel liblrmi-devel |
344 |
|
|
%endif |
345 |
|
|
%if %build_theora |
346 |
|
|
BuildRequires: libtheora-devel |
347 |
|
|
%endif |
348 |
|
|
%if %build_fribidi |
349 |
|
|
BuildRequires: libfribidi-devel >= 0.10.4 |
350 |
|
|
%endif |
351 |
|
|
%if %build_enca |
352 |
|
|
BuildRequires: libenca-devel |
353 |
|
|
%endif |
354 |
|
|
%if %build_directfb |
355 |
|
|
BuildRequires: libdirectfb-devel |
356 |
|
|
%endif |
357 |
|
|
%if %build_xvmc |
358 |
|
|
BuildRequires: libxvmc-devel |
359 |
|
|
%endif |
360 |
|
|
%if %build_vdpau |
361 |
|
|
BuildRequires: vdpau-devel |
362 |
|
|
%endif |
363 |
|
|
%if %build_libass |
364 |
|
|
BuildRequires: libass-devel |
365 |
|
|
%endif |
366 |
|
|
BuildRequires: gsm-devel |
367 |
|
|
BuildRequires: libmpg123-devel |
368 |
|
|
%if %build_vpx |
369 |
|
|
BuildRequires: libvpx-devel |
370 |
|
|
%endif |
371 |
|
|
%if %build_rtmp |
372 |
|
|
BuildRequires: rtmp-devel |
373 |
|
|
%endif |
374 |
luigiwalser |
196698 |
%if %build_libnut |
375 |
|
|
BuildRequires: libnut-devel |
376 |
|
|
%endif |
377 |
luigiwalser |
196699 |
%if %build_cdio |
378 |
|
|
BuildRequires: libcdio-devel |
379 |
|
|
%endif |
380 |
fwang |
225143 |
%if %build_bluray |
381 |
fwang |
225140 |
BuildRequires: bluray-devel |
382 |
|
|
%endif |
383 |
blino |
24858 |
BuildRequires: bzip2-devel |
384 |
|
|
BuildRequires: libmng-devel |
385 |
|
|
BuildRequires: libmesagl-devel |
386 |
|
|
BuildRequires: libxxf86vm-devel |
387 |
|
|
BuildRequires: libxxf86dga-devel |
388 |
|
|
BuildRequires: libxscrnsaver-devel |
389 |
|
|
BuildRequires: libspeex-devel |
390 |
|
|
BuildRequires: libmpcdec-devel |
391 |
|
|
BuildRequires: ladspa-devel |
392 |
|
|
BuildRequires: libxslt-proc |
393 |
|
|
BuildRequires: docbook-style-xsl |
394 |
|
|
BuildRequires: docbook-dtd412-xml |
395 |
|
|
BuildRequires: libcaca-devel |
396 |
|
|
BuildRequires: giflib-devel |
397 |
|
|
%if %build_yasm |
398 |
|
|
BuildRequires: yasm |
399 |
|
|
%endif |
400 |
|
|
BuildRequires: libbs2b-devel |
401 |
luigiwalser |
196696 |
%if %build_system_ffmpeg |
402 |
fwang |
296123 |
BuildRequires: ffmpeg-devel = %{ffmpegversion} |
403 |
luigiwalser |
196696 |
%endif |
404 |
luigiwalser |
202791 |
BuildRequires: libdvdread-devel |
405 |
|
|
BuildRequires: libdvdnav-devel |
406 |
blino |
24858 |
|
407 |
|
|
Provides: mplayer%{pkgext}1.0 |
408 |
|
|
Obsoletes: mplayer%{pkgext}1.0 |
409 |
|
|
|
410 |
|
|
|
411 |
|
|
%description |
412 |
|
|
MPlayer is a movie player for LINUX (runs on many other Unices, and |
413 |
|
|
non-x86 CPUs, see the documentation). It plays most MPEG, VOB, AVI, |
414 |
|
|
VIVO, ASF/WMV, QT/MOV, FLI, NuppelVideo, yuv4mpeg, FILM, RoQ, and some |
415 |
|
|
RealMedia files, supported by many native, XAnim, and Win32 DLL codecs. |
416 |
|
|
You can watch VideoCD, SVCD, DVD, 3ivx, FLI, and even DivX movies too |
417 |
|
|
(and you don't need the avifile library at all!). The another big |
418 |
|
|
feature of mplayer is the wide range of supported output drivers. It |
419 |
|
|
works with X11, Xv, DGA, OpenGL, SVGAlib, fbdev, AAlib, but you can use |
420 |
|
|
SDL (and this way all drivers of SDL), VESA (on every VESA compatible |
421 |
|
|
card, even without X!), and some lowlevel card-specific drivers (for |
422 |
|
|
Matrox, 3Dfx and Radeon) too! Most of them supports software or hardware |
423 |
|
|
scaling, so you can enjoy movies in fullscreen. MPlayer supports |
424 |
|
|
displaying through some hardware MPEG decoder boards, such as the DVB |
425 |
|
|
and DXR3/Hollywood+! And what about the nice big antialiased shaded |
426 |
|
|
subtitles (9 supported types!!!) with european/ISO 8859-1,2 (hungarian, |
427 |
|
|
english, czech, etc), cyrillic, korean fonts, and OSD? |
428 |
|
|
%if %build_plf |
429 |
|
|
|
430 |
cjw |
100681 |
This package is in the 'tainted' section because some included codecs |
431 |
|
|
are covered by patents. It also includes support for reading DVDs |
432 |
|
|
encrypted with CSS which might be illegal in some countries. |
433 |
blino |
24858 |
%endif |
434 |
|
|
|
435 |
|
|
%package doc |
436 |
|
|
Summary: %{Name} documentation |
437 |
ennael |
305459 |
Group: Documentation |
438 |
fwang |
195140 |
BuildArch: noarch |
439 |
blino |
24858 |
|
440 |
|
|
%description doc |
441 |
|
|
This package contains documentation for %{Name}. |
442 |
|
|
|
443 |
|
|
%if %build_gui |
444 |
|
|
%package gui |
445 |
|
|
Summary: GUI for %{name} |
446 |
fwang |
305501 |
Group: Video/Players |
447 |
blino |
24858 |
Requires: %{name} = %{version} |
448 |
|
|
BuildRequires: gtk+2-devel |
449 |
|
|
BuildRequires: imagemagick |
450 |
luigiwalser |
193598 |
Requires: soundwrapper |
451 |
blino |
24858 |
Provides: mplayer%{pkgext}1.0-gui |
452 |
|
|
Obsoletes: mplayer%{pkgext}1.0-gui |
453 |
ahmad |
52786 |
Conflicts: mplayer-skins < 1.3-8 |
454 |
blino |
24858 |
|
455 |
|
|
%description gui |
456 |
|
|
This package contains a GUI for %{name}. |
457 |
|
|
%endif |
458 |
|
|
|
459 |
|
|
%if %build_mencoder |
460 |
|
|
%package -n mencoder%{pkgext} |
461 |
|
|
Summary: MPlayer's movie encoder |
462 |
fwang |
305501 |
Group: Video/Editors and Converters |
463 |
luigiwalser |
261011 |
Requires: %{name} = %{version} |
464 |
blino |
24858 |
Provides: mencoder%{pkgext}1.0 |
465 |
|
|
Obsoletes: mencoder%{pkgext}1.0 |
466 |
|
|
|
467 |
|
|
%description -n mencoder%{pkgext} |
468 |
|
|
MEncoder a movie encoder and is a part of the MPlayer package. |
469 |
|
|
%if !%build_plf |
470 |
|
|
Note: this version doesn't have support for encoding mp3 audio streams in the |
471 |
|
|
video files. |
472 |
|
|
%else |
473 |
cjw |
100681 |
This 'tainted' build has additional support for AAC decoding with libfaad |
474 |
blino |
24858 |
and MP3 encoding with lame, both are covered by software patents. It |
475 |
|
|
also includes support for reading DVDs encrypted with CSS which might |
476 |
|
|
be illegal in some countries. |
477 |
|
|
%endif |
478 |
|
|
%endif |
479 |
|
|
|
480 |
|
|
|
481 |
|
|
%prep |
482 |
luigiwalser |
261011 |
%if "%{svn}" != "" |
483 |
|
|
%setup -q -n %{name} -a 4 |
484 |
|
|
#gw as we have have used svn export: |
485 |
|
|
echo %{svn}|sed s/^r// > snapshot_version |
486 |
|
|
perl -pi -e 's^r\$svn_revision^%{release}^' version.sh |
487 |
|
|
find DOCS -name .svn|xargs rm -rf |
488 |
blino |
24858 |
%else |
489 |
|
|
%setup -q -n MPlayer-%{version}%{prerel} -a 4 |
490 |
luigiwalser |
261011 |
echo %{version}%{prerel}-%{release} > VERSION |
491 |
blino |
24858 |
%endif |
492 |
|
|
#gw fix permissions |
493 |
|
|
chmod 644 AUTHORS Changelog README Copyright |
494 |
|
|
rm -f Blue/README |
495 |
luigiwalser |
194871 |
%patch0 -p1 -b .distro-config |
496 |
blino |
24858 |
#%patch3 -p1 -b .mp2 |
497 |
|
|
#%patch7 -p1 -b .mga |
498 |
|
|
#%patch21 -p0 -b .compiz |
499 |
|
|
%patch28 -p1 -b .rtsp-extra-fixes |
500 |
|
|
%patch31 -p1 -b .format~ |
501 |
|
|
%patch33 -p0 |
502 |
|
|
%patch35 -p0 |
503 |
luigiwalser |
248507 |
%patch43 -p1 -b .ffm-stable |
504 |
luigiwalser |
336143 |
%if %build_system_ffmpeg |
505 |
anssi |
202249 |
%patch49 -p1 |
506 |
luigiwalser |
336143 |
%endif |
507 |
luigiwalser |
261011 |
%patch50 -p0 |
508 |
gw666 |
386407 |
%if %mdvver >= 3 |
509 |
luigiwalser |
328988 |
%patch51 -p1 |
510 |
gw666 |
386407 |
%endif |
511 |
rtp |
406721 |
%patch54 -p1 |
512 |
luigiwalser |
443885 |
%patch58 -p1 |
513 |
|
|
%patch59 -p1 |
514 |
|
|
%patch60 -p1 |
515 |
|
|
%patch61 -p1 |
516 |
blino |
24858 |
|
517 |
|
|
mv DOCS/README README.DOCS |
518 |
|
|
|
519 |
cjw |
390672 |
rm -rf ffmpeg |
520 |
luigiwalser |
202792 |
tar -xjf %{SOURCE1} |
521 |
|
|
mv ffmpeg-%{ffmpegversion} ffmpeg |
522 |
|
|
pushd ffmpeg |
523 |
|
|
popd |
524 |
|
|
|
525 |
blino |
24858 |
%build |
526 |
|
|
%if !%build_optimization |
527 |
|
|
export CFLAGS="$CFLAGS $RPM_OPT_FLAGS" |
528 |
|
|
%endif |
529 |
rtp |
406721 |
%ifarch %arm |
530 |
|
|
# libmpeg2 contains some armv5te asm but unlike the mpeg2dec package |
531 |
|
|
# we can't disable ARCH_ARM here so build with armv5te |
532 |
|
|
export CFLAGS="`echo $CFLAGS|sed -e 's!armv5t!armv5te!g'`" |
533 |
|
|
%endif |
534 |
blino |
24858 |
%if %build_debug |
535 |
|
|
export CFLAGS="$CFLAGS -g" |
536 |
|
|
%endif |
537 |
|
|
%ifarch ppc |
538 |
|
|
export CFLAGS="$CFLAGS -mcpu=7450 -maltivec" |
539 |
|
|
%endif |
540 |
|
|
%if %build_directfb |
541 |
|
|
export CPPFLAGS="-I%_includedir/directfb" |
542 |
|
|
%endif |
543 |
|
|
%if %{build_3264bit} |
544 |
|
|
export EXESUF=32 |
545 |
|
|
%endif |
546 |
|
|
export LDFLAGS="%{?ldflags}" |
547 |
|
|
./configure \ |
548 |
|
|
--prefix=%{_prefix} \ |
549 |
|
|
--datadir=%{_datadir}/%{name} \ |
550 |
|
|
--confdir=%{_sysconfdir}/%{name} \ |
551 |
luigiwalser |
261011 |
--libdir=%{_libdir} \ |
552 |
blino |
24858 |
%if !%build_optimization |
553 |
rtp |
406721 |
%ifarch %ix86 x86_64 ppc |
554 |
blino |
24858 |
--enable-runtime-cpudetection \ |
555 |
rtp |
406721 |
%endif |
556 |
blino |
24858 |
%ifarch %ix86 |
557 |
|
|
--enable-mmx \ |
558 |
|
|
--enable-3dnow \ |
559 |
|
|
--enable-sse \ |
560 |
|
|
--enable-sse2 \ |
561 |
|
|
--enable-fastmemcpy \ |
562 |
|
|
%endif |
563 |
|
|
%endif |
564 |
|
|
--enable-freetype \ |
565 |
|
|
--enable-nas \ |
566 |
|
|
%if %build_debug |
567 |
|
|
--enable-debug=3 \ |
568 |
|
|
%else |
569 |
|
|
--disable-sighandler \ |
570 |
|
|
%endif |
571 |
|
|
%if %build_gui |
572 |
|
|
--enable-gui \ |
573 |
|
|
%endif |
574 |
luigiwalser |
196696 |
%if %build_system_ffmpeg |
575 |
|
|
--disable-ffmpeg_a \ |
576 |
|
|
%endif |
577 |
blino |
24858 |
--language=all \ |
578 |
|
|
%if ! %build_faad |
579 |
luigiwalser |
194871 |
--disable-faad \ |
580 |
blino |
24858 |
--disable-decoder=AAC \ |
581 |
|
|
%endif |
582 |
|
|
--disable-libdvdcss-internal \ |
583 |
luigiwalser |
202791 |
--enable-dvdnav \ |
584 |
|
|
--disable-dvdread-internal \ |
585 |
|
|
--enable-dvdread \ |
586 |
blino |
24858 |
%if %build_lirc |
587 |
|
|
--enable-lirc \ |
588 |
|
|
%else |
589 |
|
|
--disable-lirc \ |
590 |
|
|
%endif |
591 |
|
|
--enable-tv \ |
592 |
|
|
%if ! %build_v4l2 |
593 |
|
|
--disable-tv-v4l2 \ |
594 |
|
|
%endif |
595 |
|
|
--enable-joystick \ |
596 |
|
|
\ |
597 |
|
|
--enable-gl \ |
598 |
|
|
--disable-svga \ |
599 |
|
|
%if ! %build_mga |
600 |
|
|
--disable-mga \ |
601 |
|
|
%endif |
602 |
|
|
%if ! %build_fbdev |
603 |
|
|
--disable-fbdev \ |
604 |
|
|
%endif |
605 |
|
|
%if %build_directfb |
606 |
|
|
--enable-directfb \ |
607 |
|
|
%else |
608 |
|
|
--disable-directfb \ |
609 |
|
|
%endif |
610 |
|
|
%if %build_mencoder |
611 |
|
|
--enable-mencoder \ |
612 |
|
|
%else |
613 |
|
|
--disable-mencoder \ |
614 |
|
|
%endif |
615 |
|
|
%if ! %build_live |
616 |
|
|
--disable-live \ |
617 |
|
|
%endif |
618 |
|
|
%if ! %build_vesa |
619 |
|
|
--disable-vesa \ |
620 |
|
|
%endif |
621 |
|
|
%if %build_theora |
622 |
|
|
--enable-theora \ |
623 |
|
|
%else |
624 |
|
|
--disable-theora \ |
625 |
|
|
%endif |
626 |
|
|
--enable-menu \ |
627 |
|
|
%if %build_xmms |
628 |
|
|
--enable-xmms --with-xmmslibdir=%{_libdir} \ |
629 |
|
|
%endif |
630 |
|
|
%if %build_smb |
631 |
|
|
--enable-smb \ |
632 |
|
|
%endif |
633 |
|
|
%if ! %build_dvb |
634 |
|
|
--disable-dvb \ |
635 |
|
|
%endif |
636 |
|
|
%if ! %build_ggi |
637 |
|
|
--disable-ggi \ |
638 |
|
|
%endif |
639 |
|
|
--codecsdir=%{_libdir}/codecs \ |
640 |
|
|
%if ! %build_arts |
641 |
|
|
--disable-arts \ |
642 |
|
|
%endif |
643 |
|
|
%if ! %build_jack |
644 |
|
|
--disable-jack \ |
645 |
|
|
%endif |
646 |
|
|
%if ! %build_aa |
647 |
|
|
--disable-aa \ |
648 |
|
|
%endif |
649 |
|
|
%if ! %build_cdda |
650 |
|
|
--disable-cdparanoia \ |
651 |
|
|
%endif |
652 |
|
|
%if ! %build_dv |
653 |
|
|
--disable-libdv \ |
654 |
|
|
%endif |
655 |
|
|
%if ! %build_lzo |
656 |
|
|
--disable-liblzo \ |
657 |
|
|
%endif |
658 |
|
|
%if ! %build_sdl |
659 |
|
|
--disable-sdl \ |
660 |
|
|
%endif |
661 |
|
|
%if ! %build_alsa |
662 |
|
|
--disable-alsa \ |
663 |
|
|
%endif |
664 |
|
|
%if ! %build_fribidi |
665 |
|
|
--disable-fribidi \ |
666 |
|
|
%endif |
667 |
|
|
%if !%build_enca |
668 |
|
|
--disable-enca \ |
669 |
|
|
%endif |
670 |
|
|
%if %build_pulse |
671 |
|
|
--enable-pulse \ |
672 |
|
|
%endif |
673 |
|
|
%if !%build_openal |
674 |
|
|
--disable-openal \ |
675 |
|
|
%endif |
676 |
ahmad |
81539 |
%if %build_zr |
677 |
blino |
24858 |
--enable-zr \ |
678 |
ahmad |
81539 |
%endif |
679 |
blino |
24858 |
%if %build_xvmc |
680 |
|
|
--enable-xvmc \ |
681 |
|
|
%endif |
682 |
|
|
%if ! %build_ivtv |
683 |
|
|
--disable-ivtv \ |
684 |
|
|
%endif |
685 |
|
|
%if ! %build_vdpau |
686 |
|
|
--disable-vdpau |
687 |
|
|
%endif |
688 |
|
|
|
689 |
|
|
|
690 |
|
|
# Keep this line before empty end %%configure (ppc conditionnal pb) |
691 |
|
|
make EXESUF=%{pkgext} |
692 |
|
|
#gw make sure we have our version string included: |
693 |
luigiwalser |
261011 |
fgrep %{release} version.h |
694 |
blino |
24858 |
|
695 |
|
|
%install |
696 |
luigiwalser |
193578 |
rm -rf %{buildroot} |
697 |
|
|
install -d -m 755 %{buildroot}%{_bindir} |
698 |
luigiwalser |
261011 |
install -d -m 755 %{buildroot}%{_datadir}/%{name} |
699 |
|
|
install -d -m 755 %{buildroot}%{_sysconfdir}/%{name} |
700 |
luigiwalser |
193683 |
install -m 755 mplayer%{pkgext} -D %{buildroot}%{_bindir}/mplayer%{pkgext} |
701 |
|
|
for lang in en de fr hu pl zh_CN es it; do |
702 |
|
|
install -m 644 DOCS/man/$lang/mplayer.1 -D %{buildroot}%{_mandir}/$([ "$lang" != "en" ] && echo $lang)/man1/mplayer%{pkgext}.1 |
703 |
|
|
done |
704 |
|
|
%find_lang mplayer%{pkgext} --with-man |
705 |
blino |
24858 |
|
706 |
|
|
%if %build_mencoder |
707 |
luigiwalser |
193683 |
install -m 755 mencoder%{pkgext} -D %{buildroot}%{_bindir}/mencoder%{pkgext} |
708 |
|
|
|
709 |
|
|
for lang in en de fr hu pl zh_CN es it; do |
710 |
|
|
ln -s mplayer%{pkgext}.1 %{buildroot}%{_mandir}/$([ "$lang" != "en" ] && echo $lang)/man1/mencoder%{pkgext}.1 |
711 |
blino |
24858 |
done |
712 |
luigiwalser |
193683 |
%find_lang mencoder%{pkgext} --with-man |
713 |
luigiwalser |
261011 |
install -m 755 TOOLS/mencvcd.sh %{buildroot}%_bindir/mencvcd%{pkgext} |
714 |
|
|
install -m 755 TOOLS/divx2svcd.sh %{buildroot}%_bindir/divx2svcd%{pkgext} |
715 |
|
|
install -m 755 TOOLS/wma2ogg.pl %{buildroot}%_bindir/wma2ogg%{pkgext}.pl |
716 |
|
|
install -m 755 TOOLS/midentify.sh %{buildroot}%_bindir/midentify%{pkgext} |
717 |
blino |
24858 |
%endif |
718 |
luigiwalser |
193578 |
install -m 644 etc/example.conf %{buildroot}%{_sysconfdir}/%{name}/mplayer.conf |
719 |
|
|
install -m 644 etc/menu.conf %{buildroot}%{_sysconfdir}/%{name} |
720 |
blino |
24858 |
|
721 |
|
|
%if %build_gui |
722 |
|
|
# default Skin |
723 |
luigiwalser |
261011 |
install -d -m 755 %{buildroot}%{_datadir}/%{name}/skins/ |
724 |
|
|
cp -r Blue %{buildroot}%{_datadir}/%{name}/skins/ |
725 |
|
|
ln -s Blue %{buildroot}%{_datadir}/%{name}/skins/default |
726 |
blino |
24858 |
# gmplayer equals mplayer -gui |
727 |
luigiwalser |
193587 |
ln -s mplayer%{pkgext} %{buildroot}%{_bindir}/gmplayer%{pkgext} |
728 |
blino |
24858 |
# icons |
729 |
luigiwalser |
193578 |
mkdir -p %{buildroot}{%_liconsdir,%_iconsdir,%{_miconsdir}} |
730 |
|
|
convert -transparent white Blue/icons/icon48x48.png %{buildroot}%{_liconsdir}/mplayer%{pkgext}.png |
731 |
|
|
convert -transparent white Blue/icons/icon32x32.png %{buildroot}%{_iconsdir}/mplayer%{pkgext}.png |
732 |
|
|
convert -transparent white -scale 16x16 Blue/icons/icon48x48.png %{buildroot}%{_miconsdir}/mplayer%{pkgext}.png |
733 |
luigiwalser |
261011 |
install -D -m 644 etc/mplayer.desktop %{buildroot}%{_datadir}/applications/mplayer%{pkgext}.desktop |
734 |
|
|
perl -pi -e 's@mplayer$@mplayer%{pkgext}@g' %{buildroot}%{_datadir}/applications/mplayer%{pkgext}.desktop |
735 |
blino |
24858 |
%endif |
736 |
|
|
%if %{build_3264bit} |
737 |
|
|
if [ -e %{buildroot}%{_liconsdir}/mplayer%{pkgext}.png ]; then |
738 |
|
|
convert %{buildroot}%{_liconsdir}/mplayer%{pkgext}.png -channel green -negate \ |
739 |
|
|
%{buildroot}%{_liconsdir}/mplayer%{pkgext}.png |
740 |
|
|
fi |
741 |
|
|
if [ -e %{buildroot}%{_iconsdir}/mplayer%{pkgext}.png ]; then |
742 |
|
|
convert %{buildroot}%{_iconsdir}/mplayer%{pkgext}.png -channel green -negate \ |
743 |
|
|
%{buildroot}%{_iconsdir}/mplayer%{pkgext}.png |
744 |
|
|
fi |
745 |
|
|
if [ -e %{buildroot}%{_miconsdir}/mplayer%{pkgext}.png ]; then |
746 |
|
|
convert %{buildroot}%{_miconsdir}/mplayer%{pkgext}.png -channel green -negate \ |
747 |
|
|
%{buildroot}%{_miconsdir}/mplayer%{pkgext}.png |
748 |
|
|
fi |
749 |
|
|
%endif |
750 |
|
|
|
751 |
|
|
%if %build_debug |
752 |
|
|
export DONT_STRIP=1 |
753 |
|
|
%endif |
754 |
|
|
|
755 |
|
|
%clean |
756 |
|
|
rm -rf %{buildroot} |
757 |
|
|
|
758 |
luigiwalser |
193683 |
%files -f mplayer%{pkgext}.lang |
759 |
blino |
24858 |
%doc AUTHORS Changelog README Copyright |
760 |
luigiwalser |
261011 |
%dir %{_sysconfdir}/%{name} |
761 |
blino |
24858 |
%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/%{name}/mplayer.conf |
762 |
|
|
%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/%{name}/menu.conf |
763 |
|
|
%{_bindir}/midentify%{pkgext} |
764 |
|
|
%{_bindir}/mplayer%{pkgext} |
765 |
|
|
%{_mandir}/man1/mplayer%{pkgext}.1* |
766 |
|
|
%dir %{_datadir}/%{name} |
767 |
|
|
|
768 |
|
|
%files doc |
769 |
luigiwalser |
194871 |
%defattr(-,root,root,755) |
770 |
blino |
24858 |
%doc README.DOCS |
771 |
luigiwalser |
194875 |
%doc DOCS/default.css DOCS/xml DOCS/tech/ |
772 |
luigiwalser |
193578 |
|
773 |
blino |
24858 |
%if %build_mencoder |
774 |
luigiwalser |
193683 |
%files -n mencoder%{pkgext} -f mencoder%{pkgext}.lang |
775 |
blino |
24858 |
%{_bindir}/mencoder%{pkgext} |
776 |
|
|
%{_bindir}/divx2svcd%{pkgext} |
777 |
|
|
%{_bindir}/mencvcd%{pkgext} |
778 |
|
|
%{_bindir}/wma2ogg%{pkgext}.pl |
779 |
|
|
%{_mandir}/man1/mencoder%{pkgext}.1* |
780 |
|
|
%endif |
781 |
|
|
|
782 |
|
|
%if %build_gui |
783 |
|
|
%files gui |
784 |
|
|
%{_bindir}/gmplayer%{pkgext} |
785 |
luigiwalser |
261011 |
%{_datadir}/applications/mplayer%{pkgext}.desktop |
786 |
|
|
%{_datadir}/%{name}/skins/ |
787 |
blino |
24858 |
%{_iconsdir}/mplayer%{pkgext}.png |
788 |
|
|
%{_miconsdir}/mplayer%{pkgext}.png |
789 |
|
|
%{_liconsdir}/mplayer%{pkgext}.png |
790 |
|
|
%endif |
791 |
|
|
|
792 |
|
|
|
793 |
|
|
|
794 |
|
|
|