4 %bcond_without altivec # PPC altivec support
5 %bcond_without ssse3 # SSSE3 optimizations (needs binutils >= 2.16.92)
6 %bcond_without runtime # disable runtime cpu detection, just detect CPU
7 # in compile time (advertised by mplayer authors as working faster); in this case
8 # mplayer may not work on machine other then where it was compiled
9 %bcond_without hidden_visibility # no gcc hidden visibility
10 %bcond_without verbose # disable verbose build
12 %bcond_without bluray # Blu-ray support
13 %bcond_without cdio # libcdio support
14 %bcond_without cdparanoia # cdparanoia support (when libcdio not enabled)
15 %bcond_without doc # don't build docs (slow)
16 %bcond_without dvdnav # dvdnav support
17 %bcond_without system_dvdcss # system libdvdcss library (instead of internal copy)
18 %bcond_without system_dvdread # system libdvdread library (instead of internal copy)
19 %bcond_without enca # disable using ENCA charset oracle library
20 %bcond_without gui # without GTK+ GUI
21 %bcond_without joystick # joystick support
22 %bcond_without lirc # lirc support
23 %bcond_without live # LIVE555 Streaming Media support
24 %bcond_without mencoder # mencoder (a/v encoder) compilation
25 %bcond_without nemesi # NeMeSi Streaming Media support
26 %bcond_with on2 # patches from On2 Flix Engine for Linux
27 %bcond_without osd # osd menu support
28 %bcond_without rtmp # RTMPDump Streaming Media support
29 %bcond_with shared # experimental libmplayer.so support
30 %bcond_without smb # Samba (SMB) input support
31 %bcond_without vstream # TiVo vstream client support
33 %bcond_without amr # Adaptive Multi Rate (AMR) speech codec support
34 %bcond_without bs2b # BS2B audio filter support
35 %bcond_without crystalhd # CrystalHD support
36 %bcond_without faad # FAAD2 (AAC) support
37 %bcond_without gif # GIF support
38 %bcond_without ladspa # LADSPA plugin support
39 %bcond_without libdts # libdts support
40 %bcond_without libdv # libdv en/decoding support
41 %bcond_without lzo # LZO support (requires lzo 2.x)
42 %bcond_without mad # mad (audio MPEG) support
43 %bcond_without mpg123 # libmpg123 MP3 decoding support
44 %bcond_with musepack # libmpcdec support (deprecated in favour of libavcodec)
45 %bcond_without openjpeg # OpenJPEG (JPEG2000) input/output support
46 %bcond_without quicktime # binary quicktime dll support
47 %bcond_without real # Real* 8/9 codecs support
48 %bcond_without vorbis # Ogg Vorbis audio support (both tremor and libvorbis)
49 %bcond_with tremor # use tremor instead of libvorbis
50 %bcond_without theora # Ogg Theora video support
51 %bcond_without win32 # Win32 codecs support
52 %bcond_without x264 # x264 support
53 %bcond_with xmms # XMMS inputplugin support
54 %bcond_without xvid # XviD codec
55 %bcond_with system_libmpeg2 # system libmpeg2 library (instead of internal copy with some quantizer modifications)
56 %bcond_with system_ffmpeg # use ffmpeg-devel, rather bundled sources (likely needs ffmpeg from same svn revision than mplayer)
58 %bcond_without aalib # aalib video output
59 %bcond_without caca # libcaca video output
60 %bcond_with directfb # DirectFB video output
61 %bcond_with dxr2 # DXR2 (hardware MPEG decoder) video output
62 %bcond_with dxr3 # DXR3/H+ (hardware MPEG decoder) video output
63 %bcond_with ggi # GGI video output
64 %bcond_without sdl # SDL video output
65 %bcond_with svga # svgalib video output
66 %bcond_without vdpau # VDPAU acceleration
67 %bcond_without vidix # VIDIX video drivers
68 %bcond_with zr # ZR360[56]7/ZR36060 video output (needs deprecated V4L1 linux headers)
69 %bcond_with gnomess # controling gnome screensaver [patch not updated]
71 %bcond_without alsa # ALSA audio output
72 %bcond_with arts # aRts audio output
73 %bcond_with esd # EsounD sound support
74 %bcond_without jack # JACKD support
75 %bcond_with nas # NAS audio output
76 %bcond_without pulseaudio # pulseaudio output
77 %bcond_without select # audio select() support (required e.g. for ALSA or Vortex2 driver)
88 %undefine with_quicktime
91 %ifnarch %{ix86} %{x8664} ppc ppc64
92 %undefine with_runtime
94 %ifnarch %{ix86} %{x8664}
98 %undefine with_altivec
100 %ifnarch i686 pentium4 athlon %{x8664}
101 %undefine with_crystalhd
105 %define binsuf %(lib=%{_lib} ; echo ${lib#lib})
107 %ifarch %{ix86} ppc sparc sparcv9 s390
110 %define binsuf %{nil}
114 # date from directory inside of tarball (like mplayer-export-2014-04-29)
115 %define snap 2017-07-09
116 %define ssnap %(echo %{snap} | tr -d -)
118 Summary: MPlayer - THE Movie Player for UN*X
119 Summary(de.UTF-8): MPlayer ist ein unter der freien GPL-Lizenz stehender Media-Player
120 Summary(es.UTF-8): Otro reproductor de películas
121 Summary(ko.UTF-8): 리눅스용 미디어플레이어
122 Summary(pl.UTF-8): Odtwarzacz filmów dla systemów uniksowych
123 Summary(pt_BR.UTF-8): Reprodutor de filmes
126 Release: 1.%{ssnap}.%{rel}
127 # DO NOT increase epoch unless it's really neccessary!
128 # especially such changes like pre7->pre7try2, increase Release instead!
129 # PS: $ rpmvercmp pre7try2 pre7
133 Group: Applications/Multimedia
134 # Source0: http://mplayerhq.hu/MPlayer/releases/MPlayer-%{version}.tar.xz
135 Source0: ftp://ftp.mplayerhq.hu/MPlayer/releases/mplayer-export-snapshot.tar.bz2
136 # Source0-md5: d5d7bb7176682afccd64ef855ae65e8d
137 Source1: http://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2
138 # Source1-md5: 20eb6a5caa8fd874e90033b54fc39ac0
139 Source3: ftp://ftp1.mplayerhq.hu/MPlayer/releases/fonts/font-arial-iso-8859-2.tar.bz2
140 # Source3-md5: 7b47904a925cf58ea546ca15f3df160c
141 Source5: g%{name}.desktop
142 Source6: ftp://ftp2.mplayerhq.hu/MPlayer/releases/fonts/font-arial-iso-8859-1.tar.bz2
143 # Source6-md5: 1ecd31d17b51f16332b1fcc7da36b312
145 Source8: %{name}.desktop
146 # http://www.on2.com/gpl/mplayer/
147 Source9: http://support.on2.com/gpl/mplayer/2009-10-08-mencoder-on2flixenglinux.tar.bz2
148 # Source9-md5: 07774a2663a8fda07c308df0c6569b56
150 # build (configure / Makefile) related:
151 Patch10: %{name}-ldflags.patch
152 Patch11: %{name}-altivec.patch
153 Patch12: %{name}-check-byteswap.patch
154 Patch13: %{name}-visibility-hidden-fix.patch
156 Patch15: %{name}-live555-async.patch
158 Patch17: %{name}-gsm.patch
159 Patch18: %{name}-openjpeg.patch
160 Patch19: %{name}-shared.patch
161 Patch20: %{name}-vstream.patch
163 # codecs, outputs, demuxers:
164 Patch21: %{name}-auto-expand.patch
165 Patch22: %{name}-release_directfb.patch
168 Patch30: %{name}-cp1250-fontdesc.patch
169 Patch31: %{name}-350.patch
170 # update, hard to fix right now because of gnome bug 579430:
171 # https://bugzilla.gnome.org/show_bug.cgi?id=579430
172 #Patch32: %{name}-gnome-screensaver.patch
174 Patch100: %{name}-on2flix.patch
175 Patch101: %{name}-link.patch
177 URL: http://www.mplayerhq.hu/
178 %{?with_directfb:BuildRequires: DirectFB-devel >= 0.9.22}
179 BuildRequires: EGL-devel
180 BuildRequires: OpenAL-devel
181 BuildRequires: OpenGL-GLX-devel
182 %{?with_sdl:BuildRequires: SDL-devel >= 1.1.7}
183 # checked, but seems actually not used
184 #%{?with_sdl:BuildRequires: SDL_image-devel}
185 BuildRequires: a52dec-libs-devel
186 %{?with_aalib:BuildRequires: aalib-devel}
187 %{?with_alsa:BuildRequires: alsa-lib-devel}
188 %{?with_arts:BuildRequires: artsc-devel}
189 BuildRequires: binutils >= 2.10.1
190 %{?with_ssse3:BuildRequires: binutils >= 3:2.16.92}
191 BuildRequires: bzip2-devel
192 #%{?with_cdparanoia:BuildRequires: cdparanoia-III-devel}
193 %{?with_gnomess:BuildRequires: dbus-glib-devel}
194 BuildRequires: dirac-devel
195 %{?with_doc:BuildRequires: docbook-dtd412-xml}
196 %{?with_doc:BuildRequires: docbook-style-xsl}
197 %{?with_dxr2:BuildRequires: dxr2-driver-devel}
198 %{?with_dxr3:BuildRequires: em8300-devel}
199 %{?with_enca:BuildRequires: enca-devel}
200 %{?with_esd:BuildRequires: esound-devel}
201 BuildRequires: faac-devel
202 %{?with_faad:BuildRequires: faad2-devel >= 2.0}
203 %{?with_system_ffmpeg:BuildRequires: ffmpeg-devel >= 0.4.9-4.20081024.3}
204 BuildRequires: fontconfig-devel >= 1:2.4.2
205 BuildRequires: freetype-devel >= 1:2.2.1
206 BuildRequires: fribidi-devel
207 %{?with_altivec:BuildRequires: gcc >= 5:4.1}
208 %{?with_gif:BuildRequires: giflib-devel}
209 %{?with_gui:BuildRequires: glib2-devel >= 1:2.6.0}
210 BuildRequires: gnutls-devel
211 %{?with_gui:BuildRequires: gtk+2-devel >= 2:2.4.0}
212 %{?with_jack:BuildRequires: jack-audio-connection-kit-devel}
213 %{?with_ladspa:BuildRequires: ladspa-devel}
214 BuildRequires: lame-libs-devel
215 BuildRequires: libass-devel >= 0.9.10
216 %{?with_bluray:BuildRequires: libbluray-devel}
217 %{?with_bs2b:BuildRequires: libbs2b-devel >= 3.0.0}
218 %{?with_caca:BuildRequires: libcaca-devel}
219 %{?with_cdio:BuildRequires: libcdio-paranoia-devel}
220 %{?with_crystalhd:BuildRequires: libcrystalhd-devel}
221 %{?with_libdts:BuildRequires: libdts-devel}
222 %{?with_libdv:BuildRequires: libdv-devel > 0.9.5}
223 #%{?with_system_dvdcss:BuildRequires: libdvdcss-devel}
224 %{?with_dvdnav:BuildRequires: libdvdnav-devel >= 4.1.3}
225 %{?with_system_dvdread:BuildRequires: libdvdread-devel >= 4.1}
226 %{?with_ggi:BuildRequires: libggi-devel}
227 %{?with_ggi:BuildRequires: libggiwmh-devel}
228 BuildRequires: libgsm-devel
229 BuildRequires: libjpeg-devel
230 %{?with_mad:BuildRequires: libmad-devel}
231 BuildRequires: libmng-devel
232 %{?with_musepack:BuildRequires: libmpcdec-devel >= 1.2.1}
233 %{?with_system_libmpeg2:BuildRequires: libmpeg2-devel}
234 %{?with_mpg123:BuildRequires: libmpg123-devel >= 1.14}
235 %{?with_nemesi:BuildRequires: libnemesi-devel >= 0.6.3}
236 BuildRequires: libnut-devel
237 BuildRequires: libpng-devel
238 %{?with_rtmp:BuildRequires: librtmp-devel}
239 %{?with_smb:BuildRequires: libsmbclient-devel}
240 %{?with_theora:BuildRequires: libtheora-devel}
241 %{?with_vdpau:BuildRequires: libvdpau-devel}
242 %if %{with vorbis} && %{without tremor}
243 BuildRequires: libvorbis-devel
245 BuildRequires: libvpx-devel
247 %{?with_x264:BuildRequires: libx264-devel >= 0.1.3}
248 BuildRequires: libxslt-progs
250 BuildRequires: linux-libc-headers >= 7:2.6.22
251 %{?with_lirc:BuildRequires: lirc-devel}
252 %{?with_live:BuildRequires: live-devel >= 2:2011.01.10}
253 %{?with_lzo:BuildRequires: lzo-devel >= 2.0}
254 %{?with_nas:BuildRequires: nas-devel}
255 BuildRequires: ncurses-devel
256 %{?with_amr:BuildRequires: opencore-amr-devel}
257 %{?with_openjpeg:BuildRequires: openjpeg-devel}
258 BuildRequires: opus-devel
259 BuildRequires: pkgconfig
260 %{?with_pulseaudio:BuildRequires: pulseaudio-devel >= 0.9}
261 BuildRequires: rpm >= 4.4.9-56
262 BuildRequires: rpmbuild(macros) >= 1.527
263 BuildRequires: schroedinger-devel
264 BuildRequires: speex-devel >= 1.1
265 %{?with_svga:BuildRequires: svgalib-devel}
266 BuildRequires: tar >= 1:1.22
267 %{?with_tremor:BuildRequires: tremor-devel}
268 BuildRequires: twolame-devel
269 %{?with_vidix:BuildRequires: vidix-devel}
270 %{?with_vstream:BuildRequires: vstream-client-devel}
271 BuildRequires: webrtc-libilbc-devel
272 %{?with_xmms:BuildRequires: xmms-devel}
273 BuildRequires: xorg-lib-libX11-devel
274 BuildRequires: xorg-lib-libXScrnSaver-devel
275 BuildRequires: xorg-lib-libXext-devel
276 BuildRequires: xorg-lib-libXinerama-devel
277 BuildRequires: xorg-lib-libXv-devel
278 BuildRequires: xorg-lib-libXvMC-devel
279 BuildRequires: xorg-lib-libXxf86dga-devel
280 BuildRequires: xorg-lib-libXxf86vm-devel
281 %{?with_xvid:BuildRequires: xvid-devel >= 1:0.9.0}
283 %ifarch %{ix86} %{x8664}
286 BuildRequires: zlib-devel
287 Requires: %{name}-common = %{epoch}:%{version}-%{release}
289 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
291 %define _noautoreqdep libGL.so.1 libGLU.so.1
292 %define specflags_ia32 -fomit-frame-pointer
294 %define specflags_ppc -maltivec
298 Movie player. Supported input formats: VCD (VideoCD), MPEG1/2, RIFF
299 AVI, ASF 1.0, Quicktime. Supported audio codecs: PCM (uncompressed),
300 MPEG layer 2/3, AC3, aLaw, MS-GSM, Win32 ACM. Supported video codecs:
301 MPEG 1 and MPEG 2, Win32 ICM (VfW), OpenDivX. Supported output
302 devices: Matrox G200/G400 hardware, Matrox G200/G400 overlay, X11
303 optionally with SHM extension, X11 using overlays with the Xvideo
304 extension, OpenGL renderer, Matrox G400 YUV support on framebuffer
305 Voodoo2/3 hardware, SDL v1.1.7 driver etc.
307 If you want to use win32 codecs install w32codec package.
309 %description -l de.UTF-8
310 MPlayer ist ein unter der freien GPL-Lizenz stehender Media-Player.
311 Kennzeichnend ist die herausragende Format- und
312 Plattform-Kompatibilität.
314 Es unterstützt eine Vielzahl von Video und Audio-Codecs, darunter auch
315 plattformexklusive, wodurch etwa Windows Media auch außerhalb von
316 Windows wiedergegeben werden kann. Darüber hinaus unterstützt er DVB.
317 Eine besondere Fehlertoleranz ermöglicht es dem mehrfach
318 ausgezeichneten Player, auch defekte Dateien abzuspielen. Eine weitere
319 Stärke ist dabei der Wegfall jeglicher Installation, so dass bereits
320 installierte Codecs nicht mit MPlayer kollidieren können.
322 %description -l es.UTF-8
323 Reproductor video. Formatos de entrada soportados: VCD (VideoCD),
324 MPEG1/2, RIFF AVI, ASF 1.0, Quicktime. Codecs de audio soportados: PCM
325 (uncompressed), MPEG layer 2/3, AC3, aLaw, MS-GSM, Win32 ACM. Codecs
326 de video soportados: MPEG 1 and MPEG 2, Win32 ICM (VfW), OpenDivX.
327 Dispositivos de salida soportados: Matrox G200/G400 hardware, Matrox
328 G200/G400 overlay, X11 optionalmente con la extensión SHM, X11 usando
329 overlays con la extensión Xvideo, plasmador OpenGL, soporte de Matrox
330 G400 YUV en hardware de framebuffer de Voodoo2/3, controlador SDL
333 Si quiere usar codecs Win32, instale el paquete w32codec.
335 %description -l ko.UTF-8
336 MPlayer는 리눅스용 무비플레이어입니다. 대부분의 mpeg, avi 그리고 asf
337 파일을 재생합니다. VCD, DVD, 심 지어 DivX까지 볼 수 있습니다.
338 MPlayer의 또 다른 큰 특징은 출력 드라이버가 다양하다는 것입니다. X11,
339 Xv, DGA, OpenGL, SVGAlib, fbdev와 작동하며, SDL이나
340 (Matrox/3dfx/Sis등의) 특정 카드에 종속된 로우레 벨 드라이버들도 사용할
341 수 있습니다. 대부분의 출력 드라이버들은 소프트웨어 혹은 하드웨어적인
342 크기조절 (scaling)을 지원하므로, 전체화면으로 영상을 감상할 수
343 있습니다. 뿐만아니라, 한국어, 영어, 헝가리어, 체코어, 러시아어등의
344 부드러운(antialiased) 자막폰트도 사용할 수 있습니다.
346 %description -l pl.UTF-8
347 Odtwarzacz wideo. Wspierane formaty wejściowe: VCD (VideoCD), MPEG1/2,
348 RIFF AVI, ASF 1.0, Quicktime. Wspierane kodeki audio: PCM
349 (nieskompresowane), MPEG layer 2/3, AC3, aLaw, MS-GSM, Win32 ACM.
350 Wspierane kodeki wideo: MPEG 1 and MPEG 2, Win32 ICM (VfW), OpenDivX.
351 Wspierane urządzenia wyjściowe: Matrox G200/G400, X11 opcjonalnie z
352 rozszerzeniem SHM, X11 z rozszerzeniem Xvideo, renderer OpenGL, Matrox
353 G400 używając framebuffera, Voodoo2/3, SDL v1.1.7 itp.
355 Jeśli chcesz używać kodeków win32, zainstaluj pakiet w32codec.
357 %description -l pt_BR.UTF-8
358 MPlayer é um reprodutor de filmes que suporta vários codecs de vídeo e
359 áudio. Diferentes mecanismos de reprodução podem também ser
360 escolhidos, incluindo SDL, SVGALib, frame buffer, aalib, X11 e outros.
363 Summary: MPlayer with GTK+ GUI interface
364 Summary(pl.UTF-8): MPlayer z graficznym interfejsem GTK+
365 Group: X11/Applications/Multimedia
366 Requires: %{name}-common = %{epoch}:%{version}-%{release}
367 Requires: %{name}-skin
369 %description -n gmplayer
370 MPlayer with GUI GTK+ interface.
372 %description -n gmplayer -l pl.UTF-8
373 MPlayer z graficznym interfejsem GTK+.
376 Summary: Configuration files and documentation for MPlayer
377 Summary(pl.UTF-8): Pliki konfiguracyjne i dokumentacja dla MPlayera
378 Group: Applications/Multimedia
380 Obsoletes: mplayer-vidix
383 Configuration files, man page and HTML documentation for MPlayer.
385 %description common -l pl.UTF-8
386 Pliki konfiguracyjne, strona manuala i dokumentacja HTML dla MPlayera.
389 Summary: HTML documentation for MPlayer
390 Summary(pl.UTF-8): Dokumentacja do MPlayera w formacie HTML
394 HTML Documentation for MPlayer.
396 %description doc -l pl.UTF-8
397 Dokumentacja do MPlayera w formacie HTML.
400 Summary: MEncoder - a movie encoder for Linux
401 Summary(pl.UTF-8): MEncoder - koder filmów dla Linuksa
402 Group: Applications/Multimedia
403 Requires: %{name}-common = %{epoch}:%{version}-%{release}
405 %description -n mencoder
406 MEncoder is a movie encoder for Linux and is a part of the MPlayer
409 %description -n mencoder -l pl.UTF-8
410 MEncoder to koder filmów dla Linuksa będący częścią pakietu MPlayer.
413 %setup -q -n %{name}-export-%{snap} -a1 -a3 -a6 -a9
414 cp -f etc/codecs.conf etc/codecs.win32.conf
416 # build (configure / Makefile) related:
426 %{?with_shared:%patch19 -p1}
429 # codecs, outputs, demuxers:
436 #%{with_gnomess:%patch32 -p1}
439 mv mencoder-on2flixenglinux{-*-*-*,}
442 cp -a mencoder-on2flixenglinux/patch/new_files/libmpdemux/* libmpdemux
443 # remove broken patches:
444 # - first set does not apply
445 # - second set beakes build
446 for PATCH in asf-correct_movielength avi_check_idxflags \
447 demux_lavf-add_dv_mts_preferred demux_lavf-probe_small_files \
448 mencoder_07_demux_update_pts mencoder_10_correct_pts \
449 mpegvideo-revert_r18381 \
451 reduce_spurious_logging
453 rm mencoder-on2flixenglinux/patch/$PATCH.diff
455 for a in mencoder-on2flixenglinux/patch/*.diff; do
462 cat etc/example.conf > etc/mplayer.conf
463 cat <<'CONFIGADD' >> etc/mplayer.conf
465 ######################
466 # PLD Linux Defaults #
467 ######################
470 # alternate solution for CP1250-encoded subtitles
474 # ...or if you prefer native bitmap fonts shipped with mplayer
479 unrarexec = "%{_bindir}/unrar"
481 # Joystick input is disabled because of issues on some laptops (thinkpad, macbook pro).
486 %if %{with system_ffmpeg}
487 # using external ffmpeg, but mplayer adds these to includepath
492 CFLAGS="%{rpmcflags} %{?with_hidden_visibility:-fvisibility=hidden} %{?with_shared:-fvisibility=default -fPIC}"
493 CFLAGS="$CFLAGS -I%{_includedir}/xvid%{?with_directfb::%{_includedir}/directfb} -DHAVE_GSM_H=1"
496 # - lircc refers to obsolete liblircc library (used in LIRCCD < 0.9)
497 # - toolame is obsolete predecessor of twolame
498 # - libcdio-paranoia is preferred over cdparanoia-III libs
503 %{?debug:--enable-debug=3} \
504 --prefix=%{_prefix} \
505 --codecsdir=%{_libdir}/codecs \
506 --confdir=%{_sysconfdir}/mplayer \
508 --extra-cflags="$CFLAGS" \
509 --real-ldflags="%{rpmldflags}" \
510 --extra-ldflags="%{?_x_libraries:-L%{_x_libraries}}" \
512 %if %{with system_ffmpeg}
515 %ifnarch %{ix86} %{x8664}
518 --disable-fastmemcpy \
526 %{__disable altivec} \
528 %{__disable aalib aa} \
529 %{__enable_disable alsa} \
531 %{__disable bluray} \
533 %{__disable cdparanoia} \
536 %{__enable_disable directfb} \
537 %{__enable_disable dvdnav} \
538 %{__disable system_dvdread dvdread-internal} \
541 --enable-dynamic-plugins \
550 %{__enable joystick} \
551 %{__disable cdio libcdio} \
552 %{__disable ladspa} \
553 %{__disable bs2b libbs2b} \
554 %{__disable libdts libdca} \
556 %{__disable system_dvdcss libdvdcss-internal} \
557 %{__disable lzo liblzo} \
558 %{__disable system_libmpeg2 libmpeg2-internal} \
559 %{__disable nemesi} \
560 %{__enable_disable amr libopencore_amrnb} %{__enable_disable amr libopencore_amrwb} \
561 %{__disable openjpeg} \
562 %{__disable rtmp librtmp} \
563 %{__disable vorbis libvorbis} \
564 %{__enable_disable lirc} \
568 %{__disable mencoder} \
569 %{__enable osd menu} \
571 %{__disable mpg123} \
572 %{__enable musepack} \
574 %{__disable pulseaudio pulse} \
575 %{__disable quicktime qtx} \
577 --enable-radio-capture \
579 %{__enable_disable runtime runtime-cpudetection} \
580 %{__enable_disable sdl} \
581 %{__disable select} \
587 %{__disable theora} \
589 %{!?with_tremor:--disable-tremor} \
593 %{__disable vstream} \
598 %{__disable win32 win32dll} \
602 %{?with_xmms:--enable-xmms --with-xmmsplugindir=%{_libdir}/xmms/Input --with-xmmslibdir=%{_libdir}} \
605 --enable-xvmc --with-xvmclib=XvMCW \
606 %{__enable_disable zr} \
609 %{__make} %{?with_verbose:V=1}
614 build --enable-gui --disable-mencoder
615 mv -f mplayer gmplayer
619 # now build regular version
627 rm -rf $RPM_BUILD_ROOT
629 $RPM_BUILD_ROOT{%{_bindir},%{_pixmapsdir},%{_sysconfdir}/mplayer} \
630 $RPM_BUILD_ROOT%{_mandir}/{cs,de,es,fr,hu,it,pl,ru,sv,zh_CN,}/man1 \
631 $RPM_BUILD_ROOT%{_datadir}/%{name}/skins \
632 $RPM_BUILD_ROOT%{_desktopdir}
634 # default config files
635 install etc/{codecs,mplayer%{?with_osd:,menu},input}.conf $RPM_BUILD_ROOT%{_sysconfdir}/mplayer
638 for prog in mplayer %{?with_mencoder:mencoder} %{?with_gui:gmplayer} ; do
639 install $prog $RPM_BUILD_ROOT%{_bindir}/${prog}%{binsuf}
640 %if "%{binsuf}" != ""
641 ln -sf ${prog}%{binsuf} $RPM_BUILD_ROOT%{_bindir}/$prog
646 install -d $RPM_BUILD_ROOT%{_libdir}
647 install libmplayer.so $RPM_BUILD_ROOT%{_libdir}
651 cp -r font-* $RPM_BUILD_ROOT%{_datadir}/mplayer
652 ln -sf font-arial-iso-8859-2/font-arial-24-iso-8859-2 $RPM_BUILD_ROOT%{_datadir}/mplayer/font
655 install %{SOURCE5} $RPM_BUILD_ROOT%{_desktopdir}
657 touch $RPM_BUILD_ROOT%{_datadir}/%{name}/skins/default
658 install %{SOURCE8} $RPM_BUILD_ROOT%{_desktopdir}
659 install %{SOURCE7} $RPM_BUILD_ROOT%{_pixmapsdir}
662 install DOCS/man/cs/*.1 $RPM_BUILD_ROOT%{_mandir}/cs/man1
663 install DOCS/man/de/*.1 $RPM_BUILD_ROOT%{_mandir}/de/man1
664 install DOCS/man/en/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
665 install DOCS/man/es/*.1 $RPM_BUILD_ROOT%{_mandir}/es/man1
666 install DOCS/man/fr/*.1 $RPM_BUILD_ROOT%{_mandir}/fr/man1
667 install DOCS/man/hu/*.1 $RPM_BUILD_ROOT%{_mandir}/hu/man1
668 install DOCS/man/it/*.1 $RPM_BUILD_ROOT%{_mandir}/it/man1
669 install DOCS/man/pl/*.1 $RPM_BUILD_ROOT%{_mandir}/pl/man1
670 install DOCS/man/ru/*.1 $RPM_BUILD_ROOT%{_mandir}/ru/man1
671 #install DOCS/man/sv/*.1 $RPM_BUILD_ROOT%{_mandir}/sv/man1
672 install DOCS/man/zh_CN/*.1 $RPM_BUILD_ROOT%{_mandir}/zh_CN/man1
675 rm -rf $RPM_BUILD_ROOT
679 [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1 ||:
683 [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1 ||:
686 %defattr(644,root,root,755)
687 %attr(755,root,root) %{_bindir}/mplayer*
691 %defattr(644,root,root,755)
692 %attr(755,root,root) %{_bindir}/gmplayer*
693 %{_desktopdir}/gmplayer.desktop
698 %defattr(644,root,root,755)
699 %doc DOCS/tech/encoding-guide.txt DOCS/tech/encoding-tips.txt
700 %doc DOCS/tech/swscaler_filters.txt DOCS/tech/swscaler_methods.txt
701 %doc DOCS/tech/colorspaces.txt
702 %attr(755,root,root) %{_bindir}/mencoder*
707 %defattr(644,root,root,755)
709 # HTML and XML-generated docs
711 %lang(cs) %doc DOCS/HTML/cs
712 %lang(de) %doc DOCS/HTML/de
713 %lang(es) %doc DOCS/HTML/es
714 %lang(fr) %doc DOCS/HTML/fr
715 %lang(hu) %doc DOCS/HTML/hu
716 %lang(pl) %doc DOCS/HTML/pl
717 %lang(ru) %doc DOCS/HTML/ru
718 #%lang(zh_CN) %doc DOCS/zh
722 %defattr(644,root,root,755)
724 %{?with_shared:%attr(755,root,root) %{_libdir}/libmplayer.so}
726 %doc etc/codecs.win32.conf
729 %dir %{_sysconfdir}/%{name}
730 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/*.conf
731 %{_mandir}/man1/mplayer.1*
732 %lang(cs) %{_mandir}/cs/man1/mplayer.1*
733 %lang(de) %{_mandir}/de/man1/mplayer.1*
734 %lang(es) %{_mandir}/es/man1/mplayer.1*
735 %lang(fr) %{_mandir}/fr/man1/mplayer.1*
736 %lang(hu) %{_mandir}/hu/man1/mplayer.1*
737 %lang(it) %{_mandir}/it/man1/mplayer.1*
738 %lang(pl) %{_mandir}/pl/man1/mplayer.1*
739 %lang(ru) %{_mandir}/ru/man1/mplayer.1*
740 #%lang(sv) %{_mandir}/sv/man1/mplayer.1*
741 %lang(zh_CN) %{_mandir}/zh_CN/man1/mplayer.1*
742 %{_desktopdir}/mplayer.desktop
743 %{_pixmapsdir}/mplayer.png
744 %dir %{_datadir}/%{name}
745 %{_datadir}/%{name}/font*
746 %dir %{_datadir}/%{name}/skins
747 %ghost %{_datadir}/%{name}/skins/default