From 4d2a4dcd643d12447e03674d29b1f03d8c15e6ed Mon Sep 17 00:00:00 2001 From: Automatic Build System Date: Sat, 6 Jan 2024 07:20:44 +0100 Subject: [PATCH] automatic version update by autodist [release 1.1.1-1mamba;Mon May 06 2013] --- README.md | 1 + mplayer-0.90pre9-runtimemsg.patch | 14 + mplayer-1.0rc1-liblzo.patch | 56 +++ mplayer-1.0rc2-playlist.patch | 12 + mplayer-1.0rc2-vo_ivtv.patch | 38 ++ mplayer-1.0rc2.svn2009_07_12-x264.patch | 24 ++ mplayer.desktop | 98 +++++ mplayer.spec | 486 ++++++++++++++++++++++++ 8 files changed, 729 insertions(+) create mode 100644 mplayer-0.90pre9-runtimemsg.patch create mode 100644 mplayer-1.0rc1-liblzo.patch create mode 100644 mplayer-1.0rc2-playlist.patch create mode 100644 mplayer-1.0rc2-vo_ivtv.patch create mode 100644 mplayer-1.0rc2.svn2009_07_12-x264.patch create mode 100644 mplayer.desktop create mode 100644 mplayer.spec diff --git a/README.md b/README.md index d87f2a8..346da30 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,3 @@ # mplayer +MPlayer is a movie player that plays most video formats as well as DVDs. Its big feature is the wide range of supported output drivers. There are also nice antialiased shaded subtitles and OSD. diff --git a/mplayer-0.90pre9-runtimemsg.patch b/mplayer-0.90pre9-runtimemsg.patch new file mode 100644 index 0000000..d907b1c --- /dev/null +++ b/mplayer-0.90pre9-runtimemsg.patch @@ -0,0 +1,14 @@ +diff -Naupr MPlayer-0.90pre9.orig/mplayer.c MPlayer-0.90pre9/mplayer.c +--- MPlayer-0.90pre9.orig/mplayer.c Thu Oct 24 00:07:11 2002 ++++ MPlayer-0.90pre9/mplayer.c Fri Oct 25 17:32:50 2002 +@@ -539,9 +539,7 @@ int gui_no_filename=0; + gCpuCaps.hasMMX,gCpuCaps.hasMMX2, + gCpuCaps.has3DNow, gCpuCaps.has3DNowExt, + gCpuCaps.hasSSE, gCpuCaps.hasSSE2); +-#ifdef RUNTIME_CPUDETECT +- mp_msg(MSGT_CPLAYER,MSGL_INFO, MSGTR_CompiledWithRuntimeDetection); +-#else ++#ifndef RUNTIME_CPUDETECT + mp_msg(MSGT_CPLAYER,MSGL_INFO, MSGTR_CompiledWithCPUExtensions); + #ifdef HAVE_MMX + mp_msg(MSGT_CPLAYER,MSGL_INFO," MMX"); diff --git a/mplayer-1.0rc1-liblzo.patch b/mplayer-1.0rc1-liblzo.patch new file mode 100644 index 0000000..5c5f1e5 --- /dev/null +++ b/mplayer-1.0rc1-liblzo.patch @@ -0,0 +1,56 @@ +diff -ru MPlayer-1.0rc1/libmpcodecs/native/minilzo.c MPlayer-1.0rc1-fix/libmpcodecs/native/minilzo.c +--- MPlayer-1.0rc1/libmpcodecs/native/minilzo.c 2006-10-23 00:32:24.000000000 +0200 ++++ MPlayer-1.0rc1-fix/libmpcodecs/native/minilzo.c 2007-01-22 10:29:26.000000000 +0100 +@@ -61,7 +61,7 @@ + + #if !defined(__LZO_IN_MINILZO) + # ifndef __LZOCONF_H +-# include ++# include + # endif + #endif + +@@ -1307,7 +1307,7 @@ + #endif + + #if !defined(__LZO_IN_MINILZO) +-#include ++#include + #endif + + #define LZO_EOF_CODE +diff -ru MPlayer-1.0rc1/libmpcodecs/vd_lzo.c MPlayer-1.0rc1-fix/libmpcodecs/vd_lzo.c +--- MPlayer-1.0rc1/libmpcodecs/vd_lzo.c 2006-10-23 00:32:24.000000000 +0200 ++++ MPlayer-1.0rc1-fix/libmpcodecs/vd_lzo.c 2007-01-22 10:30:12.000000000 +0100 +@@ -7,7 +7,7 @@ + #include "vd_internal.h" + + #ifdef USE_LIBLZO +-#include ++#include + #else + #include "native/minilzo.h" + #define lzo_malloc malloc +diff -ru MPlayer-1.0rc1/libmpdemux/demux_mkv.c MPlayer-1.0rc1-fix/libmpdemux/demux_mkv.c +--- MPlayer-1.0rc1/libmpdemux/demux_mkv.c 2006-10-23 00:32:31.000000000 +0200 ++++ MPlayer-1.0rc1-fix/libmpdemux/demux_mkv.c 2007-01-22 10:25:19.000000000 +0100 +@@ -35,7 +35,7 @@ + #endif + + #ifdef USE_LIBLZO +-#include ++#include + #else + #include "libmpcodecs/native/minilzo.h" + #endif +--- MPlayer-1.0rc1/configure.orig 2007-01-22 11:03:32.000000000 +0100 ++++ MPlayer-1.0rc1/configure 2007-01-22 11:04:10.000000000 +0100 +@@ -5569,7 +5569,7 @@ + fi + if test "$_liblzo" = yes ; then + _def_liblzo='#define USE_LIBLZO 1' +- _ld_liblzo='-llzo' ++ _ld_liblzo='-llzo2' + _codecmodules="liblzo $_codecmodules" + else + _def_liblzo='#undef USE_LIBLZO' diff --git a/mplayer-1.0rc2-playlist.patch b/mplayer-1.0rc2-playlist.patch new file mode 100644 index 0000000..d410e66 --- /dev/null +++ b/mplayer-1.0rc2-playlist.patch @@ -0,0 +1,12 @@ +diff -Nru MPlayer-1.0rc2.orig/playtreeparser.c MPlayer-1.0rc2/playtreeparser.c +--- MPlayer-1.0rc2.orig/playtreeparser.c 2009-04-17 02:33:53.000000000 +0200 ++++ MPlayer-1.0rc2/playtreeparser.c 2009-04-17 02:34:38.000000000 +0200 +@@ -228,7 +228,7 @@ + } + + num = atoi(line); +- if(num < 0) { ++ if(num <= 0) { + num = max_entry+1; + mp_msg(MSGT_PLAYTREE,MSGL_WARN,"No entry index in entry %s\nAssuming %d\n",line,num); + } diff --git a/mplayer-1.0rc2-vo_ivtv.patch b/mplayer-1.0rc2-vo_ivtv.patch new file mode 100644 index 0000000..6e8c42c --- /dev/null +++ b/mplayer-1.0rc2-vo_ivtv.patch @@ -0,0 +1,38 @@ +--- mplayer-svn/libvo/vo_ivtv.c 2007-12-03 00:06:22.036407830 +0100 ++++ mplayer-current/libvo/vo_ivtv.c 2008-01-08 23:40:30.744386376 +0100 +@@ -38,6 +38,7 @@ + #include + #include + #include ++#include + + #include "mp_msg.h" + #include "subopt-helper.h" +@@ -76,25 +77,14 @@ + static uint32_t + ivtv_reset (int blank_screen) + { +- struct ivtv_cfg_stop_decode sd; +- struct ivtv_cfg_start_decode sd1; +- int flags = 0; +- +- if (blank_screen) +- flags |= IVTV_STOP_FL_HIDE_FRAME; +- sd.flags = flags; +- +- if (ioctl (ivtv_fd, IVTV_IOC_STOP_DECODE, &sd) < 0) ++ if (ioctl (ivtv_fd, VIDEO_STOP, 0) < 0) + { + mp_msg (MSGT_VO, MSGL_ERR, + "IVTV_IOC_STOP_DECODE: %s\n", strerror (errno)); + return 1; + } + +- sd1.gop_offset = 0; +- sd1.muted_audio_frames = 0; +- +- if (ioctl (ivtv_fd, IVTV_IOC_START_DECODE, &sd1) < 0) ++ if (ioctl (ivtv_fd, VIDEO_PLAY, 0) < 0) + { + mp_msg (MSGT_VO, MSGL_ERR, + "IVTV_IOC_START_DECODE: %s\n", strerror (errno)); diff --git a/mplayer-1.0rc2.svn2009_07_12-x264.patch b/mplayer-1.0rc2.svn2009_07_12-x264.patch new file mode 100644 index 0000000..1b38d44 --- /dev/null +++ b/mplayer-1.0rc2.svn2009_07_12-x264.patch @@ -0,0 +1,24 @@ +diff -Nru mplayer-export-2009-07-12.orig/libavcodec/libx264.c mplayer-export-2009-07-12/libavcodec/libx264.c +--- mplayer-export-2009-07-12.orig/libavcodec/libx264.c 2009-07-01 01:45:01.000000000 +0200 ++++ mplayer-export-2009-07-12/libavcodec/libx264.c 2009-12-07 22:46:18.000000000 +0100 +@@ -187,7 +187,7 @@ + x4->params.b_cabac = avctx->coder_type == FF_CODER_TYPE_AC; + x4->params.i_bframe_adaptive = avctx->b_frame_strategy; + x4->params.i_bframe_bias = avctx->bframebias; +- x4->params.b_bframe_pyramid = avctx->flags2 & CODEC_FLAG2_BPYRAMID; ++ x4->params.i_bframe_pyramid = avctx->flags2 & CODEC_FLAG2_BPYRAMID ? X264_B_PYRAMID_NORMAL : X264_B_PYRAMID_NONE; + avctx->has_b_frames= avctx->flags2 & CODEC_FLAG2_BPYRAMID ? 2 : !!avctx->max_b_frames; + + x4->params.i_keyint_min = avctx->keyint_min; +diff -Nru mplayer-export-2009-07-12.orig/libmpcodecs/ve_x264.c mplayer-export-2009-07-12/libmpcodecs/ve_x264.c +--- mplayer-export-2009-07-12.orig/libmpcodecs/ve_x264.c 2009-05-13 04:58:57.000000000 +0200 ++++ mplayer-export-2009-07-12/libmpcodecs/ve_x264.c 2009-12-07 23:01:05.000000000 +0100 +@@ -207,7 +207,7 @@ + mod->mux->bih->biSize= sizeof(BITMAPINFOHEADER) + extradata_size; + } + +- if (param.i_bframe > 1 && param.b_bframe_pyramid) ++ if (param.i_bframe > 1 && param.i_bframe_pyramid) + mod->mux->decoder_delay = 2; + else + mod->mux->decoder_delay = param.i_bframe ? 1 : 0; diff --git a/mplayer.desktop b/mplayer.desktop new file mode 100644 index 0000000..e92279a --- /dev/null +++ b/mplayer.desktop @@ -0,0 +1,98 @@ +[Desktop Entry] +Encoding=UTF-8 +GenericName=Video Player +GenericName[af]=Video Speler +GenericName[ar]=مشغل ملفات فيديو +GenericName[az]=Video Çalğıcısı +GenericName[be]=Прайгравальнік відэа +GenericName[bg]=Видео плеър +GenericName[bn]=ভিডিও প্রদর্শক +GenericName[br]=Ur soner Video +GenericName[bs]=Video preglednik +GenericName[ca]=Reproductor de vídeo +GenericName[cs]=Přehrávač videa +GenericName[cy]=Chwaraewr Fideo +GenericName[da]=Videoafspiller +GenericName[de]=Ein Abspielprogramm für Videos +GenericName[el]=Αναπαραγωγέας βίντεο +GenericName[eo]=Ludilo por videofilmoj +GenericName[es]=Reproductor de vídeo +GenericName[et]=Videofailide mängimine +GenericName[eu]=Bideo erreproduzigailua +GenericName[fa]=پخش‌کننده‌ی ویدیو +GenericName[fi]=Videosoitin +GenericName[fr]=Lecteur vidéo +GenericName[fy]=Fideospiler +GenericName[ga]=Fístaispeántóir +GenericName[gl]=Reprodutor de Vídeo +GenericName[he]=נגן וידאו +GenericName[hi]=वीडियो प्लेयर +GenericName[hu]=Videólejátszó +GenericName[id]=Player Video +GenericName[is]=Forrit til að spila kvikmyndir +GenericName[it]=Lettore di video +GenericName[ja]=ビデオプレーヤー +GenericName[km]=កម្មវិធី​ចាក់​វីដេអូ +GenericName[ko]=비디오 연주기 +GenericName[lo]=ເຄືອ່ງຫລິ້ນວີດີໂອ +GenericName[lt]=Vaizdo grotuvas +GenericName[lv]=Video Atskaņotājs +GenericName[mk]=Видео пуштач +GenericName[mn]=Видео тоглуулагч +GenericName[ms]=Pemain Video +GenericName[mt]=Plejer tal-Video +GenericName[nb]=Videospiller +GenericName[nds]=Video-Afspeler +GenericName[nl]=Videospeler +GenericName[nn]=Videospelar +GenericName[nso]=Sebapadi sa Video +GenericName[oc]=Reproductor de video +GenericName[pa]=ਵੀਡਿਓ ਪਲੇਅਰ +GenericName[pl]=Odtwarzacz Video +GenericName[pt]=Reprodutor de Vídeo +GenericName[pt_BR]=Reprodutor de vídeos +GenericName[ro]=Program de redare video +GenericName[ru]=Видео плейер +GenericName[rw]=Igikina Videwo +GenericName[se]=Videočuojan +GenericName[sk]=Video prehrávač +GenericName[sl]=Predvajalnik videov +GenericName[sr]=Видео приказивач +GenericName[sr@Latn]=Video prikazivač +GenericName[ss]=Sidlali mafilimu +GenericName[sv]=Filmspelare +GenericName[ta]=ஒளி-ஒலி சாதனம் +GenericName[tg]=Плейери видео +GenericName[th]=โปรแกรมเล่นภาพยนตร์ +GenericName[tr]=Görüntü Yürütücüsü +GenericName[tt]=Video Uynatqıç +GenericName[uk]=Програвач відео-файлів +GenericName[uz]=Видео плейер +GenericName[ven]=Tshitambisa Vidio +GenericName[vi]=Trình xem Video +GenericName[wa]=Djouweu di fitchîs videyo +GenericName[xh]=Umdlali we Video +GenericName[xx]=xxVideo Playerxx +GenericName[zh_CN]=视频播放器 +GenericName[zh_TW]=視像檔播放程式 +GenericName[zu]=Umdlali we-Vidiyo +Exec=gmplayer %U +Icon=mplayer.xpm +Categories=GTK;AudioVideo;Audio;Video;Player;TV; +MimeType=application/ogg;application/x-ogg;application/sdp;application/smil;application/x-smil;application/streamingmedia;application/x-streamingmedia;application/vnd.rn-realmedia;application/vnd.rn-realmedia-vbr;audio/aac;audio/x-aac;audio/m4a;audio/x-m4a;audio/mp1;audio/x-mp1;audio/mp2;audio/x-mp2;audio/mp3;audio/x-mp3;audio/mpeg;audio/x-mpeg;audio/mpegurl;audio/x-mpegurl;audio/mpg;audio/x-mpg;audio/rn-mpeg;audio/scpls;audio/x-scpls;audio/vnd.rn-realaudio;audio/wav;audio/x-pn-windows-pcm;audio/x-realaudio;audio/x-pn-realaudio;audio/x-ms-wma;audio/x-pls;audio/x-wav;video/mpeg;video/x-mpeg;video/x-mpeg2;video/msvideo;video/x-msvideo;video/quicktime;video/vnd.rn-realvideo;video/x-ms-afs;video/x-ms-asf;video/x-ms-wmv;video/x-ms-wmx;video/x-ms-wvxvideo;video/x-avi;video/x-fli;video/x-theora;video/x-matroska; +Name=MPlayer +Name[ar]=م-بلاير +Name[bn]=এম-প্লেয়ার +Name[eo]=M-Ludilo +Name[fa]=پخش‌کننده‌ی M +Name[hi]=एमप्लेयर +Name[nso]=MSebapadi +Name[rw]=M-Igikina +Name[sv]=Mplayer +Name[ta]=Mசாதனம் +Name[ven]=Tshitambisi tsha M +Name[xx]=xxMPlayerxx +ServiceTypes= +Type=Application +X-KDE-Protocols=http + diff --git a/mplayer.spec b/mplayer.spec new file mode 100644 index 0000000..a50b9f9 --- /dev/null +++ b/mplayer.spec @@ -0,0 +1,486 @@ +%define sourcever %(echo %version | cut -d. -f3 | sed 's/svn//' | tr _ -) +%define xmms_plugindir %(xmms-config --input-plugin-dir) +%define skin_blue_ver 1.8 + +%define with_gui 1 +%define with_mencoder 1 +%define with_plf 1 + +Name: mplayer +Epoch: 1 +Version: 1.1.1 +Release: 1mamba +Summary: MPlayer, the Movie Player for Linux +Group: Applications/Multimedia +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://mplayerhq.hu/ +Source0: http://www2.mplayerhq.hu/MPlayer/releases/MPlayer-%{version}.tar.xz +#Source0: http://www2.mplayerhq.hu/MPlayer/releases/mplayer-export-snapshot.tar.bz2 +#Source0: http://www2.mplayerhq.hu/MPlayer/releases/mplayer-export-%{sourcever}.tar.bz2 +Source1: http://www.mplayerhq.hu/MPlayer/skins/Blue-%{skin_blue_ver}.tar.bz2 +Source2: mplayer.desktop +Patch0: %{name}-0.90pre9-runtimemsg.patch +Patch1: %{name}-1.0rc2-playlist.patch +Patch5: %{name}-1.0rc1-liblzo.patch +Patch6: %{name}-1.0rc2-vo_ivtv.patch +Patch7: %{name}-1.0rc2.svn2009_07_12-x264.patch +License: GPL +## AUTOBUILDREQ-BEGIN +BuildRequires: enca-devel +BuildRequires: glibc-devel +BuildRequires: liba52dec-devel +BuildRequires: libaa-devel +BuildRequires: libalsa-devel +BuildRequires: libass-devel +BuildRequires: libatk-devel +BuildRequires: libaudio-devel +BuildRequires: libbluray-devel +BuildRequires: libbzip2-devel +BuildRequires: libcaca-devel +BuildRequires: libcairo-devel +BuildRequires: libcdio-devel +BuildRequires: libdca-devel +BuildRequires: libdirac-devel +BuildRequires: libdirectfb-devel +BuildRequires: libdv-devel +BuildRequires: libesound-devel +BuildRequires: libfaac-devel +BuildRequires: libfaad2-devel +BuildRequires: libfontconfig-devel +BuildRequires: libfreetype-devel +BuildRequires: libfribidi-devel +BuildRequires: libgdk-pixbuf-devel +BuildRequires: libGL-devel +BuildRequires: libglib-devel +BuildRequires: libgsm-devel +BuildRequires: libgtk2-devel +%if "%{stage1}" != "1" +BuildRequires: libjack-devel +%endif +BuildRequires: libjpeg-devel +BuildRequires: liblame-devel +%ifarch %{ix86} +BuildRequires: liblrmi-devel +%endif +BuildRequires: liblzo-devel +BuildRequires: libmad-devel +BuildRequires: libmng-devel +BuildRequires: libncurses-devel +BuildRequires: libogg-devel +BuildRequires: libopenal-devel +BuildRequires: libopencore-amr-devel +BuildRequires: libpango-devel +BuildRequires: libpng-devel +BuildRequires: libpulseaudio-devel +BuildRequires: librtmp-devel +BuildRequires: libschroedinger-devel +BuildRequires: libSDL-devel +BuildRequires: libsmbclient-devel +BuildRequires: libspeex-devel +BuildRequires: libstdc++6-devel +BuildRequires: libtheora-devel +BuildRequires: libtwolame-devel +BuildRequires: libgif-devel +%ifarch %{ix86} +BuildRequires: libvbe-devel +%endif +BuildRequires: libvdpau-devel +BuildRequires: libvpx-devel +BuildRequires: libX11-devel +BuildRequires: libx264-devel +BuildRequires: libXext-devel +BuildRequires: libXinerama-devel +#%if "%{stage1}" != "1" +#BuildRequires: libxmms-devel +#%endif +BuildRequires: libXScrnSaver-devel +BuildRequires: libXt-devel +BuildRequires: libXv-devel +BuildRequires: libxvidcore-devel +BuildRequires: libXxf86dga-devel +BuildRequires: libXxf86vm-devel +BuildRequires: libz-devel +%if "%{stage1}" != "1" +BuildRequires: lirc-devel +%endif +BuildRequires: mpg123-devel +BuildRequires: mplayer-fonts +BuildRequires: perl-devel +## AUTOBUILDREQ-END +%if "%{stage1}" != "1" +BuildRequires: libbio2jack-devel +%endif +#BuildRequires: libdvdread-devel +BuildRequires: libvorbis-devel +BuildRequires: libmatroska-devel +BuildRequires: libao-devel +%if %with_plf +BuildRequires: liblame-devel +BuildRequires: libfaad2-devel +#BuildRequires: libdvdcss-devel +%endif +%ifarch %{ix86} +BuildRequires: divx4linux-devel +BuildRequires: libvbe-devel +%endif +BuildRequires: ladspa-devel +#BuildRequires: libmad-devel +#BuildRequires: libflac-devel +#BuildRequires: libdvdnav-devel +Requires: mplayer-fonts +%if %with_mencoder +Requires: mencoder = %{?epoch:%epoch:}%{version}-%{release} +%endif +Provides: MPlayer = %{?epoch:%epoch:}%{version}-%{release} +Obsoletes: libhda +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +# FIXME +# Checking for DVD support (libmpdvdkit2) ... no +# Checking for libdts support ... no +# Checking for LADSPA plugin support ... no +# Checking for XAnim DLL ... no (no suitable directory found +# Checking for DivX4 compatibility in XviD ... no +# Checking for Capture for Radio interface ... no +# Checking for Video 4 Linux 2 Radio interface ... no +# Checking for Video 4 Linux Radio interface ... no +# Checking for Video 4 Linux 2 MPEG PVR interface ... no +# Checking for vstream client ... no +# Checking for VIDIX (external) ... no + +# FIXME: software patents problems, if any (liblame, libfaad (?)) + +%description +MPlayer is a movie player that plays most video formats as well as DVDs. Its big feature is the wide range of supported output drivers. There are also nice antialiased shaded subtitles and OSD. + +##%package -n libdha +##Summary: Support library for MPlayer's vidix video drivers +##Group: System/Libraries +# +##%description -n libdha +##This package contains the libdha shared library required by the vidix video output drivers of MPlayer. + +%if %with_mencoder +%package -n mencoder +Summary: MPlayer's movie encoder +Group: Applications/Multimedia +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description -n mencoder +MEncoder a movie encoder and is a part of the MPlayer package. +%if ! %with_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 + +%if %with_gui +%package gui +Summary: GUI for MPlayer +Group: Graphical Desktop/Applications/Multimedia +BuildRequires: libgtk-devel >= 2.6.7 +BuildRequires: libglib1-devel >= 1.2.10 +BuildRequires: ImageMagick +Provides: MPlayer-gui +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description gui +MPlayer is a movie player that plays most video formats as well as DVDs. Its big feature is the wide range of supported output drivers. There are also nice antialiased shaded subtitles and OSD. +This package contains a GUI for MPlayer. +%endif + +%prep +%setup -q -n MPlayer-%{version} +#mplayer-export-%{sourcever} +#%patch0 -p1 -b .runtimemsg +#%patch1 -p1 -b .playlist +#%patch5 -p1 -b .liblzo_path +#%patch7 -p1 + +%build +find . -name "CVS" | xargs rm -rf + +%if %with_plf +%define realpath %{_libdir}/RealPlayer9/Codecs +%else +%define realpath %{_libdir}/win32 +%endif + +# not a standard configure script +CC=%{_host}-gcc CPP=%{_host}-cpp \ +./configure \ + --prefix=%{_prefix} \ + --datadir=%{_datadir}/%{name} \ + --confdir=%{_sysconfdir}/%{name} \ + --mandir=%{_mandir} \ +%ifarch %{ix86} x86_64 + --enable-mmx \ + --enable-mmxext \ + --enable-3dnowext \ + --enable-sse \ + --enable-sse2 \ + --enable-fastmemcpy \ +%endif +%ifarch %{ix86} x86_64 ppc + --enable-runtime-cpudetection \ +%endif + --enable-dynamic-plugins \ + --enable-freetype \ +%if %with_gui + --enable-gui \ +%endif + --enable-libdca \ + --language=all \ + --enable-joystick \ +%if %with_mencoder + --enable-mencoder \ +%else + --disable-mencoder \ +%endif + --enable-theora \ + --enable-menu \ + --enable-radio \ + --enable-radio-capture \ +%if "%{stage1}" != "1" + --enable-xmms \ + --enable-jack \ +%endif + --enable-smb \ + --disable-arts \ + --enable-fribidi \ + --enable-liblzo \ + --enable-libvorbis \ + --enable-xshape \ + --codecsdir=%{_libdir}/win32 \ +%if ! %with_plf + --disable-internal-faad \ + --disable-mpdvdkit \ +%endif + --enable-x11 \ + --extra-ldflags="\ +%if "%{stage1}" != "1" +-ljack \ +%endif + -lfribidi -ldca -lX11 -lXext" + +# --realcodecsdir=%{realpath} \ +# --disable-libavformat_a \ +# --disable-libavutil_a \ +# --with-extralibdir="%{_libdir}/samba" \ +# -ljack: workaround to link against jack library +make +#make -C vidix + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +# install the default Skin +install -d %{buildroot}%{_datadir}/mplayer/Skin/ +tar -xjf %{S:1} -C %{buildroot}%{_datadir}/mplayer/Skin/ +ln -s Blue %{buildroot}%{_datadir}/%{name}/Skin/default + +install -m 644 etc/example.conf %{buildroot}%{_sysconfdir}/%{name}/mplayer.conf +install -m 644 etc/codecs.conf %{buildroot}%{_sysconfdir}/%{name} +install -m 644 etc/input.conf %{buildroot}%{_sysconfdir}/%{name} +install -m 644 etc/menu.conf %{buildroot}%{_sysconfdir}/%{name} + +%if %with_mencoder +install -m 755 TOOLS/{divx2svcd.sh,mencvcd.sh,midentify.sh,wma2ogg.pl} \ + %{buildroot}%{_bindir} +%endif + +%if %with_gui +#install -d %{buildroot}%{_datadir}/pixmaps +## install icons +#install -D -m644 gui/mplayer/pixmaps/mplayer-desktop.xpm \ +# %{buildroot}%{_datadir}/mplayer/mplayer-desktop.xpm +#install -D -m644 etc/mplayer.xpm \ +# %{buildroot}%{_datadir}/pixmaps/mplayer.xpm + +## FIXME : use a better location for icons +#install -d %{buildroot}%{_datadir}/icons/{16x16,32x32,48x48} +#( cd %{buildroot}%{_datadir}/mplayer/Skin/Blue/icons/ +# convert -transparent white icon48x48.png \ +# %{buildroot}%{_datadir}/icons/48x48/gmplayer.png +# convert -transparent white icon32x32.png \ +# %{buildroot}%{_datadir}/icons/32x32/gmplayer.png +# convert -transparent white -scale 16x16 icon48x48.png \ +# %{buildroot}%{_datadir}/icons/16x16/gmplayer.png ) + +#rm -f %{buildroot}%{_datadir}/applications/mplayer.desktop +# +## add system menu entry for KDE +#install -D -m644 %{S:2} \ +# %{buildroot}%{_datadir}/applications/%{name}.desktop +%endif + +%if %with_gui +%pre gui +if [ -d %{_datadir}/%{name}/Skin/default ]; then + rm -rf %{_datadir}/%{name}/Skin/default +fi +exit 0 +%endif + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-, root, root) +%{_bindir}/midentify.sh +%{_bindir}/mplayer +%dir %{_datadir}/mplayer +#%dir %{_libdir}/mplayer +#%dir %{_libdir}/mplayer/vidix +#%{_libdir}/mplayer/vidix/*so +%dir %{_sysconfdir}/mplayer +%config(noreplace) %{_sysconfdir}/mplayer/codecs.conf +%config(noreplace) %{_sysconfdir}/mplayer/input.conf +%config(noreplace) %{_sysconfdir}/mplayer/menu.conf +%config(noreplace) %{_sysconfdir}/mplayer/mplayer.conf +%{_mandir}/man1/mplayer.1* +%lang(cs) %{_mandir}/cs/man1/mplayer.1* +%lang(de) %{_mandir}/de/man1/mplayer.1* +%lang(es) %{_mandir}/es/man1/mplayer.1* +%lang(fr) %{_mandir}/fr/man1/mplayer.1* +%lang(hu) %{_mandir}/hu/man1/mplayer.1* +%lang(it) %{_mandir}/it/man1/mplayer.1* +%lang(pl) %{_mandir}/pl/man1/mplayer.1* +%lang(sv) %{_mandir}/ru/man1/mplayer.1* +%lang(zh_CN) %{_mandir}/zh_CN/man1/mplayer.1* +%doc README DOCS/default.css DOCS/tech/ + +%if %with_mencoder +%files -n mencoder +%defattr(-,root,root) +%{_bindir}/divx2svcd.sh +%{_bindir}/mencoder +%{_bindir}/mencvcd.sh +%{_bindir}/wma2ogg.pl +%{_mandir}/man1/mencoder.* +%lang(cs) %{_mandir}/cs/man1/mencoder.1* +%lang(de) %{_mandir}/de/man1/mencoder.1* +%lang(es) %{_mandir}/es/man1/mencoder.1* +%lang(fr) %{_mandir}/fr/man1/mencoder.1* +%lang(hu) %{_mandir}/hu/man1/mencoder.1* +%lang(it) %{_mandir}/it/man1/mencoder.1* +%lang(pl) %{_mandir}/pl/man1/mencoder.1* +%lang(ru) %{_mandir}/ru/man1/mencoder.1* +%lang(zh_CN) %{_mandir}/zh_CN/man1/mencoder.1* +%endif + +%if %with_gui +%files gui +%defattr(-,root,root) +%{_bindir}/gmplayer +%{_datadir}/applications/%{name}.desktop +%{_datadir}/icons/hicolor/*/apps/mplayer.png +%{_datadir}/mplayer/Skin/default +%{_datadir}/mplayer/Skin/Blue/* +%endif + +%changelog +* Mon May 06 2013 Automatic Build System 1.1.1-1mamba +- automatic version update by autodist + +* Sun Jun 10 2012 Automatic Build System 1.1-1mamba +- update to 1.1 + +* Fri Feb 18 2011 Automatic Build System 1.0rc4-1mamba +- automatic update by autodist + +* Thu Jul 22 2010 Automatic Build System 1.0rc3-3mamba +- automatic rebuild by autodist + +* Thu Jul 22 2010 Silvan Calarco 1.0rc3-2mamba +- rebuilt with internal libavformat and libavutil due to incompatibility with ffmpeg 0.6 + +* Mon May 31 2010 Automatic Build System 1.0rc3-1mamba +- update to 1.0rc3 + +* Mon Mar 08 2010 Automatic Build System 1.0rc2.svn2009_07_12-7mamba +- automatic rebuild by autodist + +* Tue Dec 08 2009 Automatic Build System 1.0rc2.svn2009_07_12-6mamba +- automatic rebuild by autodist + +* Mon Dec 07 2009 Automatic Build System 1.0rc2.svn2009_07_12-5mamba +- automatic rebuild by autodist + +* Fri Oct 16 2009 Automatic Build System 1.0rc2.svn2009_07_12-4mamba +- automatic rebuild by autodist + +* Wed Aug 19 2009 Automatic Build System 1.0rc2.svn2009_07_12-3mamba +- automatic rebuild by autodist + +* Wed Aug 12 2009 Automatic Build System 1.0rc2.svn2009_07_12-2mamba +- automatic rebuild by autodist + +* Sat Jul 11 2009 Automatic Build System 1.0rc2.svn2009_09_12-1mamba +- update to 1.0rc2.svn2009_07_12 + +* Mon Jun 29 2009 Automatic Build System 1.0.svn2009_06_29-1mamba +- update to 1.0.svn20090629 + +* Mon Jun 29 2009 Automatic Build System 1.0rc2-4mamba +- automatic rebuild by autodist + +* Sat Apr 18 2009 Silvan Calarco 1.0rc2-3mamba +- automatic rebuild by autodist + +* Fri Jan 02 2009 Silvan Calarco 1.0rc2-2mamba +- automatic rebuild by autodist + +* Wed Oct 29 2008 Silvan Calarco 1.0rc2-1mamba +- update to 1.0rc2 + +* Sun Jun 01 2008 Silvan Calarco 1.0-10mamba +- rebuild against updated libmpcdec + +* Mon May 26 2008 Silvan Calarco 1.0-9mamba +- rebuilt against mplayer's release of libdvdnav (4.1.2) +- enabled libdca + +* Mon May 26 2008 Silvan Calarco 1.0-8mamba +- update to 1.0rc2 +- updated maintainer +- libdha: disable and obsolete + +* Mon Jan 22 2007 Davide Madrisan 1.0-7qilnx +- update to version 1.0rc1 by autospec +- MPlayer Skin Blue updated to version 1.7 +- dropped security patches against CAN-2005-2718, CVE-2005-4048, + CVE-2006-0579, and CVE-2006-1502 (merged upstream) +- added some missing build requirements +- libpostproc and libpostproc-devel packages now belong to ffmpeg + +* Mon Sep 04 2006 Davide Madrisan 1.0-6qilnx +- security fix: CVE-2006-0579, CVE-2006-1502 (bugzilla#132) + +* Mon Feb 13 2006 Davide Madrisan 1.0-5qilnx +- rebuilt + +* Tue Dec 20 2005 Davide Madrisan 1.0-4qilnx +- fixed CAN-2005-4048 (qibug#100) +- gcc4 fixes from current CVS +- new desktop file compatible with kappfinder + +* Fri Sep 02 2005 Davide Madrisan 1.0-3qilnx +- security fix QSA-2005-101 (CAN-2005-2718) + +* Thu Apr 28 2005 Davide Madrisan 1.0-2qilnx +- specfile modified to match QiLinux standards +- added mplayer configuration files +- package moved to QiLinux-devel +- added libpostproc-devel, libdha, mencoder, and gui packages + +* Sun Sep 19 2004 Matteo Bernasconi 1.0-1qilnx +- first build