Search
j0ke.net Open Build Service
>
Projects
>
multimedia
>
MPlayer
> MPlayer.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File MPlayer.spec of Package MPlayer (Revision 17)
Currently displaying revision
17
,
show latest
# norootforbuild %define suseversion %(echo "SUSE Linux Enterprise `echo -e "scale=1\\n%{sles_version}" | bc` (%_build_cpu)" || Unknown) Name: MPlayer License: GPL Group: Productivity/Multimedia/Video/Players Version: 1.0rc2 Release: 1.pm.1 Summary: Multimedia Player Summary(de): Multimedia-Abspielprogramm Source0: http://www1.mplayerhq.hu/MPlayer/releases/MPlayer-1.0rc2.tar.bz2 Source1: http://www1.mplayerhq.hu/MPlayer/Skin/Blue-1.7.tar.bz2 Patch1: MPlayer-1.0rc1-desktopfile.patch Patch2: MPlayer-0.90pre9-tempfile-unrarlib.diff Patch3: MPlayer-decl.patch Patch4: MPlayer-1.0pre7-gcc4-altivec.patch Patch6: asm-fixes.diff Patch7: MPlayer-1.0rc1-warn.patch Patch8: MPlayer-comparison.patch Patch18: MPlayer-pci_linux_gnu_source.patch Patch20: demux_audio_fix_20080129.diff Patch21: demux_mov_fix_20080129.diff Patch22: stream_cddb_fix_20080120.diff Patch23: url_fix_20080120.diff URL: http://www.mplayerhq.hu BuildRoot: %{_tmppath}/%{name}-%{version}-build Prefix: %{_prefix} %ifarch %ix86 || x86_64 BuildRequires: w32codec-all live %endif BuildRequires: lame libtheora-devel libsmbclient-devel SDL-devel ladspa aalib-devel esound-devel gtk2-devel BuildRequires: glib2-devel dvb lzo-devel libdca libpng-devel libogg-devel libvorbis-devel libdv BuildRequires: DirectFB arts-devel lirc bc cdparanoia xvid-devel lzo lzo-devel fribidi-devel speex-devel BuildRequires: faac libmpeg2-devel twolame-devel gettext-devel BuildRequires: libx264-devel >= 0.0svn20061031 BuildRequires: libjack0 libjack-devel # suse since 9.2 include giflib and libjpeg is splitted %if %suse_version >= 920 BuildRequires: giflib giflib-devel libjpeg-devel %else BuildRequires: libungif libjpeg pkgconfig %endif # 10.1 stuff: # 10.1 builds libsmbclient against kerberos. # we need devs because the v4l configure checks look for v4l devices. # libdv got split # caca got added %if %suse_version > 1000 BuildRequires: krb5-devel openldap2-devel libgssapi devs libdv-devel libcaca-devel %endif # 10.2 stuff # DirectFB has a split devel package %if %suse_version > 1010 BuildRequires: DirectFB-devel %endif %description MPlayer plays most MPEG/VOB, AVI, Ogg/OGM, VIVO, ASF/WMA/WMV, QT/MOV/MP4, RealMedia, Matroska, NUT, NuppelVideo, FLI, YUV4MPEG, FILM, RoQ, PVA files, supported by many native, XAnim, and Win32 DLL codecs. You can watch VideoCD, SVCD, DVD, 3ivx, DivX 3/4/5 and even WMV movies.. %description -l de MPlayer spielt die meisten MPEG/VOB, AVI, Ogg/OGM, VIVO, ASF/WMA/WMV, QT/MOV/MP4, RealMedia, Matroska, NUT, NuppelVideo, FLI, YUV4MPEG, FILM, RoQ, PVA-Dateien, unterstuetzt von vielen nativen, XAnim, und Win32 DLL-Codecs ab. Mit MPlayer koennen sie VideoCD, SVCD, DVD, 3ivx, DivX 3/4/5 und sogar WMV-Filme anschauen. %prep %setup -q %patch1 %patch2 -p1 %patch3 %patch4 #%patch6 %patch7 %patch8 -p1 %patch18 %patch20 %patch21 %patch22 %patch23 %build tar xjf %{SOURCE1} awk '{gsub ("%{version}-","%{version}-%{suseversion}-"); print $0}' version.sh > version.sh~ cp version.sh~ version.sh sed "s%%-O4%%$RPM_OPT_FLAGS -O4%%g" configure >configure~ cat configure~ > configure ./configure --prefix=%{_prefix} \ --confdir=%{_sysconfdir}/mplayer \ --datadir=%{_datadir}/mplayer \ --libdir=%{_libdir} \ --mandir=%{_mandir} \ %ifarch %ix86 --enable-runtime-cpudetection \ %endif --enable-bl --enable-fbdev --enable-zr \ --enable-gui --enable-menu --language=all \ --enable-xvmc --with-xvmclib=XvMCW \ --enable-largefiles --enable-smb --enable-joystick \ --enable-radio --enable-radio-capture \ %if %suse_version <= 1010 --disable-ssse3 \ %endif --realcodecsdir=%_libdir/RealPlayer10/codecs %{__make} %{?jobs:-j%{jobs}} %install make MANDIR=$RPM_BUILD_ROOT%{_mandir} DESTDIR=$RPM_BUILD_ROOT install # skin install -m 755 -d $RPM_BUILD_ROOT%{_datadir}/mplayer/skins/default cp -r Blue/* $RPM_BUILD_ROOT%{_datadir}/mplayer/skins/default/ # configs install -m 644 etc/example.conf $RPM_BUILD_ROOT%{_sysconfdir}/mplayer/mplayer.conf install -m 644 etc/input.conf $RPM_BUILD_ROOT%{_sysconfdir}/mplayer/ install -m 644 etc/menu.conf $RPM_BUILD_ROOT%{_sysconfdir}/mplayer/ # mencvcd install -m 755 TOOLS/mencvcd $RPM_BUILD_ROOT%{_bindir} %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-, root, root) %doc DOCS TOOLS README AUTHORS Changelog %dir %{_sysconfdir}/mplayer %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/mplayer/mplayer.conf %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/mplayer/input.conf %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/mplayer/menu.conf %_mandir/man1/mplayer.1.gz %_mandir/man1/mencoder.1.gz %_mandir/cs/man1/mplayer.1.gz %_mandir/cs/man1/mencoder.1.gz %_mandir/de/man1/mplayer.1.gz %_mandir/de/man1/mencoder.1.gz %_mandir/es/man1/mplayer.1.gz %_mandir/es/man1/mencoder.1.gz %_mandir/fr/man1/mplayer.1.gz %_mandir/fr/man1/mencoder.1.gz %_mandir/hu/man1/mplayer.1.gz %_mandir/hu/man1/mencoder.1.gz %_mandir/it/man1/mplayer.1.gz %_mandir/it/man1/mencoder.1.gz %_mandir/pl/man1/mplayer.1.gz %_mandir/pl/man1/mencoder.1.gz %_mandir/ru/man1/mplayer.1.gz %_mandir/ru/man1/mencoder.1.gz %{_bindir}/* %dir %{_datadir}/mplayer %dir %{_datadir}/mplayer/skins %{_datadir}/mplayer/skins/default %{_datadir}/applications/* %{_datadir}/pixmaps/* %changelog * Tue Feb 05 2008 Carsten Schoene <cs@linux-administrator.com> - add patches for security fixes: - CORE-2008-1218 (demux_audio.c) - CORE-2008-0122 (demux_mov.c) - (url.c) - (stream_cddb.c) * Sun Sep 30 2007 Carsten Schoene <cs@linux-administrator.com> - import for SLE_10 build