%define name mplayer %define Name MPlayer %define Summary Movie player for linux %define prerel rc1 %define version 1.0 %define fversion %version%prerel %define svn 0 %if %svn %define rel 1.%prerel.0.%svn.1 %else %define rel 1.%prerel.20 %endif %define subrel 6 %define release %mkrel %rel %define amrnb 610 %define amrwb 700 %define build_plf 0 %define build_optimization 0 %define build_debug 0 %define build_mencoder 1 %define build_gui 1 %define kernel_version %(/bin/bash %{SOURCE5}) %define kver %(/bin/bash %{SOURCE5} | sed -e 's/-/./') %define kvername %(/bin/bash %{SOURCE5} | sed -e 's/-/./' | sed -e 's/mdk//') %define build_live 1 %define build_vesa 1 %define build_theora 1 %define build_ggi 0 %define build_lirc 1 %define build_xmms 0 %define build_amr 0 %define build_arts 0 %define build_aa 1 %define build_cdda 1 %define build_compiz 1 %define build_dirac 0 %define build_dv 1 %define build_dvdread 0 %define build_dvdnav 1 %define build_sdl 1 %define build_lzo 1 %define build_smb 1 %define build_mga 1 %define build_fbdev 1 %define build_dvb 1 %define build_fribidi 1 %define build_enca 1 %define build_alsa 1 %define build_jack 1 %define build_openal 0 %define build_pulse 1 %define build_twolame 0 %define build_lame 0 %define build_faac 0 %define build_x264 0 %define build_xvid 0 %define build_dts 0 %define build_directfb 1 %define build_v4l2 1 %define build_xvmc 1 %if ! %build_dvdnav %define build_dvdread 1 %endif %if %mdkversion < 920 %define build_smb 0 %define build_jack 0 %endif %if %mdkversion < 1000 %define build_openal 0 %define build_theora 0 %define build_directfb 0 %endif %if %mdkversion < 1020 %define build_v4l2 0 %endif %if %mdkversion < 200700 %define build_pulse 0 %endif %if %mdkversion < 200800 %define build_dirac 0 %endif %ifnarch %ix86 %define build_vesa 0 %endif %{?!mkrel:%define mkrel(c:) %{-c:0.%{-c*}.}%{!?_with_unstable:%(perl -e '$_="%{1}";m/(.*)(\\d+)$/;$rel=$2-1;re;print "$1$rel";').%{?subrel:%subrel}%{!?subrel:1}.%{?distversion:%distversion}%{?!distversion:%(echo $[%{mdkversion}/10])}}%{?_with_unstable:%{1}}%{?distsuffix:%distsuffix}%{?!distsuffix:mdk}} %{?_with_plf: %{expand: %%global build_plf 1}} %if %build_plf %define realpath %{_libdir}/real %define distsuffix plf %define build_dvdread 0 %define build_amr 1 %define build_twolame 1 %define build_lame 1 %define build_faac 1 %define build_x264 1 %define build_xvid 1 %define build_dts 1 %else %define realpath %{_libdir}/RealPlayer10GOLD/codecs %endif # Only support those arches for DHA at the moment %define vidix_arches %{ix86} ppc %define ppmajor 0 %define dhamajor 1.0 %define libname %mklibname dha %dhamajor %{?_with_amr: %{expand: %%global build_amr 1}} %{?_without_amr: %{expand: %%global build_amr 0}} %{?_with_live: %{expand: %%global build_live 1}} %{?_without_live: %{expand: %%global build_live 0}} %{?_with_vesa: %{expand: %%global build_vesa 1}} %{?_without_vesa: %{expand: %%global build_vesa 0}} %{?_with_optimization: %{expand: %%global build_optimization 1}} %{?_with_debug: %{expand: %%global build_debug 1}} %{?_without_debug: %{expand: %%global build_debug 0}} %{?_with_mencoder: %{expand: %%global build_mencoder 1}} %{?_without_mencoder: %{expand: %%global build_mencoder 0}} %{?_with_gui: %{expand: %%global build_gui 1}} %{?_without_gui: %{expand: %%global build_gui 0}} %{?_with_theora: %{expand: %%global build_theora 1}} %{?_without_theora: %{expand: %%global build_theora 0}} %{?_with_smb: %{expand: %%global build_smb 1}} %{?_without_smb: %{expand: %%global build_smb 0}} %{?_with_ggi: %{expand: %%global build_ggi 1}} %{?_without_ggi: %{expand: %%global build_ggi 0}} %{?_with_lirc: %{expand: %%global build_lirc 1}} %{?_without_lirc: %{expand: %%global build_lirc 0}} %{?_with_xmms: %{expand: %%global build_xmms 1}} %{?_without_xmms: %{expand: %%global build_xmms 0}} %{?_with_arts: %{expand: %%global build_arts 1}} %{?_without_arts: %{expand: %%global build_arts 0}} %{?_with_aa: %{expand: %%global build_aa 1}} %{?_without_aa: %{expand: %%global build_aa 0}} %{?_with_cdda: %{expand: %%global build_cdda 1}} %{?_without_cdda: %{expand: %%global build_cdda 0}} %{?_with_dirac: %{expand: %%global build_dirac 1}} %{?_without_dirac: %{expand: %%global build_dirac 0}} %{?_with_dv: %{expand: %%global build_dv 1}} %{?_without_dv: %{expand: %%global build_dv 0}} %{?_with_dvdread: %{expand: %%global build_dvdread 1}} %{?_without_dvdread: %{expand: %%global build_dvdread 0}} %{?_with_dvdnav: %{expand: %%global build_dvdnav 1}} %{?_without_dvdnav: %{expand: %%global build_dvdnav 0}} %{?_with_sdl: %{expand: %%global build_sdl 1}} %{?_without_sdl: %{expand: %%global build_sdl 0}} %{?_with_lzo: %{expand: %%global build_lzo 1}} %{?_without_lzo: %{expand: %%global build_lzo 0}} %{?_with_mga: %{expand: %%global build_mga 1}} %{?_without_mga: %{expand: %%global build_mga 0}} %{?_with_fribidi: %{expand: %%global build_fribidi 1}} %{?_without_fribidi: %{expand: %%global build_fribidi 0}} %{?_with_enca: %{expand: %%global build_enca 1}} %{?_without_enca: %{expand: %%global build_enca 0}} %{?_with_jack: %{expand: %%global build_jack 1}} %{?_without_jack: %{expand: %%global build_jack 0}} %{?_with_pulse: %{expand: %%global build_pulse 1}} %{?_without_pulse: %{expand: %%global build_pulse 0}} %{?_with_openal: %{expand: %%global build_openal 1}} %{?_without_openal: %{expand: %%global build_openal 0}} %{?_with_twolame: %{expand: %%global build_twolame 1}} %{?_without_twolame: %{expand: %%global build_twolame 0}} %{?_with_lame: %{expand: %%global build_lame 1}} %{?_without_lame: %{expand: %%global build_lame 0}} %{?_with_faac: %{expand: %%global build_faac 1}} %{?_without_faac: %{expand: %%global build_faac 0}} %{?_with_x264: %{expand: %%global build_x264 1}} %{?_without_x264: %{expand: %%global build_x264 0}} %{?_with_xvid: %{expand: %%global build_xvid 1}} %{?_without_xvid: %{expand: %%global build_xvid 0}} %{?_with_dts: %{expand: %%global build_dts 1}} %{?_without_dts: %{expand: %%global build_dts 0}} %{?_with_directfb: %{expand: %%global build_directfb 1}} %{?_without_directfb: %{expand: %%global build_directfb 0}} %{?_with_v4l2: %{expand: %%global build_v4l2 1}} %{?_without_v4l2: %{expand: %%global build_v4l2 0}} Name: %{name} Version: %{version} Release: %{release} Summary: %{Summary} %if %svn Source0: %{name}-%{svn}.tar.bz2 %else Source0: %{Name}-%{fversion}.tar.bz2 %endif Source1: http://www.3gpp.org/ftp/Specs/latest/Rel-5/26_series/26104-%{amrnb}.zip Source2: http://www.3gpp.org/ftp/Specs/latest/Rel-5/26_series/26204-%{amrwb}.zip #gw default skin Source4: Blue-1.5.tar.bz2 Source5: kernel-version.sh Patch0: mplayer-mdvconfig.patch Patch1: MPlayer-gnome-screensaver.patch Patch2: mplayer-1.0rc1-wmva.patch Patch3: mplayer-mp3lib-no-strict-aliasing.patch # gw from SVN, fix xv with mplayerplugin Patch4: mplayer-1.0rc1-xv.patch Patch5: mplayer-1.0pre7-lzo2.patch # from SVN, fix -use-filedir-conf Patch6: mplayer-1.0rc1-use-filedir-conf.patch Patch7: mplayer-1.0pre1-nomgafirst.patch Patch8: mplayer-mgavid.patch Patch9: mplayer-radeonvid.patch Patch10: mplayer-0.90pre10-ppc-build.patch Patch11: mplayer-lib64.patch Patch12: mplayer-1.0rc1-desktop.patch Patch13: MPlayer-20060101-64bit-fixes.patch Patch14: mplayer-1.0rc1-rtsp-overflow.patch Patch15: mplayer-1.0rc1-pulseaudio.patch Patch16: mplayer-CVE-2007-1246.patch Patch17: DS_VideoDecoder-CVE-2007-1387.patch #gw add experimental Dirac support, drop this if it doesn't apply anymore #http://downloads.sourceforge.net/dirac/MPlayer-1.0rc1_dirac-0.7.x.patch.tgz Patch18: MPlayer-1.0rc1_dirac-0.7.x.patch Patch19: MPlayer-1.0pre8-CVE-2006-6172.patch # gw security fix for CDDB overflow # http://lists.mplayerhq.hu/pipermail/mplayer-announce/2007-June/000066.html Patch20: cddb_fix_20070605.diff # cg add compiz support for xv when combined with video plugin # http://lists.freedesktop.org/archives/compiz/2007-July/002494.html Patch21: mplayer-xv-compiz-video-2.patch # gw from svn, fix security problem with manipulated AVI files Patch22: mplayer-24447-avi-index-security-fix.patch Patch23: mplayer-1.0rc1-CVE-2008-0225-0238.patch Patch24: mplayer-CVE-2008-0485-r25919-25922+FFMINMAX.patch Patch25: mplayer-1.0rc1-CVE-2008-0486-r25917.patch Patch26: mplayer-CVE-2008-0629-r25824.patch Patch27: mplayer-CVE-2008-0630-r25823.patch Patch28: mplayer-1.0rc1-CVE-2008-1558.patch Patch29: mplayer-CVE-2008-3827.patch Patch30: mplayer-1.0rc1-CVE-2008-0073.patch #mplayer-CVE-2008-0073.patch # CVE-2008-5616 Patch31: mplayer-1.0rc2-CVE-2008-5616.patch # CVE-2008-4866 Patch32: ffmpeg-r14714-CVE-2008-4866.patch URL: http://www.mplayerhq.hu License: GPL Group: Video %if %build_dvb && %mdkversion < 1000 BuildRequires: kernel-source %endif BuildRequires: libncurses-devel %if %build_aa BuildRequires: libaa-devel %endif %if %build_arts BuildRequires: libarts-devel %endif %if %build_jack BuildRequires: libjack-devel %endif %if %build_pulse BuildRequires: libpulseaudio-devel %endif %if %build_openal BuildRequires: libopenal-devel %endif %if %build_cdda BuildRequires: libcdda-devel %endif %if %build_dirac BuildRequires: libdirac-devel >= 0.7.0 %endif %if %build_dv BuildRequires: libdv-devel %endif BuildRequires: libdxr3-devel BuildRequires: libesound-devel BuildRequires: libjpeg-devel %if %build_lirc BuildRequires: liblirc-devel %endif %if %build_lzo BuildRequires: liblzo-devel %endif BuildRequires: libmad-devel BuildRequires: libnas-devel BuildRequires: libpng-devel %if %build_sdl BuildRequires: libSDL-devel >= 1.1.8 %endif BuildRequires: libtermcap-devel %if %build_xmms BuildRequires: libxmms-devel %endif %if %build_ggi BuildRequires: libggiwmh-devel %endif %if %build_smb BuildRequires: libsmbclient-devel > 2.2.8a-7mdk %endif %if %build_twolame BuildRequires: libtwolame-devel %endif %if %build_faac BuildRequires: libfaac-devel %endif %if %build_x264 BuildRequires: libx264-devel %endif %if %build_xvid BuildRequires: xvid-devel >= 1.0.0-0.beta2.1plf %endif %if %build_dts BuildRequires: dtsdec-devel %endif %if %build_lame BuildRequires: liblame-devel %endif %if %build_dvdnav BuildRequires: libdvdnav-devel %if %build_plf Requires: %mklibname dvdcss 2 %endif %endif %if %build_dvdread BuildRequires: libdvdread-devel >= 0.9.4 %endif %if %build_live BuildRequires: live-devel %endif %if %build_vesa BuildRequires: libvbe-devel liblrmi-devel %endif %if %build_theora BuildRequires: libtheora-devel %endif %if %build_fribidi BuildRequires: libfribidi-devel >= 0.10.4 %endif %if %build_enca BuildRequires: libenca-devel %endif %if %build_directfb BuildRequires: libdirectfb-devel %endif %if %mdkversion >= 200700 BuildRequires: libxvmc-devel BuildRequires: libmesagl-devel BuildRequires: libxxf86vm-devel BuildRequires: libxxf86dga-devel %endif BuildRequires: libspeex-devel BuildRequires: libmpcdec-devel BuildRequires: ladspa-devel BuildRequires: libxslt-proc BuildRequires: docbook-style-xsl BuildRequires: docbook-dtd412-xml BuildRequires: libcaca-devel BuildRequires: ungif-devel BuildRoot: %{_tmppath}/%{name}-%{version}-root %ifarch %{vidix_arches} Requires: %libname = %version %endif Provides: mplayer1.0 Obsoletes: mplayer1.0 %description MPlayer is a movie player for LINUX (runs on many other Unices, and non-x86 CPUs, see the documentation). It plays most MPEG, VOB, AVI, VIVO, ASF/WMV, QT/MOV, FLI, NuppelVideo, yuv4mpeg, FILM, RoQ, and some RealMedia files, supported by many native, XAnim, and Win32 DLL codecs. You can watch VideoCD, SVCD, DVD, 3ivx, FLI, and even DivX movies too (and you don't need the avifile library at all!). The another big feature of mplayer is the wide range of supported output drivers. It works with X11, Xv, DGA, OpenGL, SVGAlib, fbdev, AAlib, but you can use SDL (and this way all drivers of SDL), VESA (on every VESA compatible card, even without X!), and some lowlevel card-specific drivers (for Matrox, 3Dfx and Radeon) too! Most of them supports software or hardware scaling, so you can enjoy movies in fullscreen. MPlayer supports displaying through some hardware MPEG decoder boards, such as the DVB and DXR3/Hollywood+! And what about the nice big antialiased shaded subtitles (9 supported types!!!) with european/ISO 8859-1,2 (hungarian, english, czech, etc), cyrillic, korean fonts, and OSD? %if ! %build_plf Note: If you want to play Real content, you need to have the content of RealPlayer's Codecs directory in %realpath %else This package is in PLF because some included codecs are covered by patents. It also includes support for reading DVDs encrypted with CSS which might be illegal in some countries. For non-free binary codecs support you should install the packages win32-codecs, real-codecs and xanim-codecs. %endif %package doc Summary: %{Name} documentation Group: Books/Computer books %description doc This package contains documentation for %{Name}. %if %build_gui %package gui Summary: GUI for %{name} Group: Video Requires: %{name} = %{version} BuildRequires: gtk+2-devel BuildRequires: ImageMagick Requires(post): desktop-file-utils Requires(postun): desktop-file-utils Requires: soundwrapper Provides: mplayer1.0-gui Obsoletes: mplayer1.0-gui Conflicts: mplayer-skins < 1.3-8mdk %description gui This package contains a GUI for %{name}. %endif %if %build_mencoder %package -n mencoder Summary: MPlayer's movie encoder Group: Video Requires: %{name} = %version Provides: mencoder1.0 Obsoletes: mencoder1.0 %description -n mencoder MEncoder a movie encoder and is a part of the MPlayer package. %if !%build_plf Note: this version doesn't have support for encoding mp3 audio streams in the video files. %else This PLF build has additional support for AAC decoding with libfaad and MP3 encoding with lame, both are covered by software patents. It also includes support for reading DVDs encrypted with CSS which might be illegal in some countries. %endif %endif %package -n %libname Summary: Support library for MPlayer's vidix video drivers Group: System/Libraries %description -n %libname This package contains the libdha shared library required by the vidix video output drivers of MPlayer. %prep rm -rf $RPM_BUILD_ROOT %if %svn %setup -q -n %name -a 4 -a 1 -a 2 %else %setup -q -n MPlayer-%{version}%{prerel} -a 4 -a 1 -a 2 %endif %if %build_amr unzip -qq 26104-%{amrnb}_ANSI_C_source_code.zip mv c-code libavcodec/amr_float unzip -qq 26204-%{amrwb}_ANSI-C_source_code.zip mv c-code libavcodec/amrwb_float %endif #gw fix permissions find DOCS -type d|xargs chmod 755 find DOCS -type f|xargs chmod 644 find DOCS -name .svn|xargs rm -rf chmod 644 AUTHORS ChangeLog README Copyright rm -f Blue/README %patch0 -p1 -b .mdv %patch1 -p0 -b .gnome-screensaver %patch2 -p0 %patch3 -p1 -b .mp2 %patch4 -p1 -b .xv %if %mdkversion >= 200600 %patch5 -p1 -b .lzo2 %endif %patch6 -p1 -b .dirconf %patch7 -p1 -b .mga %patch8 -p1 -b .mga %patch9 -p1 -b .radeon %patch10 -p1 -b .ppc %ifarch x86_64 %patch11 -p1 -b .lib64 %endif %patch12 -p1 -b .desktopentry %patch13 -p2 -b .64bit-fixes %patch14 -p0 -b .rtsp-overflow %patch15 -p1 -b .pulseaudio %patch16 -p1 -b .cve-2007-1246 %patch17 -p1 -b .cve-2007-1387 %if %build_dirac %patch18 -p1 -b .dirac %endif cd stream %patch19 -p2 -b .cve-2006-6172 cd .. %patch20 -p0 -b .cddboverflow %if %build_compiz %patch21 -p0 -b .compiz %endif %patch22 -p1 -b .avi-idx %patch23 -p1 -b .cve-2008-0225-0238 %patch24 -p0 -b .cve-2008-0485 %patch25 -p0 -b .cve-2008-0486 %patch26 -p0 -b .cve-2008-0629 %patch27 -p0 -b .cve-2008-0630 %patch28 -p1 -b .cve-2008-1558 %patch29 -p0 -b .cve-2008-3827 %patch30 -p0 -b .cve-2008-0073 %patch31 -p2 -b .cve-2008-5616 %patch32 -p1 -b .cve-2008-4866 perl -pi -e "s^%fversion^%version-%release^" version.sh mv DOCS/README README.DOCS %build %if !%build_optimization export CFLAGS="$CFLAGS $RPM_OPT_FLAGS" %endif %if %build_debug export CFLAGS="$CFLAGS -g" %endif %ifarch ppc export CFLAGS="$CFLAGS -mcpu=7450 -maltivec" %endif export CPPFLAGS="-I%_includedir/directfb" ./configure \ --prefix=%{_prefix} \ --datadir=%{_datadir}/%{name} \ --confdir=%{_sysconfdir}/%{name} \ --libdir=%_libdir \ --enable-largefiles \ %if !%build_optimization %ifnarch x86_64 --enable-runtime-cpudetection \ %endif %ifarch %ix86 --enable-mmx \ --enable-3dnow \ --enable-sse \ --enable-sse2 \ --enable-fastmemcpy \ %endif %endif --enable-freetype \ --enable-nas \ %if %build_debug --enable-debug=3 \ %else --disable-sighandler \ %endif %if %build_gui --enable-gui \ %endif --language=all \ \ %if !%build_plf --disable-faad-internal \ %endif %if ! %build_dvdnav --disable-dvdnav \ %endif %if %build_dvdread || ! %build_plf --disable-mpdvdkit\ %endif %if %build_lirc --enable-lirc \ %else --disable-lirc \ %endif --enable-tv \ %if ! %build_v4l2 --disable-tv-v4l2 \ %endif --enable-joystick \ \ --enable-gl \ --disable-svga \ %if ! %build_mga --disable-mga \ %endif %if ! %build_fbdev --disable-fbdev \ %endif %if %build_directfb --enable-directfb \ %else --disable-directfb \ %endif %if %build_mencoder --enable-mencoder \ %else --disable-mencoder \ %endif %if %build_live --enable-live --with-livelibdir=%_libdir/live \ %else --disable-live \ %endif %if ! %build_vesa --disable-vesa \ %endif %if %build_theora --enable-theora \ %else --disable-theora \ %endif --enable-menu \ %if %build_xmms --enable-xmms --with-xmmslibdir=%{_libdir} \ %endif %if %build_smb --enable-smb \ %endif %if %build_dvb %if %mdkversion < 1000 --with-dvbincdir=/usr/src/linux/3rdparty/mod_dvb/include \ %endif %else --disable-dvb \ --disable-dvbhead \ %endif --with-xanimlibdir=%{_prefix}/X11R6/lib/xanim/mods \ --with-reallibdir=%{realpath} \ %if ! %build_ggi --disable-ggi \ %endif %ifarch %ix86 \ --with-win32libdir=%{_prefix}/lib/win32 \ %endif %if ! %build_arts --disable-arts \ %endif %if ! %build_jack --disable-jack \ %endif %if ! %build_aa --disable-aa \ %endif %if ! %build_cdda --disable-cdparanoia \ %endif %if ! %build_dv --disable-libdv \ %endif %if ! %build_lzo --disable-liblzo \ %else --with-extraincdir=%_includedir/lzo \ %endif %if ! %build_sdl --disable-sdl \ %endif %if ! %build_alsa --disable-alsa \ %endif %if %build_fribidi --enable-fribidi \ %endif %if !%build_enca --disable-enca \ %endif %if %build_pulse --enable-pulse \ %endif %if !%build_openal --disable-openal \ %endif --enable-zr \ %if %build_xvmc --enable-xvmc \ %endif # Keep this line before empty end %%configure (ppc conditionnal pb) %if %mdkversion == 1000 && %build_optimization make CC=gcc" -fno-unit-at-a-time" %else make %endif # (sb) these aren't building on their own for some reason make -C vidix # build HTML docs (cd DOCS/xml && make) %install rm -rf $RPM_BUILD_ROOT install -d -m 755 $RPM_BUILD_ROOT%{_bindir} install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/%name install -d -m 755 $RPM_BUILD_ROOT%{_libdir}/%name/vidix install -d -m 755 $RPM_BUILD_ROOT%{_sysconfdir}/%name install -d -m 755 $RPM_BUILD_ROOT%{_mandir}/{de,fr,hu,pl,es,zh_CN,""}/man1 install -m 755 mplayer $RPM_BUILD_ROOT%{_bindir} install -m 644 DOCS/man/en/mplayer.1 $RPM_BUILD_ROOT%{_mandir}/man1 install -m 644 DOCS/man/de/mplayer.1 $RPM_BUILD_ROOT%{_mandir}/de/man1/mplayer.1 install -m 644 DOCS/man/fr/mplayer.1 $RPM_BUILD_ROOT%{_mandir}/fr/man1/mplayer.1 install -m 644 DOCS/man/hu/mplayer.1 $RPM_BUILD_ROOT%{_mandir}/hu/man1/mplayer.1 install -m 644 DOCS/man/pl/mplayer.1 $RPM_BUILD_ROOT%{_mandir}/pl/man1/mplayer.1 install -m 644 DOCS/man/zh/mplayer.1 $RPM_BUILD_ROOT%{_mandir}/zh_CN/man1/mplayer.1 install -m 644 DOCS/man/es/mplayer.1 $RPM_BUILD_ROOT%{_mandir}/es/man1/mplayer.1 %if %build_mencoder install -m 755 mencoder $RPM_BUILD_ROOT%{_bindir} for man_dir in $RPM_BUILD_ROOT%{_mandir}/{de,fr,hu,pl,es,zh_CN,""}/man1; do (cd $man_dir && ln -s mplayer.1 mencoder.1) done install -m 755 TOOLS/mencvcd TOOLS/divx2svcd TOOLS/wma2ogg.pl TOOLS/midentify %buildroot%_bindir %endif install -m 644 etc/example.conf $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/mplayer.conf install -m 644 etc/codecs.conf $RPM_BUILD_ROOT%{_sysconfdir}/%{name} install -m 644 etc/input.conf $RPM_BUILD_ROOT%{_sysconfdir}/%{name} install -m 644 etc/menu.conf $RPM_BUILD_ROOT%{_sysconfdir}/%{name} %ifarch %{vidix_arches} install -m 755 -p libdha/libdha.so.%dhamajor %buildroot/%_libdir install -m 755 -p vidix/drivers/*.so %buildroot/%_libdir/%name/vidix %endif %if %build_gui # default Skin install -d -m 755 %buildroot%_datadir/%name/Skin/ cp -r Blue %buildroot%_datadir/%name/Skin/ ln -s Blue %buildroot%_datadir/%name/Skin/default # gmplayer equals mplayer -gui (cd $RPM_BUILD_ROOT%{_bindir} && ln -s mplayer gmplayer) # icons mkdir -p $RPM_BUILD_ROOT{%_liconsdir,%_iconsdir,%{_miconsdir}} convert -transparent white Blue/icons/icon48x48.png $RPM_BUILD_ROOT%{_liconsdir}/gmplayer.png convert -transparent white Blue/icons/icon32x32.png $RPM_BUILD_ROOT%{_iconsdir}/gmplayer.png convert -transparent white -scale 16x16 Blue/icons/icon48x48.png $RPM_BUILD_ROOT%{_miconsdir}/gmplayer.png # menu install -d -m 755 $RPM_BUILD_ROOT%{_menudir} cat >$RPM_BUILD_ROOT%{_menudir}/%{name}-gui <<EOF ?package(%{name}-gui): \ command="soundwrapper %{_bindir}/gmplayer -quiet -nofs"\ needs="X11"\ section="Multimedia/Video"\ icon="gmplayer.png"\ mimetypes="video/mpeg,video/msvideo,video/quicktime,video/x-avi,video/x-ms-asf,video/x-ms-wmv,video/x-msvideo,application/x-ogg,application/ogg,audio/x-mp3,audio/x-mpeg,video/x-fli,audio/x-wav"\ accept_url="true"\ multiple_files="true"\ title="%{Name}"\ longtitle="%{Summary}" xdg="true" EOF install -D -m 644 etc/mplayer.desktop %buildroot%_datadir/applications/mplayer.desktop %endif %if %build_debug export DONT_STRIP=1 %endif %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %if %build_gui %pre gui if [ -d %_datadir/%name/Skin/default ] then rm -rf %_datadir/%name/Skin/default fi %post gui %{update_menus} %update_desktop_database %postun gui %{clean_menus} %clean_desktop_database %endif %post -n %libname -p /sbin/ldconfig %postun -n %libname -p /sbin/ldconfig %clean rm -rf %{buildroot} %files %defattr(-,root,root) %doc AUTHORS ChangeLog README Copyright %dir %{_sysconfdir}/%name %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/%{name}/mplayer.conf %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/%{name}/codecs.conf %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/%{name}/input.conf %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/%{name}/menu.conf %{_bindir}/midentify %{_bindir}/mplayer %{_mandir}/man1/mplayer.1* %lang(de) %{_mandir}/de/man1/mplayer.1* %lang(fr) %{_mandir}/fr/man1/mplayer.1* %lang(hu) %{_mandir}/hu/man1/mplayer.1* %lang(pl) %{_mandir}/pl/man1/mplayer.1* %lang(zh_CN) %{_mandir}/zh_CN/man1/mplayer.1* %lang(es) %{_mandir}/es/man1/mplayer.1* %dir %{_datadir}/%{name} %dir %_libdir/%name/ %dir %_libdir/%name/vidix/ %ifarch %{vidix_arches} %_libdir/%name/vidix/*so %endif %files doc %defattr(-,root,root) %doc README.DOCS %doc DOCS/default.css DOCS/HTML DOCS/tech/ DOCS/zh/ %if %build_mencoder %files -n mencoder %defattr(-,root,root) %{_bindir}/mencoder %{_bindir}/divx2svcd %{_bindir}/mencvcd %{_bindir}/wma2ogg.pl %{_mandir}/man1/mencoder.1* %lang(de) %{_mandir}/de/man1/mencoder.1* %lang(fr) %{_mandir}/fr/man1/mencoder.1* %lang(hu) %{_mandir}/hu/man1/mencoder.1* %lang(pl) %{_mandir}/pl/man1/mencoder.1* %lang(zh_CN) %{_mandir}/zh_CN/man1/mencoder.1* %lang(es) %{_mandir}/es/man1/mencoder.1* %endif %ifarch %{vidix_arches} %files -n %libname %defattr(-,root,root) %_libdir/libdha.so.%dhamajor %endif %if %build_gui %files gui %defattr(-,root,root) %{_bindir}/gmplayer %{_menudir}/%{name}-gui %_datadir/applications/mplayer.desktop %_datadir/%name/Skin/ %{_iconsdir}/gmplayer.png %{_miconsdir}/gmplayer.png %{_liconsdir}/gmplayer.png %endif %changelog * Thu Jan 15 2009 Eugeni Dodonov <eugeni@mandriva.com> 1.0-1.rc1.20.6mdv2008.0 - P31: security fix for CVE-2008-5616 - P32: security fix for CVE-2008-4866 * Wed Oct 29 2008 Vincent Danen <vdanen@mandriva.com> 1.0-1.rc1.20.5mdv2008.0 - P29: security fix for CVE-2008-3827 - P30: security fix for CVE-2008-0073 (shared code from xine-lib) * Fri Sep 12 2008 Gustavo De Nardin <gustavodn@mandriva.com> 1.0-1.rc1.20.4mdv2008.0 - P28: security fix for CVE-2008-1558 * Thu Feb 14 2008 Gustavo De Nardin <gustavodn@mandriva.com> 1.0-1.rc1.20.2mdv2008.0 - P23: security fixes for CVE-2008-0225, CVE-2008-0238 - P24: security fix for CVE-2008-0485 - P25: security fix for CVE-2008-0486 - P26: security fix for CVE-2008-0629 - P27: security fix for CVE-2008-0630 * Fri Sep 14 2007 Götz Waschk <waschk@mandriva.org> 1.0-1.rc1.20mdv2008.0 + Revision: 85498 - security fix for avi index reader * Sun Jul 15 2007 Colin Guthrie <cguthrie@mandriva.org> 1.0-1.rc1.19mdv2008.0 + Revision: 52228 - Rebuild due to build system hiccup * Sat Jul 14 2007 Colin Guthrie <cguthrie@mandriva.org> 1.0-1.rc1.18mdv2008.0 + Revision: 52121 - Add compiz support to xv output (needs compiz 'video' plugin to be active) * Wed Jun 27 2007 Andreas Hasenack <andreas@mandriva.com> 1.0-1.rc1.17mdv2008.0 + Revision: 44944 - rebuild with new rpm-mandriva-setup (-fstack-protector) * Thu Jun 07 2007 Götz Waschk <waschk@mandriva.org> 1.0-1.rc1.16mdv2008.0 + Revision: 36497 - security fix for CDDB overflow * Mon Jun 04 2007 Götz Waschk <waschk@mandriva.org> 1.0-1.rc1.15mdv2008.0 + Revision: 35218 - curity fix for CVE-2006-6172 (realmedia buffer overflow) - amrwb update * Mon May 21 2007 Götz Waschk <waschk@mandriva.org> 1.0-1.rc1.14mdv2008.0 + Revision: 29464 - rebuild * Sat May 12 2007 Götz Waschk <waschk@mandriva.org> 1.0-1.rc1.13mdv2008.0 + Revision: 26466 - disable dirac again, it was breaking MPEG detection * Fri May 11 2007 Götz Waschk <waschk@mandriva.org> 1.0-1.rc1.12mdv2008.0 + Revision: 26249 - patch for dirac support * Thu Mar 15 2007 Olivier Blin <oblin@mandriva.com> 1.0-1.rc1.11mdv2007.1 + Revision: 144524 - move HTML doc in a mplayer-doc sub-package * Tue Mar 13 2007 Götz Waschk <waschk@mandriva.org> 1.0-1.rc1.10mdv2007.1 + Revision: 143064 - security fix for CVE-2007-1387 * Thu Mar 08 2007 Götz Waschk <waschk@mandriva.org> 1.0-1.rc1.9mdv2007.1 + Revision: 138476 - security patch for CVE-2007-1246 - support libggiwmh build * Fri Feb 23 2007 Götz Waschk <waschk@mandriva.org> 1.0-1.rc1.8mdv2007.1 + Revision: 124957 - rebuild for new libmpcdec * Thu Feb 22 2007 Götz Waschk <waschk@mandriva.org> 1.0-1.rc1.7mdv2007.1 + Revision: 124646 - sync with Ubuntu: * replace patch 1 by simple call to gconf * patch 14: fix buffer overflow in rtsp code * patch 15: pulseaudio support - make mplayer report the package version - depend on soundwrapper as it is used in the menu entry * Fri Jan 05 2007 Anssi Hannula <anssi@mandriva.org> 1.0-1.rc1.6mdv2007.1 + Revision: 104624 - fix -use-filedir-conf option (patch6, from SVN) * Wed Nov 08 2006 Götz Waschk <waschk@mandriva.org> 1.0-1.rc1.5mdv2007.1 + Revision: 78192 - fix desktop entry * Tue Nov 07 2006 Götz Waschk <waschk@mandriva.org> 1.0-1.rc1.4mdv2007.0 + Revision: 77317 - fix xv with mplayer plugin (ghibo) - add soundwrapper to the menu entry - disable dvdread, which is obsoleted by dvdnav * Thu Oct 26 2006 Götz Waschk <waschk@mandriva.org> 1.0-1.rc1.3mdv2007.1 + Revision: 72651 - disable arts - patch to add missing WMVA FourCC * Wed Oct 25 2006 Götz Waschk <waschk@mandriva.org> 1.0-1.rc1.2mdv2007.0 + Revision: 72295 - bot rebuild - new version enable dvdnav fix buildrequires rediff patches 1,3,11 drop patch 2,14 fix directfb detection remove obsoleted options + Anssi Hannula <anssi@mandriva.org> - fix non-plf real codecs dir * Fri Oct 20 2006 Götz Waschk <waschk@mandriva.org> 1.0-1.pre8.17mdv2007.0 + Revision: 71231 - fix patch 2 * Fri Oct 20 2006 Götz Waschk <waschk@mandriva.org> 1.0-1.pre8.16mdv2007.1 + Revision: 71203 - update patch 2 for new x264 * Fri Oct 20 2006 Götz Waschk <waschk@mandriva.org> 1.0-1.pre8.15mdv2007.0 + Revision: 71172 - rebuild - fix description - Import mplayer * Wed Oct 11 2006 Götz Waschk <waschk@mandriva.org> 1.0-1.pre8.14mdv2007.1 - disable joystick by default (bug #26334) * Thu Sep 21 2006 Nicolas Lécureuil <neoclust@mandriva.org> 1.0-1.pre8.13mdv2007.0 - Rebuild agaisnt ncurse * Fri Sep 01 2006 Götz Waschk <waschk@mandriva.org> 1.0-1.pre8.12mdv2007.0 - fix build on x86_64 * Wed Aug 30 2006 Götz Waschk <waschk@mandriva.org> 1.0-1.pre8.11mdv2007.0 - patch for new x264 * Tue Aug 08 2006 Götz Waschk <waschk@mandriva.org> 1.0-1.pre8.10mdv2007.0 - fix ogm seek (bug #23897) * Fri Aug 04 2006 Götz Waschk <waschk@mandriva.org> 1.0-1.pre8.9mdv2007.0 - rebuild for dbus * Wed Aug 02 2006 Götz Waschk <waschk@mandriva.org> 1.0-1.pre8.8mdv2007.0 - disable polypaudio * Sat Jul 08 2006 Anssi Hannula <anssi@mandriva.org> 1.0-1.pre8.7mdv2007.0 - fix buildrequires * Sat Jul 08 2006 Götz Waschk <waschk@mandriva.org> 1.0-1.pre8.6mdv2007.0 - fix buildrequires * Tue Jul 04 2006 Götz Waschk <waschk@mandriva.org> 1.0-1.pre8.5mdv2007.0 - disable optimization by default * Mon Jul 03 2006 Götz Waschk <waschk@mandriva.org> 1.0-1.pre8.4mdv2007.0 - update amr * Sun Jul 02 2006 Götz Waschk <waschk@mandriva.org> 1.0-1.pre8.3mdv2007.0 - rebuild * Thu Jun 22 2006 Götz Waschk <waschk@mandriva.org> 1.0-1.pre8.2mdv2007.0 - disable dbus on 2006.0 - xdg menu * Tue Jun 13 2006 Götz Waschk <waschk@mandriva.org> 1.0-1.pre8.1mdv2007.0 - rediff patch 1 - new version * Thu Jun 08 2006 Götz Waschk <waschk@mandriva.org> 1.0-1.pre8.0.18614.1mdv2007.0 - fix buildrequires - svn snapshot * Sat May 06 2006 Götz Waschk <waschk@mandriva.org> 1.0-1.pre7.20060505.1mdk - add gnome-screensaver suspend support via dbus - new snapshot * Sun Apr 16 2006 Götz Waschk <waschk@mandriva.org> 1.0-1.pre7.20060415.1mdk - new snapshot * Tue Apr 04 2006 Götz Waschk <waschk@mandriva.org> 1.0-1.pre7.20060403.1mdk - add vesa support - new snapshot * Thu Mar 23 2006 Götz Waschk <waschk@mandriva.org> 1.0-1.pre7.20060323.1mdk - fix build - fix buildrequires - workaround for bug 21713 (enabled optimization flag) - new snapshot * Tue Mar 21 2006 Götz Waschk <waschk@mandriva.org> 1.0-1.pre7.20060321.1mdk - disable openal - new snapshot * Thu Feb 23 2006 Götz Waschk <waschk@mandriva.org> 1.0-1.pre7.20060223.1mdk - depend on openal - disable xmms plugin - new snapshot * Wed Feb 22 2006 Götz Waschk <waschk@mandriva.org> 1.0-1.pre7.20060222.1mdk - new snapshot * Fri Jan 27 2006 Götz Waschk <waschk@mandriva.org> 1.0-1.pre7.20060127.1mdk - build fix - rediff patch 0 - new snapshot * Sun Jan 01 2006 Götz Waschk <waschk@mandriva.org> 1.0-1.pre7.20060101.1mdk - enable xvmc - rediff patch 13 - new version * Tue Dec 20 2005 Götz Waschk <waschk@mandriva.org> 1.0-1.pre7.20051220.1mdk - fixes for 10.1 - new version * Mon Dec 19 2005 Götz Waschk <waschk@mandriva.org> 1.0-1.pre7.20051219.1mdk - fix dvb build (Anssi) - disable ggi and enable directfb instead - new snapshot * Fri Dec 16 2005 Götz Waschk <waschk@mandriva.org> 1.0-1.pre7.20051216.1mdk - add more build options - update Blue skin - new snapshot * Thu Dec 15 2005 Götz Waschk <waschk@mandriva.org> 1.0-1.pre7.20051215.1mdk - drop postproc package - fix buildrequires - fix build - drop patches 1,2,4,6,12,14 - rediff patches 0,13 - new version * Wed Dec 14 2005 Götz Waschk <waschk@mandriva.org> 1.0-1.pre7.15mdk - patch for CVE-2005-4048 (bug #20186) * Sun Oct 30 2005 Götz Waschk <waschk@mandriva.org> 1.0-1.pre7.14mdk - fix real path * Sun Oct 30 2005 Götz Waschk <waschk@mandriva.org> 1.0-1.pre7.13mdk - configuration fixes for x86_64 * Fri Sep 09 2005 Götz Waschk <waschk@mandriva.org> 1.0-1.pre7.12mdk - patch for pcm overflow * Thu Sep 08 2005 Gwenole Beauchesne <gbeauchesne@mandriva.com> 1.0-1.pre7.11mdk - 64-bit fixes - further gcc4 fixes from current CVS * Wed Jun 29 2005 Götz Waschk <waschk@mandriva.org> 1.0-1.pre7.10mdk - update patch 5 for new liblzo * Thu Jun 02 2005 Götz Waschk <waschk@mandriva.org> 1.0-0.pre7.9mdk - patch 5 for new lzo * Sun May 22 2005 Christiaan Welvaart <cjw@daneel.dyndns.org> 1.0-0.pre7.8mdk - patch12: fix ppc build with gcc 4.0 * Thu May 19 2005 Götz Waschk <waschk@mandriva.org> 1.0-0.pre7.7mdk - patch 3 from Austin Acton: fix creation of noisy mp2 audio files * Wed May 11 2005 Götz Waschk <waschk@mandriva.org> 1.0-0.pre7.6mdk - patches 1 and 2 for gcc 4.0 * Tue Apr 26 2005 Götz Waschk <waschk@mandriva.org> 1.0-0.pre7.5mdk - rebuild for new libtheora * Thu Apr 21 2005 Götz Waschk <waschk@mandriva.org> 1.0-0.pre7.4mdk - add midentify * Thu Apr 21 2005 Götz Waschk <waschk@mandriva.org> 1.0-0.pre7.3mdk - add separate conditional build option for amr - drop patches 12,13,14 * Wed Apr 20 2005 Götz Waschk <waschk@mandriva.org> 1.0-0.pre7.2mdk - amr support (disabled by default) * Tue Apr 19 2005 Götz Waschk <waschk@linux-mandrake.com> 1.0-0.pre7.1mdk - update patch 0 - fix deps - disable divx, it's obsolete - mkrel support - new version * Tue Apr 05 2005 Buchan Milne <bgmilne@linux-mandrake.com> 1.0-0.pre6.8mdk - Rebuild for libsmbclient * Tue Jan 04 2005 Götz Waschk <waschk@linux-mandrake.com> 1.0-0.pre6.7mdk - add polpyaudio support * Tue Dec 28 2004 Götz Waschk <waschk@linux-mandrake.com> 1.0-0.pre6.6mdk - drop kernel modules * Tue Dec 28 2004 Giuseppe Ghibò <ghibo@mandrakesoft.com> 1.0-0.pre6.5mdk - Upgraded Patch11,12,13,14 for X86-64. * Tue Dec 28 2004 Götz Waschk <waschk@linux-mandrake.com> 1.0-0.pre6.4mdk - enable ladspa - enable live - enable dvb (fixes bug #12812) - update patch 0 to fix bug #12834 * Mon Dec 27 2004 Giuseppe Ghibò <ghibo@mandrakesoft.com> 1.0-0.pre6.3mdk - Increased OSD font to size 3 (previous 2). * Mon Dec 27 2004 Giuseppe Ghibò <ghibo@mandrakesoft.com> 1.0-0.pre6.2mdk - Added Martin Braun Patch13 for fixing vidix savage building under X86_64. * Mon Dec 27 2004 Giuseppe Ghibò <ghibo@mandrakesoft.com> 1.0-0.pre6.1mdk - Readapted Patch0 (config), and let default OSD fonts slightly smaller. - Removed Patch1, 2, 11, 12, 13, 14 merged upstream. - Removed build_semistatic build flag. - Disabled build with live library for now (doesn't build). - Disabled parallel building. - Added Martin Braun Patches for X86_64 (Patch11, 12). * Thu Dec 16 2004 Götz Waschk <waschk@linux-mandrake.com> 1.0-0.pre5.9mdk - new version 1.0pre5try2 * Thu Dec 02 2004 Götz Waschk <waschk@linux-mandrake.com> 1.0-0.pre5.8mdk - fix upgrade of mplayer-gui from < 1.0-0.pre5.6mdk - add bio2jack support * Tue Sep 28 2004 Götz Waschk <waschk@linux-mandrake.com> 1.0-0.pre5.7mdk - patch 1: fix GL scaling * Thu Sep 23 2004 Götz Waschk <waschk@linux-mandrake.com> 1.0-0.pre5.6mdk - disable fullscreen by default - enable zoom by default - merge patch1 and patch3 as new patch0 - drop support for mdk 9.0 - link default to Blue skin - drop patch0 * Tue Sep 21 2004 Christiaan Welvaart <cjw@daneel.dyndns.org> 1.0-0.pre5.5mdk - patch13: fix compilation of new altivec code in postproc (for ppc) * Tue Sep 07 2004 Götz Waschk <waschk@linux-mandrake.com> 1.0-0.pre5.4mdk - enable v4l2 (bug #11231) * Mon Aug 09 2004 Götz Waschk <waschk@linux-mandrake.com> 1.0-0.pre5.3mdk - make icon transparent - fix patch 11 * Tue Jul 27 2004 Götz Waschk <waschk@linux-mandrake.com> 1.0-0.pre5.2mdk - enable enca - include patches 11 and 12 from official package - use Blue icon - patch2: fix build with newer live.com - enable zr * Fri Jul 16 2004 Götz Waschk <waschk@linux-mandrake.com> 1.0-0.pre5.1mdk - disable alsa on 9.0 - add wma2ogg.pl - libdha major 1.0 - patch 4: fix build with our kernel 2.6 headers - drop merged patches 2,11 - new version * Wed Jun 16 2004 Christiaan Welvaart <cjw@daneel.dyndns.org> 1.0-0.pre4.8mdk - ppc build fixes * Thu Jun 10 2004 Götz Waschk <waschk@linux-mandrake.com> 1.0-0.pre4.7mdk - add fribidi support * Wed Jun 09 2004 Götz Waschk <waschk@linux-mandrake.com> 1.0-0.pre4.6mdk - use parallel build - rebuild * Thu Jun 03 2004 Götz Waschk <waschk@linux-mandrake.com> 1.0-0.pre4.5mdk - fix metacity fullscreen issue * Wed Jun 02 2004 Götz Waschk <waschk@linux-mandrake.com> 1.0-0.pre4.4mdk - add divx2svcd script * Sat May 01 2004 Götz Waschk <waschk@linux-mandrake.com> 1.0-0.pre4.3mdk - use fontconfig instead of supplied font for OSD (Michael Reinsch) * Fri Apr 30 2004 Götz Waschk <waschk@linux-mandrake.com> 1.0-0.pre4.2mdk - drop patch 2 * Thu Apr 29 2004 Götz Waschk <waschk@linux-mandrake.com> 1.0-0.pre4.1mdk - don't depend on libmatroska and libflac anymore - drop patch 1 - 1.0pre4 * Fri Apr 09 2004 Götz Waschk <waschk@linux-mandrake.com> 1.0-0.pre3.15mdk - don't rename Blue skin to default - always enable live * Sat Apr 03 2004 Götz Waschk <waschk@linux-mandrake.com> 1.0-0.pre3.14mdk - fix naming of the package * Sat Apr 03 2004 Götz Waschk <waschk@linux-mandrake.com> 1.0-0.pre3try2.2mdk - add Copyright file - fix doc permissions * Sat Apr 03 2004 Götz Waschk <waschk@linux-mandrake.com> 1.0-0.pre3try2.1mdk - enable libtheora - new libdv - new version