Sophie

Sophie

distrib > Mandriva > 2007.0 > x86_64 > media > main-updates-src > by-pkgid > 3bfcb7ba4d5e681fb8c40651acd2ee4a > files > 23

mplayer-1.0-1.pre8.13.5mdv2007.0.src.rpm

%define name		mplayer
%define Name		MPlayer
%define Summary		Movie player for linux
%define prerel		pre8
%define version 1.0
%define svn 0
%define subrel	5
%if %svn
%define rel		1.%prerel.0.%svn.1
%else 
%define rel 1.%prerel.13
%endif
%define release		%mkrel %rel
%define amrnb 610
%define amrwb 600

%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_dbus	1
%define	build_xmms	0
%define build_amr	0
%define	build_arts	1
%define build_aa	1
%define build_cdda	1
%define build_dv	1
%define build_dvdread	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_polyp	0
%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 %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 < 1010
%define build_polyp	0
%endif

%if %mdkversion < 1020
%define build_v4l2	0
%endif

%if %mdkversion <= 200600
%define build_dbus	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_dbus: %{expand: %%global build_dbus 1}}
%{?_without_dbus: %{expand: %%global build_dbus 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_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_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_polyp: %{expand: %%global build_polyp 1}}
%{?_without_polyp: %{expand: %%global build_polyp 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}-%{version}%{prerel}.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-20060127-mdkconfig.patch.bz2
Patch1:		MPlayer-1.0pre8-gnome-screensaver.patch.bz2
Patch2:		mplayer-x264-r537.patch.bz2
Patch3:		mplayer-mp3lib-no-strict-aliasing.patch.bz2
Patch5:		mplayer-1.0pre7-lzo2.patch.bz2
Patch7:		mplayer-1.0pre1-nomgafirst.patch.bz2
Patch8:		mplayer-mgavid.patch.bz2
Patch9:		mplayer-radeonvid.patch.bz2
Patch10:	mplayer-0.90pre10-ppc-build.patch.bz2
Patch11:	mplayer-lib64.patch.bz2
Patch13:	MPlayer-20060101-64bit-fixes.patch.bz2
# gw from SVN, revert OGM seek patch
Patch14:	MPlayer-1.0pre8-ogmseek.patch.bz2
Patch15:	mplayer-CVE-2007-1246.patch
Patch16:	DS_VideoDecoder-CVE-2007-1387.patch
Patch17:	MPlayer-1.0pre8-CVE-2006-6172.patch
Patch18:	MPlayer-1.0pre3-CVE-2007-2948.patch
Patch19:	mplayer-svn24447-CVE-2007-4938.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_polyp
BuildRequires:  libpolypaudio-devel
%endif
%if %build_openal
BuildRequires:  libopenal-devel
%endif
%if %build_cdda
BuildRequires:	libcdda-devel
%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_dbus
BuildRequires:	libdbus-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:	libggi-devel
#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_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 PLF build has additional support for AAC decoding with libfaad, which
is covered by software 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

%if %build_gui
%package gui
Summary:	GUI for %{name}
Group:		Video
Requires:	%{name} = %{version}
BuildRequires:	gtk+2-devel
BuildRequires:	ImageMagick
BuildRequires:	desktop-file-utils
Requires(post): desktop-file-utils
Requires(postun): desktop-file-utils
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 .mdk
%patch1 -p1 -b .gnome-screensaver
%patch2 -p1 -b .x264
%patch3 -p1 -b .mp2
%if %mdkversion >= 200600
%patch5 -p1 -b .lzo2
%endif
%patch7 -p1 -b .mga
%patch8 -p1 -b .mga
%patch9 -p1 -b .radeon
%patch10 -p1 -b .ppc
%ifarch x86_64
%patch11 -p1 -b .lib64
%endif
%patch13 -p2 -b .64bit-fixes
%patch14 -p1 -b .ogmseek
%patch15 -p1 -b .cve-2007-1246
%patch16 -p1 -b .cve-2007-1387
%patch17 -p1 -b .cve-2006-6172
%patch18 -p0 -b .cve-2007-2948
%patch19 -p0 -b .cve-2007-4938

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
./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-internal-faad \
%endif
%if %build_dvdread
	--disable-mpdvdkit\
%endif
%if %build_lirc
	--enable-lirc \
%else
	--disable-lirc \
%endif
%if ! %build_dbus
	--disable-dbus-glib \
%endif
	--enable-tv \
	--enable-tv-v4l \
%if %build_v4l2
	--enable-tv-v4l2 \
%else
	--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-x11incdir=%{_prefix}/X11R6/include \
	--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_polyp
	--disable-polyp \
%endif
%if !%build_openal
	--disable-openal \
%endif
	--enable-zr \
%if %build_xvmc
	--enable-xvmc \
%endif
	--disable-divx4linux


# 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="%{_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
desktop-file-install --vendor="" \
  --remove-category="Application" \
  --add-category="X-MandrivaLinux-Multimedia-Video" \
  --dir $RPM_BUILD_ROOT%{_datadir}/applications $RPM_BUILD_ROOT%{_datadir}/applications/*
perl -pi -e "s^mplayer.xpm^gmplayer^" $RPM_BUILD_ROOT%{_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 README.DOCS Copyright
%doc DOCS/default.css DOCS/HTML DOCS/it/ DOCS/tech/ 
%doc DOCS/zh/
%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

%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
* Mon Oct 01 2007 Vincent Danen <vdanen@mandriva.com> 1.0-1.pre8.13.5mdv2007.0
- P19: security fix for CVE-2007-4938

* Thu Jul 05 2007 Gustavo De Nardin <gustavodn@mandriva.com> 1.0-1.pre8.13.4mdv2007.0
- P18: security fix for CVE-2007-2948

* Thu May 24 2007 Gustavo De Nardin <gustavodn@mandriva.com> 1.0-1.pre8.13.3mdv2007.0
- P17: security fix for CVE-2006-6172 (realmedia buffer overflow)

* Mon Mar 12 2007 Stew Benedict <sbenedict@mandriva.com> 1.0-1.pre8.13.2mdv2007.0
- P16: security fix for CVE-2007-1387

* Wed Mar 07 2007 Stew Benedict <sbenedict@mandriva.com> 1.0-1.pre8.13.1mdv2007.0
- P15: security fix for CVE-2007-1246

* Wed Sep 20 2006 Nicolas Lécureuil <neoclust@mandriva.org> 1.0-1.pre8.13mdv2007.0
- Rebuild agaisnt ncurse

* Thu Aug 31 2006 Götz Waschk <waschk@mandriva.org> 1.0-1.pre8.12mdv2007.0
- fix build on x86_64

* Tue Aug 29 2006 Götz Waschk <waschk@mandriva.org> 1.0-1.pre8.11mdv2007.0
- patch for new x264

* Mon Aug  7 2006 Götz Waschk <waschk@mandriva.org> 1.0-1.pre8.10mdv2007.0
- fix ogm seek (bug #23897)

* Thu Aug  3 2006 Götz Waschk <waschk@mandriva.org> 1.0-1.pre8.9mdv2007.0
- rebuild for dbus

* Tue Aug  1 2006 Götz Waschk <waschk@mandriva.org> 1.0-1.pre8.8mdv2007.0
- disable polypaudio

* Fri Jul  7 2006 Anssi Hannula <anssi@mandriva.org> 1.0-1.pre8.7mdv2007.0
- fix buildrequires

* Fri Jul  7 2006 Götz Waschk <waschk@mandriva.org> 1.0-1.pre8.6mdv2007.0
- fix buildrequires

* Mon Jul  3 2006 Götz Waschk <waschk@mandriva.org> 1.0-1.pre8.5mdv2007.0
- disable optimization by default

* Sun Jul  2 2006 Götz Waschk <waschk@mandriva.org> 1.0-1.pre8.4mdv2007.0
- update amr

* Sat Jul  1 2006 Götz Waschk <waschk@mandriva.org> 1.0-1.pre8.3mdv2007.0
- rebuild

* Wed Jun 21 2006 Götz Waschk <waschk@mandriva.org> 1.0-1.pre8.2mdv2007.0
- disable dbus on 2006.0
- xdg menu

* Mon Jun 12 2006 Götz Waschk <waschk@mandriva.org> 1.0-1.pre8.1mdv2007.0
- rediff patch 1
- new version

* Wed Jun  7 2006 Götz Waschk <waschk@mandriva.org> 1.0-1.pre8.0.18614.1mdv2007.0
- fix buildrequires
- svn snapshot

* Fri May  5 2006 Götz Waschk <waschk@mandriva.org> 1.0-1.pre7.20060505.1mdk
- add gnome-screensaver suspend support via dbus
- new snapshot

* Sat Apr 15 2006 Götz Waschk <waschk@mandriva.org> 1.0-1.pre7.20060415.1mdk
- new snapshot

* Mon Apr  3 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  1 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

* Sat Oct 29 2005 Götz Waschk <waschk@mandriva.org> 1.0-1.pre7.13mdk
- configuration fixes for x86_64

* Thu Sep  8 2005 Götz Waschk <waschk@mandriva.org> 1.0-1.pre7.12mdk
- patch for pcm overflow

* Wed Sep  7 2005 Gwenole Beauchesne <gbeauchesne@mandriva.com> 1.0-1.pre7.11mdk
- 64-bit fixes
- further gcc4 fixes from current CVS

* Tue Jun 28 2005 Götz Waschk <waschk@mandriva.org> 1.0-1.pre7.10mdk
- update patch 5 for new liblzo

* Wed Jun  1 2005 Götz Waschk <waschk@mandriva.org> 1.0-0.pre7.9mdk
- patch 5 for new lzo

* Sat May 21 2005 Christiaan Welvaart <cjw@daneel.dyndns.org> 1.0-0.pre7.8mdk
- patch12: fix ppc build with gcc 4.0

* Wed May 18 2005 Götz Waschk <waschk@mandriva.org> 1.0-0.pre7.7mdk
- patch 3 from Austin Acton: fix creation of noisy mp2 audio files

* Tue May 10 2005 Götz Waschk <waschk@mandriva.org> 1.0-0.pre7.6mdk
- patches 1 and 2 for gcc 4.0

* Mon Apr 25 2005 Götz Waschk <waschk@mandriva.org> 1.0-0.pre7.5mdk
- rebuild for new libtheora

* Wed Apr 20 2005 Götz Waschk <waschk@mandriva.org> 1.0-0.pre7.4mdk
- add midentify

* Wed Apr 20 2005 Götz Waschk <waschk@mandriva.org> 1.0-0.pre7.3mdk
- add separate conditional build option for amr
- drop patches 12,13,14

* Tue Apr 19 2005 Götz Waschk <waschk@mandriva.org> 1.0-0.pre7.2mdk
- amr support (disabled by default)

* Mon Apr 18 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

* Mon Apr 04 2005 Buchan Milne <bgmilne@linux-mandrake.com> 1.0-0.pre6.8mdk
- Rebuild for libsmbclient

* Tue Jan  4 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  2 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

* Mon Sep 27 2004 Götz Waschk <waschk@linux-mandrake.com> 1.0-0.pre5.7mdk
- patch 1: fix GL scaling

* Wed Sep 22 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

* Mon Sep 20 2004 Christiaan Welvaart <cjw@daneel.dyndns.org> 1.0-0.pre5.5mdk
- patch13: fix compilation of new altivec code in postproc (for ppc)

* Mon Sep  6 2004 Götz Waschk <waschk@linux-mandrake.com> 1.0-0.pre5.4mdk
- enable v4l2 (bug #11231)

* Sun Aug  8 2004 Götz Waschk <waschk@linux-mandrake.com> 1.0-0.pre5.3mdk
- make icon transparent
- fix patch 11

* Mon Jul 26 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

* Thu Jul 15 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

* Tue Jun 15 2004 Christiaan Welvaart <cjw@daneel.dyndns.org> 1.0-0.pre4.8mdk
- ppc build fixes

* Wed Jun  9 2004 Götz Waschk <waschk@linux-mandrake.com> 1.0-0.pre4.7mdk
- add fribidi support

* Tue Jun  8 2004 Götz Waschk <waschk@linux-mandrake.com> 1.0-0.pre4.6mdk
- use parallel build
- rebuild

* Wed Jun  2 2004 Götz Waschk <waschk@linux-mandrake.com> 1.0-0.pre4.5mdk
- fix metacity fullscreen issue

* Tue Jun  1 2004 Götz Waschk <waschk@linux-mandrake.com> 1.0-0.pre4.4mdk
- add divx2svcd script

* Fri Apr 30 2004 Götz Waschk <waschk@linux-mandrake.com> 1.0-0.pre4.3mdk
- use fontconfig instead of supplied font for OSD (Michael Reinsch)

* Thu Apr 29 2004 Götz Waschk <waschk@linux-mandrake.com> 1.0-0.pre4.2mdk
- drop patch 2

* Wed Apr 28 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

* Thu Apr  8 2004 Götz Waschk <waschk@linux-mandrake.com> 1.0-0.pre3.15mdk
- don't rename Blue skin to default
- always enable live

* Fri Apr  2 2004 Götz Waschk <waschk@linux-mandrake.com> 1.0-0.pre3.14mdk
- fix naming of the package

* Fri Apr  2 2004 Götz Waschk <waschk@linux-mandrake.com> 1.0-0.pre3try2.2mdk
- add Copyright file
- fix doc permissions

* Fri Apr  2 2004 Götz Waschk <waschk@linux-mandrake.com> 1.0-0.pre3try2.1mdk
- enable libtheora
- new libdv
- new version

* Sun Feb 15 2004 Götz Waschk <waschk@linux-mandrake.com> 1.0-0.pre3.13mdk
- use libmad by default as mpeg audio decoder

* Sat Feb  7 2004 Götz Waschk <waschk@linux-mandrake.com> 1.0-0.pre3.12mdk
- fix the menu again

* Tue Feb  3 2004 Götz Waschk <waschk@linux-mandrake.com> 1.0-0.pre3.11mdk
- quick fix for bug #6970

* Sat Jan 24 2004 Götz Waschk <waschk@linux-mandrake.com> 1.0-0.pre3.10mdk
- fix menu section
- fix rpmlint warning about empty file
- /me should test his packages, fix skin path

* Fri Jan 23 2004 Götz Waschk <waschk@linux-mandrake.com> 1.0-0.pre3.9mdk
- fix mplayer-gui deps
- add the default skin to the package
- reenable fbdev and mga, as the glibc headers were fixed
- add dvb conditional
- patch for new matroska

* Tue Jan 20 2004 Götz Waschk <waschk@linux-mandrake.com> 1.0-0.pre3.8mdk
- disable mga and fb on 10.0

* Wed Jan  7 2004 Götz Waschk <waschk@linux-mandrake.com> 1.0-0.pre3.7mdk
- remove XFree86 dependancy, add subtitle font from the urw-fonts package
- rebuild
- more build conditionals

* Fri Jan  2 2004 Götz Waschk <waschk@linux-mandrake.com> 1.0-0.pre3.6mdk
- only use -fno-unit-at-a-time in optimized builds
- use the mdkversion macro
- enable all languages
- add mencvcd script to the mencoder package


* Fri Dec 19 2003 Götz Waschk <waschk@linux-mandrake.com> 1.0-0.pre3.5mdk
- fix optimized cooker build

* Thu Dec 18 2003 Götz Waschk <waschk@linux-mandrake.com> 1.0-0.pre3.4mdk
- arrgh, fix plf build

* Thu Dec 18 2003 Götz Waschk <waschk@linux-mandrake.com> 1.0-0.pre3.3mdk
- buildrequires latest matroska
- rearrange --with options

* Tue Dec  9 2003 Götz Waschk <waschk@linux-mandrake.com> 1.0-0.pre3.2mdk
- support xvid 1.0.0 beta2

* Tue Dec  9 2003 Götz Waschk <waschk@linux-mandrake.com> 1.0-0.pre3.1mdk
- fix MDK 9.0 build
- fix plf requires
- fix docs installation
- drop merged patches 1,11
- new version

* Fri Nov 21 2003 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 1.0-0.pre2.4mdk
- rebuild with arts ao plugin that for some reason didn't get compiled in last release.. (closes #6400)

* Mon Nov 17 2003 Götz Waschk <waschk@linux-mandrake.com> 1.0-0.pre2.3mdk
- support Mandrake 10.0 in the spec file
- build against system faad if available
- disable live by default (it's in contribs)
- rebuild for new libsmbclient

* Fri Nov  7 2003 Götz Waschk <waschk@linux-mandrake.com> 1.0-0.pre2.2mdk
- fix vidix file list (thanks to Gwenole Beauchesne)

* Fri Nov  7 2003 Götz Waschk <waschk@linux-mandrake.com> 1.0-0.pre2.1mdk
- drop patch 3
- merge with mplayer1.0 package
- older changelog entries:
  - fix path to the vidix drivers
  - add patch11 from the 0.91 package
  - fix real codecs path
  - fix description
  - try to build optimized version on amd64 too
  - use x86-specific options only on x86
  - remove 8.2 support from the spec file
  - use external libflac, but not on Mandrake 9.0 
  - drop merged patches 1 and 2 
  - patch2: security fix from MPlayer 0.92
  - fix skin path (thanks to Charles A Edwards)
  - move Chinese docs to the right locale (thanks to Abel Cheung)
  - buildrequires fix
  - rediff patch 7
  - conditionalize smb build
  - patch1: dvb includes
  - disable patch 3, 7
  - drop patch 2 (dvb flags, merged)
  - drop matroska patch
  - enable live support
  - first release from the HEAD branch

* Mon Oct 13 2003 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 0.91-8mdk
- some 64-bit fixes, enable vidix only on ppc & x86 for now

* Thu Sep  4 2003 Götz Waschk <waschk@linux-mandrake.com> 0.91-7mdk
- conditionalize smb build

* Tue Sep  2 2003 Götz Waschk <waschk@linux-mandrake.com> 0.91-6mdk
- fix buildrequires

* Fri Aug 29 2003 Götz Waschk <waschk@linux-mandrake.com> 0.91-5mdk
- fix plf description
- add patch 3 to fix bug 4983 (sami subtitles)
- update matroska demuxer

* Mon Aug 25 2003 Götz Waschk <waschk@linux-mandrake.com> 0.91-4mdk
- require the skins package containing Blue
- use Blue as default skin
- update matroska demuxer 
- small dep fix
- rebuild for smb support

* Mon Aug 18 2003 Götz Waschk <waschk@linux-mandrake.com> 0.91-3mdk
- fix plf deps and description
- update matroska demuxer
- fix --with optimization switch

* Wed Aug 13 2003 Götz Waschk <waschk@linux-mandrake.com> 0.91-2mdk
- fix permissions of the docs

* Wed Aug 13 2003 Götz Waschk <waschk@linux-mandrake.com> 0.91-1mdk
- require the latest matroska lib
- update source6 for new matroska version
- drop patch 0
- new version

* Sat Jul 26 2003 Per Øyvind Karlsen <peroyvind@sintrax.net> 0.90-15mdk
- rebuild to avoid segfaults when using arts ao plugin

* Fri Jul 18 2003 Götz Waschk <waschk@linux-mandrake.com> 0.90-14mdk
- fix dir ownership

* Mon Jul 14 2003 Götz Waschk <waschk@linux-mandrake.com> 0.90-13mdk
- require newer dvdread

* Mon Jun 30 2003 Götz Waschk <waschk@linux-mandrake.com> 0.90-12mdk
- arrgh, rebuild with DVB drivers from the regular kernel

* Mon Jun 30 2003 Götz Waschk <waschk@linux-mandrake.com> 0.90-11mdk
- build against the dvb headers from kernel-multimedia
- update mime type list
- update matroska support and enable it by default

* Fri May 23 2003 Götz Waschk <waschk@linux-mandrake.com> 0.90-10mdk
- replace patch2: add a --with-dvbincdir option to configure
- conditionalized use of the mklibname macro 
- build with smb protocol support

* Sun May 18 2003 Götz Waschk <waschk@linux-mandrake.com> 0.90-9mdk
- fix rpmlint warning, alway apply the ppc patch
- patch: fix conflict between dxr3 and dvb build
- only build win32 stuff on ix86
- enable matroska and live in plf build
- fix the --with options by using global instead of define

* Tue May  6 2003 Götz Waschk <waschk@linux-mandrake.com> 0.90-8mdk
- build with dvdread3 

* Mon May  5 2003 Götz Waschk <waschk@linux-mandrake.com> 0.90-7mdk
- add --with live option, also by default disabled
- add --with matroska option, disabled by default
- from CVS: add matroska demuxer (source 6, patch 1)

* Wed Apr 30 2003 Götz Waschk <waschk@linux-mandrake.com> 0.90-6mdk
- mklibname macro
- plf: fix xvid
- always buildrequire kernel-source (for the DVB driver)

* Mon Apr 28 2003 Götz Waschk <waschk@linux-mandrake.com> 0.90-5mdk
- requires and buildrequires cleanup
- fix distriblint warning

* Fri Apr 25 2003 Götz Waschk <waschk@linux-mandrake.com> 0.90-4mdk
- fix from Frederic Crozat:
  - ensure kernel-source is only needed when we build kernel module packages
  - disable mdk optimizations when using "host optimization".

* Fri Apr 25 2003 Götz Waschk <waschk@linux-mandrake.com> 0.90-3mdk
- fix the version (was printing 0.90pre5 instead of 0.90)

* Tue Apr  8 2003 Götz Waschk <waschk@linux-mandrake.com> 0.90-2mdk
- new dvdread

* Mon Apr  7 2003 Götz Waschk <waschk@linux-mandrake.com> 0.90-1mdk
- new version

* Sat Mar 29 2003 Götz Waschk <waschk@linux-mandrake.com> 0.90-0.rc5.2mdk
- from Giuseppe Ghibò <ghibo@mandrakesoft.com>:
 - Removed patches 21, 22 because of segfaults under gmplayer with XFree86 4.3
 - Added build_debug flag.

* Thu Mar 27 2003 Götz Waschk <waschk@linux-mandrake.com> 0.90-0.rc5.1mdk
- new version

* Tue Feb 11 2003 Götz Waschk <waschk@linux-mandrake.com> 0.90-0.rc4.4mdk
- update patches 20 and 22 (Giuseppe Ghibò <ghibo@mandrakesoft.com>)

* Mon Feb 10 2003 Götz Waschk <waschk@linux-mandrake.com> 0.90-0.rc4.2mdk
- buildrequires kernel-source for DVB  
- enable DVB

* Mon Feb 10 2003 Götz Waschk <waschk@linux-mandrake.com> 0.90-0.rc4.1mdk
- new version

* Fri Jan 24 2003 Götz Waschk <waschk@linux-mandrake.com> 0.90-%{rel}plf
- more fixes from Giuseppe Ghibò <ghibo@mandrakesoft.com>
  - Added flag for full static building.
  - removed %%mklibname because rpm get confused with --with macro expansion
  right now...

* Mon Jan 20 2003 Götz Waschk <waschk@linux-mandrake.com> 0.90-0.rc3.1mdk
- use the mklibname macro, but not on Mandrake versions < 9.1
- rediff patch 7
- new version

* Fri Jan 17 2003 Götz Waschk <waschk@linux-mandrake.com> 0.90-0.rc2.4mdk
- disable devfs device support (requested by Giuseppe Ghibò)

* Wed Jan 15 2003 Götz Waschk <waschk@linux-mandrake.com> 0.90-0.rc2.3mdk
- add patch from Giuseppe Ghibò <ghibo@mandrakesoft.com>
  * allow conditional semistatic linking of mplayer (--with semistatic)

* Sat Dec 28 2002 Stew Benedict <sbenedict@mandrakesoft.com> 0.90-0.rc2.2mdk
- rework patch10 for PPC

* Wed Dec 25 2002 Götz Waschk <waschk@linux-mandrake.com> 0.90-0.rc2.1mdk
- enable xmms plugin support
- new version

* Mon Dec  9 2002 Götz Waschk <waschk@linux-mandrake.com> 0.90-0.rc1.3mdk
- fix a few rpmlint warnings
- enable menu support
- don't fix previous changelog (stupid bot)

* Mon Dec  9 2002 Götz Waschk <waschk@linux-mandrake.com> 0.90-0.rc2.2mdk
- add missing input.conf and menu.conf

* Mon Dec  9 2002 Götz Waschk <waschk@linux-mandrake.com> 0.90-0.rc1.1mdk
- plf: require newer win32-codecs 
- build fix for Mandrake 9.0
- new version

* Fri Dec  6 2002 Stew Benedict <sbenedict@mandrakesoft.com> 0.90-0.pre10.4mdk
- allow PPC build
- Olivier Thauvin <thauvin@aerov.jussieu.fr>
	- fix plf/x86 plf/ppc configure

* Mon Nov 18 2002 Götz Waschk <waschk@linux-mandrake.com> 0.90-0.pre10.3mdk
- enable shared postprocessing library

* Tue Nov 12 2002 Götz Waschk <waschk@linux-mandrake.com> 0.90-0.pre10.2mdk
- always enable mga driver, but only package it on mdk 8.2 

* Mon Nov 11 2002 Götz Waschk <waschk@linux-mandrake.com> 0.90-0.pre10.1mdk
- remove fame option
- new version

* Mon Nov  4 2002 Götz Waschk <waschk@linux-mandrake.com> 0.90-0.pre9.3mdk
- enable nas
- always disable libfame

* Sat Oct 26 2002 Götz Waschk <waschk@linux-mandrake.com> 0.90-0.pre9.2mdk
- buildrequires liblzo-devel

* Fri Oct 25 2002 Götz Waschk <waschk@linux-mandrake.com> 0.90-0.pre9.1mdk
- 0.90pre9

* Mon Oct 14 2002 Götz Waschk <waschk@linux-mandrake.com> 0.90-0.pre8.5mdk
- don't let install strip libdha, it's spec-helper's job
- arrrgh, fix subfont symlink

* Fri Oct 11 2002 Götz Waschk <waschk@linux-mandrake.com> 0.90-0.pre8.4mdk
- configure a default font for subtitle display

* Mon Sep 23 2002 Götz Waschk <waschk@linux-mandrake.com> 0.90-0.pre8.3mdk
- accept multiple files and urls in menu
- fix mime type in menu (thx Michael Reinsch <mr@uue.org>)

* Thu Sep 19 2002 Götz Waschk <waschk@linux-mandrake.com> 0.90-0.pre8.2mdk
- enable fbdev as requested by john smith <neuroxmancer@yahoo.com>

* Thu Sep 19 2002 Götz Waschk <waschk@linux-mandrake.com> 0.90-0.pre8.1mdk
- disable parallel build
- add more files to the docs
- drop the patches 0 and 1
- 0.90pre8

* Sun Sep  8 2002 Götz Waschk <waschk@linux-mandrake.com> 0.90-0.pre7.4mdk
- fix menu long title
- don't start gui version in fullscreen mode

* Fri Sep  6 2002 Götz Waschk <waschk@linux-mandrake.com> 0.90-0.pre7.3mdk
- patch 1 to fix loading of GUI config file

* Thu Sep  5 2002 Götz Waschk <waschk@linux-mandrake.com> 0.90-0.pre7.2mdk
- patch configure to build with freetype2 < 2.1.0
- enable freetype2 support

* Thu Sep  5 2002 Götz Waschk <waschk@linux-mandrake.com> 0.90-0.pre7.1mdk
- remove the -mno-omit-leaf-frame-pointer hack (merged) 
- use some macros for rpmlint
- fix libdha installation
- remove the new-input option (obsolete)
- remove patches 2,10 (merged)
- remove patch 0 (not needed anymore)
- new version

* Thu Aug 29 2002 Götz Waschk <waschk@linux-mandrake.com> 0.90-0.pre6.15mdk
- build kernel modules only on Mandrake 8.2
- remove kernel modules, they are now in the kernel package

* Sat Aug 24 2002 Götz Waschk <waschk@linux-mandrake.com> 0.90-0.pre6.14mdk
- new kernel
- remove --enable-dxr3 and svga options, else --rebuild --nodeps might break
- fix Mandrake 8.2 build

* Fri Aug 23 2002 Götz Waschk <waschk@linux-mandrake.com> 0.90-0.pre6.13mdk
- add an option to disable gui, but it's still enabled by default
- kernel driver packages require same version and release of main package 
- add patch 10 from official package (prevent a crash)
- drop patch 1 (unneeded)

* Thu Aug 22 2002 Guillaume Rousse <g.rousse@linux-mandrake.com> 0.90-0.pre6.12mdk
- gui requires same version and release of base package

* Wed Aug 21 2002 Götz Waschk <waschk@linux-mandrake.com> 0.90-0.pre6.11mdk
- fix description of up kernel driver packages
- split mencoder to an extra package

* Tue Aug 20 2002 Götz Waschk <waschk@linux-mandrake.com> 0.90-0.pre6.10mdk
- fix the typo in the last release :-(

* Tue Aug 20 2002 Götz Waschk <waschk@linux-mandrake.com> 0.90-0.pre6.9mdk
- add fix from Jose Antonio Becerra Permuy <ronin@mail2.udc.es>
  - fix contents of the kernel module packages
  - build with svgalib on Mandrake 8.2	 
- buildrequires libsvgalib1-devel on Mandrake 8.2

* Tue Aug 20 2002 Götz Waschk <waschk@linux-mandrake.com> 0.90-0.pre6.8mdk
- disable libfame on mdk build
- add a note about real codecs to the description

* Mon Aug 18 2002 Giuseppe Ghibò <ghibo@mandrakesoft.com> 0.90-0.pre6.7mdk
- enabled mga and xmga video output modules.
- added mga_vid kernel module packages (Patch8).
- make mga_vid conditional and move lower in the video output list (Patch7).
- compile radeon_vid kernel module.
- fixed path for reallib dir.
- Added libggi2, libgii0, libmad0, libdv2, liblirc0 to Requires.
- Forced 64bit file support with --enable-largefiles.
- Added %realpath.
- Added a flag for 8.2 building.
- Add some cosmetic patch (Patch1, Patch2).
- Enabled dxr3.

* Tue Aug 13 2002 Götz Waschk <waschk@linux-mandrake.com> 0.90-0.pre6.6mdk
- add missing buildrequires on libcdda-devel

* Fri Aug  9 2002 Götz Waschk <waschk@linux-mandrake.com> 0.90-0.pre6.5mdk
- make spec compatible with --short-circuit
- patch to give libdha a proper soname
- put libdha in a library package to reduce rpmlint errors
- fix last changelogs 

* Thu Aug  8 2002 Götz Waschk <waschk@linux-mandrake.com> 0.90-0.pre6.4mdk
- add a switch to optimize for the build machine (--with optimization)

* Wed Aug  7 2002 Götz Waschk <waschk@linux-mandrake.com> 0.90-0.pre6.3mdk
- specify %{_libdir}/win32 as windows codec dir

* Wed Aug  7 2002 Götz Waschk <waschk@linux-mandrake.com> 0.90-0.pre6.2mdk
- only build mdk package with libdvdread support
- add -mno-omit-leaf-frame-pointer to CFLAGS to fix win32 codec 

* Tue Aug  6 2002 Götz Waschk <waschk@linux-mandrake.com> 0.90-0.pre6.1mdk
- 0.90pre6
- enable real codecs support (you must copy them to %{_libdir}/real)
- don't compress the png icons
- disable dvdnav (broken)
- remove the buildrequires for ffmpeg, use included libavcodec
- clean up buildrequires

* Wed Jul 31 2002 Götz Waschk <waschk@linux-mandrake.com> 0.90-0.pre5.5mdk
- include vidix output drivers
- plf buildrequires fixes

* Wed Jul 31 2002 Götz Waschk <waschk@linux-mandrake.com> 0.90-0.pre5.4mdk
- libdv2

* Sat Jul 27 2002 Guillaume Rousse <g.rousse@linux-mandrake.com> 0.90-0.pre5.3mdk
- enabled all cpu optimisations, as runtime detection should select relevant ones only
- enabled lirc and tv support
- enabled opengl again
- enabled faad support in plf version

* Fri Jul 19 2002 Guillaume Rousse <g.rousse@linux-mandrake.com> 0.90-0.pre5.2mdk
- first official mdk release
- used system libdvdread instead of mpdvdkit
- removed buildrequires xanim, xvid and win32-codecs

* Sat Jun 08 2002 Guillaume Rousse <guillomovitch@plf.zarb.org> 0.90-0.pre5.1plf
- 0.90pre5

* Tue Jun 04 2002 Guillaume Rousse <guillomovitch@plf.zarb.org> 0.90-0.pre4.4plf
- symlinked mencoder man page to mplayer man page (Götz Waschk <waschk@linux-mandrake.com>)

* Mon May 27 2002 Guillaume Rousse <guillomovitch@plf.zarb.org> 0.90-0.pre4.3plf
- changed xvid-devel to xvid-divx-devel (Götz Waschk <waschk@linux-mandrake.com>)

* Wed May 15 2002 Guillaume Rousse <guillomovitch@plf.zarb.org> 0.90-0.pre4.2plf
- really disabled svgalib support

* Tue May 14 2002 Guillaume Rousse <guillomovitch@plf.zarb.org> 0.90-0.pre4.1plf
- 0.90pre4
- build with gcc 3.1
- removed svgalib driver from popular demand (actually, Yves only :-)
- replaced divx4linux dependency by xvid

* Wed May 08 2002 Guillaume Rousse <guillomovitch@plf.zarb.org> 0.90-0.pre3.1plf
- merged David modifications
- standard release scheme for preversion
- removed hardcoded requires, let spechelper do its job
- unversioned most buildrequires
- no more libdvdread buildrequires, as a modificated version is provided
- libgtk+ buildrequires apply to %{name}-gui
- win32-codecs requires and divx4linux buildrequires apply only to %{i586} and athlon
- configure options cleanup
- removed fibmap_player
- noreplace option also for codecs.conf
- no more exclusivearch
- build with new gcc3.1 and libalsa2

* Fri May 03 2002 David Walluck <david@anti-microsoft.org> 0.90-0.6plf
- 0.90-pre3
- remove conflicts
- really fix location of codecs.conf

* Fri May 03 2002 David Walluck <david@anti-microsoft.org> 0.90-0.5plf
- change location of codecs.conf

* Mon Apr 30 2002 David Walluck <david@anti-microsoft.org> 0.90-0.4plf
- update from CVS
- xpm2png
- fix menu (I think -- why was it broken?)
- fix _with macros
- try to support as many configure options as possible (feel free to
  support more/less of these)
- libdvdnav support
- divx5linux (new divx4linux)
- fix %%makeinstall
- don't enable OpenGL support

* Thu Apr 25 2002 David Walluck <david@anti-microsoft.org> 0.90-0.3plf
- cleanup
- still need to convert xpm2png

* Thu Apr 25 2002 David Walluck <david@anti-microsoft.org> 0.90-0.2plf
- update from CVS
- add mplayer.sh build helper script to Sources
- patch configure to aid detection of libffmpeg
- remove setuid bit on fibmap_mplayer (let the admin set this)
- remove DOCS/SGML

* Wed Apr 24 2002 David Walluck <david@anti-microsoft.org> 0.90-0.1plf
- release

* Wed Jan 30 2002 Guillaume Rousse <guillomovitch@plf.zarb.org> 0.60-2plf 
- new plf extension

* Thu Jan 03 2002 Guillaume Rousse <guillomovitch@plf.zarb.org> 0.60-2mdk 
- comment childish trick in config file

* Thu Jan 03 2002 Guillaume Rousse <guillomovitch@plf.zarb.org> 0.60-1mdk
- 0.60 final

* Wed Jan  2 2002 Götz Waschk <waschk@linux-mandrake.com> 0.60-0.pre2.2mdk
- removed confdir option and fixed datadir
- install mencoder
- enable xanim support

* Mon Dec 31 2001 Guillaume Rousse <guillomovitch@plf.zarb.org> 0.60-0.pre2.1mdk
- 0.60pre2
- bzipped icons
- buildrequires aalib1-devel
- removed all optimisation disabling, as distributed as source only

* Thu Dec 20 2001 Guillaume Rousse <guillomovitch@plf.zarb.org> 0.50-6mdk
- added mimetypes to menu file (Michael Reinsch <mr@uue.org>)
- use icons from MPlayer CVS (Götz Waschk <waschk@linux-mandrake.com>)

* Fri Nov 30 2001 Götz Waschk <waschk@linux-mandrake.com> 0.50-5mdk
- build with libdvdread2
- fix prefix
- add menu
- add icons (Guillaume Rousse <guillomovitch@plf.zarb.org>)
- BuildRequires libogg0-devel (Michael Reinsch <mr@uue.org>)

* Thu Nov 29 2001 Guillaume Rousse <guillomovitch@plf.zarb.org> 0.50-4mdk
- added ffmpeg and opendivx support 
- requires win32-codecs and opendivx
- updated description
- gui in a distinct subpackage
- datadir now %{_datadir}/%{name}
- updated buildrequires

* Wed Nov 28 2001 Guillaume Rousse <guillomovitch@plf.zarb.org> 0.50-3mdk
- rebuild

* Sat Oct 13 2001 Guillaume Rousse <guillomovitch@plf.zarb.org> 0.50-2mdk
- obsoletes MPlayer
- updated URL

* Mon Oct 08 2001 Guillaume Rousse <guillomovitch@plf.zarb.org> 0.50-1mdk
- 0.50

* Fri Oct 05 2001 Guillaume Rousse <guillomovitch@plf.zarb.org> 0.50-0.pre3.1mdk
- 0.50pre3
- added system-wide configuration (David Walluck <david@anti-microsoft.org>)
- changed description accordingly
- changed name to %{name} by popular demand :-)

* Tue Oct  2 2001 Götz Waschk <waschk@linux-mandrake.com> 0.50-0.pre1.2mdk
- shut up, tar
- don't BuildRequires: XFree86-static-libs
- BuildRequires: libpng-devel to allow compilation with new libpng3
- BuildRequires: libgtk+1.2-devel for GUI
- enable GUI
- add example configuration files to documentation

* Tue Oct 02 2001 Guillaume Rousse <guillomovitch@plf.zarb.org> 0.50-0.pre1.1mdk
- 0.50pre1 
- back to gcc-2.96
- BuildRequires XFree86-static-libs libvorbis0-devel

* Mon Aug 20 2001 Guillaume Rousse <guillomovitch@plf.zarb.org> 0.18-0.pre5.2mdk
- disabled all optimizations
- added libggi2-devel and svaligb-devel to BuildRequires
- changed name to MPlayer

* Sat Aug 11 2001 Guillaume Rousse <guillomovitch@plf.zarb.org> 0.18-0.pre5.1mdk
- first mandrake release