]> git.pld-linux.org Git - packages/mplayer.git/commitdiff
- up to 20140429 snap; mplayer people recommend using svn version (see their download...
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Tue, 29 Apr 2014 16:06:40 +0000 (18:06 +0200)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Tue, 29 Apr 2014 16:06:40 +0000 (18:06 +0200)
mplayer-build.patch [deleted file]
mplayer-ffmpeg.patch [deleted file]
mplayer-growing-files.patch [deleted file]
mplayer-gsm.patch
mplayer-ldflags.patch
mplayer-link.patch
mplayer-visibility-hidden-fix.patch
mplayer-vstream.patch
mplayer.spec

diff --git a/mplayer-build.patch b/mplayer-build.patch
deleted file mode 100644 (file)
index c31de18..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
---- mplayer-r33917/help/help_mp-en.h~  2011-07-25 11:28:45.000000000 +0200
-+++ mplayer-r33917/help/help_mp-en.h   2011-07-25 11:38:03.007928282 +0200
-@@ -1973,6 +1973,7 @@
- #define MSGTR_RADIO_AudioInInitFailed "[radio] audio_in_init failed.\n"
- #define MSGTR_RADIO_AudioInSetupFailed "[radio] audio_in_setup call failed: %s\n"
- #define MSGTR_RADIO_ClearBufferFailed "[radio] Clearing buffer failed: %s\n"
-+#define MSGTR_RADIO_SelectedChannel "[radio] Selected channel: %d - %s (freq: %.2f)\n"
- #define MSGTR_RADIO_StreamEnableCacheFailed "[radio] Call to stream_enable_cache failed: %s\n"
- #define MSGTR_RADIO_DriverUnknownStr "[radio] Unknown driver name: %s\n"
- #define MSGTR_RADIO_DriverV4L2 "[radio] Using V4Lv2 radio interface.\n"
---- m/gui/interface.c~ 2012-05-21 20:46:25.000000000 +0200
-+++ m/gui/interface.c  2012-11-04 16:30:43.831294291 +0100
-@@ -1168,7 +1168,7 @@
-     vsnprintf(msg, sizeof(msg), format, va);
-     va_end(va);
--    mp_msg(mod, lev, msg);
-+    mp_msg(mod, lev, "%s", msg);
-     if (mp_msg_test(mod, lev))
-         gtkMessageBox(GTK_MB_FATAL, msg);
---- m/stream/stream_radio.c~   2011-07-25 01:55:34.000000000 +0200
-+++ m/stream/stream_radio.c    2012-11-04 16:31:53.339743343 +0100
-@@ -1138,7 +1138,7 @@
-     mp_msg(MSGT_RADIO,MSGL_V,"\n");
-     if(priv->driver)
--        mp_msg(MSGT_RADIO, MSGL_INFO, priv->driver->info);
-+        mp_msg(MSGT_RADIO, MSGL_INFO, "%s", priv->driver->info);
-     else{
-         mp_msg(MSGT_RADIO, MSGL_INFO, MSGTR_RADIO_DriverUnknownStr,priv->radio_param->driver);
-         close_s(stream);
diff --git a/mplayer-ffmpeg.patch b/mplayer-ffmpeg.patch
deleted file mode 100644 (file)
index 0d9a9de..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
---- MPlayer-1.1/configure      2013-05-06 16:44:41.394467719 +0300
-+++ MPlayer-1.1.1/configure    2013-05-06 22:22:22.804625607 +0300
-@@ -626,6 +626,11 @@
- # GOTCHA: the variables below defines the default behavior for autodetection
- # and have - unless stated otherwise - at least 2 states : yes no
- # If autodetection is available then the third state is: auto
-+
-+# XXX this is in wrong place anyway
-+ffmpeg_config=false
-+test -x /usr/bin/ffmpeg-avconfig && ffmpeg_config=/usr/bin/ffmpeg-avconfig
-+
- _mmx=auto
- _3dnow=auto
- _3dnowext=auto
-@@ -666,22 +671,22 @@
- _libopencore_amrnb=auto
- _libopencore_amrwb=auto
- libopenjpeg=auto
--libavdecoders_all=$(sed -n 's/^[^#]*DEC.*(.*, *\(.*\)).*/\1_decoder/p' ffmpeg/libavcodec/allcodecs.c | tr '[a-z]' '[A-Z]')
-+libavdecoders_all=$($ffmpeg_config --decoders || sed -n 's/^[^#]*DEC.*(.*, *\(.*\)).*/\1_decoder/p' ffmpeg/libavcodec/allcodecs.c | tr '[a-z]' '[A-Z]')
- libavdecoders=$(echo $libavdecoders_all | sed -e 's/ LIB[A-Z0-9_]*_DECODER//g')
--libavencoders_all=$(sed -n 's/^[^#]*ENC.*(.*, *\(.*\)).*/\1_encoder/p' ffmpeg/libavcodec/allcodecs.c | tr '[a-z]' '[A-Z]')
-+libavencoders_all=$($ffmpeg_config --encoders || sed -n 's/^[^#]*ENC.*(.*, *\(.*\)).*/\1_encoder/p' ffmpeg/libavcodec/allcodecs.c | tr '[a-z]' '[A-Z]')
- libavencoders=$(echo $libavencoders_all | sed -e 's/ LIB[A-Z0-9_]*_ENCODER//g')
--libavparsers_all=$(sed -n 's/^[^#]*PARSER.*(.*, *\(.*\)).*/\1_parser/p' ffmpeg/libavcodec/allcodecs.c | tr '[a-z]' '[A-Z]')
-+libavparsers_all=$($ffmpeg_config --parsers || sed -n 's/^[^#]*PARSER.*(.*, *\(.*\)).*/\1_parser/p' ffmpeg/libavcodec/allcodecs.c | tr '[a-z]' '[A-Z]')
- libavparsers=$libavparsers_all
--libavbsfs_all=$(sed -n 's/^[^#]*BSF.*(.*, *\(.*\)).*/\1_bsf/p' ffmpeg/libavcodec/allcodecs.c | tr '[a-z]' '[A-Z]')
-+libavbsfs_all=$($ffmpeg_config --bsfs || sed -n 's/^[^#]*BSF.*(.*, *\(.*\)).*/\1_bsf/p' ffmpeg/libavcodec/allcodecs.c | tr '[a-z]' '[A-Z]')
- libavbsfs=$libavbsfs_all
- libavhwaccels_all=$(sed -n 's/^[^#]*HWACCEL.*(.*, *\(.*\)).*/\1_hwaccel/p' ffmpeg/libavcodec/allcodecs.c | tr '[a-z]' '[A-Z]')
- # Disable all hardware accelerators for now.
- libavhwaccels=
--libavdemuxers_all=$(sed -n 's/^[^#]*DEMUX.*(.*, *\(.*\)).*/\1_demuxer/p' ffmpeg/libavformat/allformats.c | tr '[a-z]' '[A-Z]')
-+libavdemuxers_all=$($ffmpeg_config --demuxers || sed -n 's/^[^#]*DEMUX.*(.*, *\(.*\)).*/\1_demuxer/p' ffmpeg/libavformat/allformats.c | tr '[a-z]' '[A-Z]')
- libavdemuxers=$(echo $libavdemuxers_all | sed -e 's/ LIB[A-Z0-9_]*_DEMUXER//g' -e s/REDIR_DEMUXER// -e s/AVISYNTH_DEMUXER//)
--libavmuxers_all=$(sed -n 's/^[^#]*_MUX.*(.*, *\(.*\)).*/\1_muxer/p' ffmpeg/libavformat/allformats.c | tr '[a-z]' '[A-Z]')
-+libavmuxers_all=$($ffmpeg_config --muxers || sed -n 's/^[^#]*_MUX.*(.*, *\(.*\)).*/\1_muxer/p' ffmpeg/libavformat/allformats.c | tr '[a-z]' '[A-Z]')
- libavmuxers=$(echo $libavmuxers_all | sed -e 's/ LIB[A-Z0-9_]*_MUXER//g' -e s/RTP_MUXER// -e s/RTSP_MUXER// -e s/SAP_MUXER//)
--libavprotocols_all=$(sed -n 's/^[^#]*PROTOCOL.*(.*, *\(.*\)).*/\1_protocol/p' ffmpeg/libavformat/allformats.c | tr '[a-z]' '[A-Z]')
-+libavprotocols_all=$($ffmpeg_config --protocols || sed -n 's/^[^#]*PROTOCOL.*(.*, *\(.*\)).*/\1_protocol/p' ffmpeg/libavformat/allformats.c | tr '[a-z]' '[A-Z]')
- libavprotocols=$libavprotocols_all
- libavprotocols=$(echo $libavprotocols | sed -e s/HTTPS_PROTOCOL// -e s/TLS_PROTOCOL// -e s/BLURAY_PROTOCOL//)
- libavfilters_all=$(sed -n 's/^[^#]*FILTER.*(.*, *\(.*\),.*).*/\1_filter/p' ffmpeg/libavfilter/allfilters.c | tr '[a-z]' '[A-Z]')
---- MPlayer-1.1/Makefile~      2013-05-06 16:37:01.000000000 +0300
-+++ MPlayer-1.1/Makefile       2013-05-06 16:45:59.221182150 +0300
-@@ -689,7 +689,7 @@
-                 $(SRCS_MENCODER-yes)
- # (linking) order matters for these libraries
--FFMPEGPARTS_ALL = libpostproc libavfilter libavformat libavcodec libswscale libswresample libavutil
-+FFMPEGPARTS_ALL = 
- FFMPEGPARTS = $(foreach part, $(FFMPEGPARTS_ALL), $(if $(wildcard ffmpeg/$(part)), $(part)))
- FFMPEGLIBS  = $(foreach part, $(FFMPEGPARTS), ffmpeg/$(part)/$(part).a)
- FFMPEGFILES = $(foreach part, $(FFMPEGPARTS), $(wildcard $(addprefix ffmpeg/$(part)/,*.[chS] /*/*.[chS] /*/*.asm)))
diff --git a/mplayer-growing-files.patch b/mplayer-growing-files.patch
deleted file mode 100644 (file)
index 3f0f236..0000000
+++ /dev/null
@@ -1,69 +0,0 @@
-Patch taken from:
-http://code.google.com/p/gecko-mediaplayer/issues/detail?id=170
-http://patches.libav.org/patch/18621/
-
---- mplayer/libmpdemux/demux_lavf.c.bak        2013-07-05 03:03:36.684099781 +0200
-+++ mplayer/libmpdemux/demux_lavf.c    2013-07-05 03:04:40.447433846 +0200
-@@ -105,8 +105,13 @@
-         pos += stream->end_pos;
-     else if(whence == SEEK_SET)
-         pos += stream->start_pos;
--    else if(whence == AVSEEK_SIZE && stream->end_pos > 0)
-+    else if(whence == AVSEEK_SIZE && stream->end_pos > 0) {
-+              off_t size;
-+              stream_control(demuxer->stream, STREAM_CTRL_GET_SIZE, &size);
-+                      if (size > stream->end_pos)
-+                              stream->end_pos = size;
-         return stream->end_pos - stream->start_pos;
-+      }
-     else
-         return -1;
---- mplayer/stream/cache2.c.bak        2013-07-05 03:00:03.010763995 +0200
-+++ mplayer/stream/cache2.c    2013-07-05 03:03:18.380766237 +0200
-@@ -91,7 +91,7 @@
-   // callback
-   stream_t* stream;
-   volatile int control;
--  volatile unsigned control_uint_arg;
-+  volatile uint64_t control_uint_arg;
-   volatile double control_double_arg;
-   volatile struct stream_lang_req control_lang_arg;
-   volatile int control_res;
-@@ -264,6 +264,7 @@
- static int cache_execute_control(cache_vars_t *s) {
-   double double_res;
-   unsigned uint_res;
-+  unsigned uint64_res;
-   int needs_flush = 0;
-   static unsigned last;
-   int quit = s->control == -2;
-@@ -316,6 +317,10 @@
-       s->control_res = s->stream->control(s->stream, s->control, &uint_res);
-       s->control_uint_arg = uint_res;
-       break;
-+      case STREAM_CTRL_GET_SIZE:
-+        s->control_res = s->stream->control(s->stream, s->control, &uint64_res);
-+        s->control_uint_arg = uint64_res;
-+        break;
-     case STREAM_CTRL_GET_LANG:
-       s->control_res = s->stream->control(s->stream, s->control, (void *)&s->control_lang_arg);
-       break;
-@@ -640,6 +645,7 @@
-     case STREAM_CTRL_GET_ASPECT_RATIO:
-     case STREAM_CTRL_GET_NUM_ANGLES:
-     case STREAM_CTRL_GET_ANGLE:
-+      case STREAM_CTRL_GET_SIZE:
-     case -2:
-       s->control = cmd;
-       break;
-@@ -680,6 +686,9 @@
-     case STREAM_CTRL_GET_ANGLE:
-       *(unsigned *)arg = s->control_uint_arg;
-       break;
-+      case STREAM_CTRL_GET_SIZE:
-+        *(off_t *)arg = s->control_uint_arg;
-+        break;
-     case STREAM_CTRL_GET_LANG:
-       *(struct stream_lang_req *)arg = s->control_lang_arg;
-       break;
index 1a9bd15bf79d76c826a327bb2c5fed09a05f469b..3f1cf204712d670286e90a2b2a795bd1ec78bafd 100644 (file)
    def_libgsm='#define CONFIG_LIBGSM 1'
 --- MPlayer-1.1/ffmpeg/libavcodec/libgsm.c.orig        2012-06-02 20:13:19.000000000 +0200
 +++ MPlayer-1.1/ffmpeg/libavcodec/libgsm.c     2013-02-03 19:07:39.377220838 +0100
-@@ -27,7 +27,7 @@
+@@ -28,11 +28,7 @@
  // The idiosyncrasies of GSM-in-WAV are explained at http://kbs.cs.tu-berlin.de/~jutta/toast.html
  
+ #include "config.h"
+-#if HAVE_GSM_H
+ #include <gsm.h>
+-#else
 -#include <gsm/gsm.h>
-+#include <gsm.h>
+-#endif
  
- #include "avcodec.h"
- #include "internal.h"
+ #include "libavutil/channel_layout.h"
+ #include "libavutil/common.h"
+
index 1eee5d3825665ca8bccaa792f05a46d2dc36e0a2..eb271cd6ebb34be9fb334e07eb2e624c8ec2b062 100644 (file)
    echores "yes"
  else
    echores "no"
-@@ -7988,6 +7992,8 @@
+@@ -8390,6 +8390,8 @@
+ CFLAGS_STACKREALIGN      = $cflags_stackrealign
  CFLAGS_SVGALIB_HELPER    = $cflags_svgalib_helper
- CFLAGS_TREMOR_LOW        = $cflags_tremor_low
  
 +LDFLAGS            = $real_ldflags
 +
- EXTRALIBS          = $extra_ldflags $ld_static $extra_libs
+ EXTRALIBS          = $extra_ldflags $ld_static $timer_libs $extra_libs
  EXTRALIBS_MPLAYER  = $libs_mplayer
  EXTRALIBS_MENCODER = $libs_mencoder
 --- mplayer-r32669/Makefile.orig       2010-10-27 19:55:45.000000000 +0200
index f35ec7802c8093c549354d0701ee1f3115c7f55e..330b5286841591722c37705889bc7e340ecfee15 100644 (file)
@@ -1,22 +1,23 @@
 --- mplayer-r32669/Makefile.orig       2010-11-30 09:29:43.000000000 +0100
 +++ mplayer-r32669/Makefile    2010-11-30 09:31:08.071501256 +0100
-@@ -734,7 +734,7 @@
- OBJS_MPLAYER   += $(OBJS_MPLAYER-yes)
+@@ -687,7 +687,7 @@
+ OBJS_MPLAYER                  += $(OBJS_MPLAYER-yes)
  
  MENCODER_DEPS = $(OBJS_MENCODER) $(OBJS_COMMON) $(COMMON_LIBS)
 -MPLAYER_DEPS  = $(OBJS_MPLAYER)  $(OBJS_COMMON) $(COMMON_LIBS)
 +MPLAYER_DEPS  = $(OBJS_MPLAYER)  $(OBJS_COMMON) $(COMMON_LIBS) -lXext -lX11
- DEP_FILES = $(SRCS_COMMON) $(SRCS_MPLAYER) $(SRCS_MENCODER)
+ DEP_FILES     = $(SRCS_COMMON) $(SRCS_MPLAYER) $(SRCS_MENCODER)
  $(foreach suffix,.c .cpp .m .S,$(eval DEP_FILES := $(DEP_FILES:$(suffix)=.d)))
  
 --- mplayer-r32923/configure.orig      2011-06-28 21:37:44.000000000 +0200
 +++ mplayer-r32923/configure   2011-06-28 21:39:56.738031684 +0200
-@@ -7604,7 +7604,7 @@
+@@ -7869,7 +7869,7 @@
    return exitvar;
  }
  EOF
--    cc_check -lXext && _xshape=yes
-+    cc_check -lXext -lX11 && _xshape=yes
-   fi
-   if test "$_xshape" = yes ; then
-     def_xshape='#define CONFIG_XSHAPE 1'
+-      cc_check -lXext && _xshape=yes
++      cc_check -lXext -lX11 && _xshape=yes
+     fi
+     if test "$_xshape" = yes ; then
+       def_xshape='#define CONFIG_XSHAPE 1'
+
index 93593ec8a354d7ef964bbf9549ece0d3ccb41c7a..a3f501a8ef9a0c2562d5a29d005b61cbffe6a9b9 100644 (file)
@@ -1,85 +1,10 @@
---- mplayer-r29930/libdvdread4/dvdread/dvd_reader.h~   2009-11-19 14:23:23.231276231 +0100
-+++ mplayer-r29930/libdvdread4/dvdread/dvd_reader.h    2009-11-19 14:25:48.524614054 +0100
-@@ -74,6 +74,8 @@
-  */
- typedef struct dvd_stat_s dvd_stat_t;
-+#pragma GCC visibility push(default)
-+
- /**
-  * Opens a block device of a DVD-ROM file, or an image file, or a directory
-  * name for a mounted DVD or HD copy of a DVD.
-@@ -305,6 +307,8 @@
-  */
- int DVDUDFCacheLevel( dvd_reader_t *, int );
-+#pragma GCC visibility pop
-+
- #ifdef __cplusplus
+--- mplayer/binary.ver~        2014-04-29 17:29:35.000000000 +0200
++++ mplayer/binary.ver 2014-04-29 17:30:22.560066797 +0200
+@@ -1,5 +1,7 @@
+ MPLAYER_1 {
+   # to support glibcs abhorrent backwards-compatibility hack
+   global: _IO_stdin_used;
++  # for vstream-client
++      vstream_error;
+   local: *;
  };
- #endif
---- mplayer-r29930/libdvdread4/dvdread/ifo_read.h~     2009-11-19 14:23:00.545070443 +0100
-+++ mplayer-r29930/libdvdread4/dvdread/ifo_read.h      2009-11-19 14:26:19.125441477 +0100
-@@ -29,6 +29,7 @@
- extern "C" {
- #endif
-+#pragma GCC visibility push(default)
- /**
-  * handle = ifoOpen(dvd, title);
-  *
-@@ -226,6 +227,8 @@
- void ifoFree_TITLE_VOBU_ADMAP(ifo_handle_t *);
- void ifoFree_TXTDT_MGI(ifo_handle_t *);
-+#pragma GCC visibility pop
-+
- #ifdef __cplusplus
- };
- #endif
---- mplayer-r29930/libdvdread4/dvdread/nav_read.h~     2009-11-18 00:00:29.000000000 +0100
-+++ mplayer-r29930/libdvdread4/dvdread/nav_read.h      2009-11-19 14:27:13.724600811 +0100
-@@ -31,6 +31,7 @@
- extern "C" {
- #endif
-+#pragma GCC visibility push(default)
- /**
-  * Reads the PCI packet data pointed to into th pci struct.
-  *
-@@ -46,6 +47,7 @@
-  * @param bufffer Pointer to the buffer of the on disc DSI data.
-  */
- void navRead_DSI(dsi_t *, unsigned char *);
-+#pragma GCC visibility pop
- #ifdef __cplusplus
- };
---- MPlayer-1.1/configure.orig 2013-02-24 17:53:33.092693098 +0100
-+++ MPlayer-1.1/configure      2013-02-24 19:29:59.079116950 +0100
-@@ -7426,6 +7426,7 @@
-   _vstream=no
-   cat > $TMPC <<EOF
- #include <vstream-client.h>
-+#pragma GCC visibility push(default)
- void vstream_error(const char *format, ... ) {}
- int main(void) { vstream_start(); return 0; }
- EOF
---- MPlayer-1.1/stream/stream_vstream.c.orig   2011-10-21 17:44:58.000000000 +0200
-+++ MPlayer-1.1/stream/stream_vstream.c        2013-02-24 21:03:09.752215665 +0100
-@@ -51,6 +51,7 @@
- #include <vstream-client.h>
-+#pragma GCC visibility push(default)
- void vstream_error(const char *format, ...) {
-     char buf[1024];
-     va_list va;
-@@ -59,6 +60,7 @@
-     va_end(va);
-     mp_msg(MSGT_STREAM, MSGL_ERR, buf);
- }
-+#pragma GCC visibility pop
- static struct stream_priv_s {
-   char* host;
index bc130505f8da0d50fa6ed3862f4e7340c84bc89e..09bf233842ebbfc33a73c262c55fe735bfa73861 100644 (file)
@@ -9,12 +9,13 @@
  else
    noinputmodules="vstream $noinputmodules"
    def_vstream='#undef CONFIG_VSTREAM'
-@@ -8048,7 +8048,7 @@
+@@ -8415,7 +8415,7 @@
  
  LDFLAGS            = $real_ldflags
  
--EXTRALIBS          = $extra_ldflags $ld_static $extra_libs
-+EXTRALIBS          = $extra_ldflags $ndextra_ldflags $ld_static $extra_libs
+-EXTRALIBS          = $extra_ldflags $ld_static $timer_libs $extra_libs
++EXTRALIBS          = $extra_ldflags $ndextra_ldflags $ld_static $timer_libs $extra_libs
  EXTRALIBS_MPLAYER  = $libs_mplayer
  EXTRALIBS_MENCODER = $libs_mencoder
  
+
index 1390e9a3b0ad726ffa71586db72c39cbbc019c15..19a20019589504b139a4e85f2cbb1b8928366d0d 100644 (file)
 %define                binsuf  32
 %endif
 
+# date from directory inside of tarball (like mplayer-export-2014-04-29)
+%define        snap    2014-04-29
+%define        ssnap   %(echo %{snap} | tr -d -)
 Summary:       MPlayer - THE Movie Player for UN*X
 Summary(de.UTF-8):     MPlayer ist ein unter der freien GPL-Lizenz stehender Media-Player
 Summary(es.UTF-8):     Otro reproductor de películas
@@ -115,7 +118,7 @@ Summary(pl.UTF-8):  Odtwarzacz filmów dla systemów uniksowych
 Summary(pt_BR.UTF-8):  Reprodutor de filmes
 Name:          mplayer
 Version:       1.1.1
-Release:       6
+Release:       6.%{ssnap}.1
 # DO NOT increase epoch unless it's really neccessary!
 # especially such changes like pre7->pre7try2, increase Release instead!
 # PS: $ rpmvercmp pre7try2 pre7
@@ -123,12 +126,11 @@ Release:  6
 Epoch:         3
 License:       GPL
 Group:         Applications/Multimedia
-# for snapshots:
-#   svn export svn://svn.mplayerhq.hu/mplayer/trunk mplayer-rXXX
-#   cd mplayer-rXXX && git clone git://git.videolan.org/ffmpeg.git
-#   tar -cvJf mplayer-rXXX.tar.xz mplayer-rXXX
-Source0:       http://mplayerhq.hu/MPlayer/releases/MPlayer-%{version}.tar.xz
-# Source0-md5: 39dd55f30eb5403f219a606e79a6648a
+# Source0:        http://mplayerhq.hu/MPlayer/releases/MPlayer-%{version}.tar.xz
+Source0:       ftp://ftp.mplayerhq.hu/MPlayer/releases/mplayer-export-snapshot.tar.bz2
+# Source0-md5: e0183567e23a6c03495cbff696d840c0
+Source1:       http://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2
+# Source1-md5: 2e2d3842604047137318880f5b7d8691
 Source3:       ftp://ftp1.mplayerhq.hu/MPlayer/releases/fonts/font-arial-iso-8859-2.tar.bz2
 # Source3-md5: 7b47904a925cf58ea546ca15f3df160c
 Source5:       g%{name}.desktop
@@ -145,7 +147,7 @@ Patch10:    %{name}-ldflags.patch
 Patch11:       %{name}-altivec.patch
 Patch12:       %{name}-check-byteswap.patch
 Patch13:       %{name}-visibility-hidden-fix.patch
-Patch14:       %{name}-ffmpeg.patch
+
 Patch15:       %{name}-live555-async.patch
 Patch16:       %{name}-libcdio.patch
 Patch17:       %{name}-gsm.patch
@@ -164,11 +166,9 @@ Patch31:   %{name}-350.patch
 # update, hard to fix right now because of gnome bug 579430:
 # https://bugzilla.gnome.org/show_bug.cgi?id=579430
 #Patch32:      %{name}-gnome-screensaver.patch
-Patch33:       %{name}-growing-files.patch
 
 Patch100:      %{name}-on2flix.patch
 Patch101:      %{name}-link.patch
-Patch102:      %{name}-build.patch
 
 URL:           http://www.mplayerhq.hu/
 %{?with_directfb:BuildRequires:        DirectFB-devel}
@@ -392,7 +392,7 @@ package.
 MEncoder to koder filmów dla Linuksa będący częścią pakietu MPlayer.
 
 %prep
-%setup -q -n MPlayer-%{version} -a3 -a6 -a9
+%setup -q -n %{name}-export-%{snap} -a1 -a3 -a6 -a9
 cp -f etc/codecs.conf etc/codecs.win32.conf
 
 # build (configure / Makefile) related:
@@ -400,7 +400,7 @@ cp -f etc/codecs.conf etc/codecs.win32.conf
 %patch11 -p1
 %patch12 -p1
 %patch13 -p1
-%{?with_system_ffmpeg:%patch14 -p1}
+
 %patch15 -p1
 %patch16 -p1
 %patch17 -p1
@@ -417,7 +417,6 @@ cp -f etc/codecs.conf etc/codecs.win32.conf
 %patch30 -p0
 %patch31 -p1
 #%{with_gnomess:%patch32 -p1}
-%patch33 -p1
 
 # on2flix
 mv mencoder-on2flixenglinux{-*-*-*,}
@@ -442,7 +441,6 @@ done
 %endif
 
 %patch101 -p1
-%patch102 -p1
 
 cat etc/example.conf > etc/mplayer.conf
 cat <<'CONFIGADD' >> etc/mplayer.conf
@@ -470,7 +468,7 @@ CONFIGADD
 
 %if %{with system_ffmpeg}
 # using external ffmpeg, but mplayer adds these to includepath
-%{__rm} -r ffmpeg
+%{__rm} -rf ffmpeg
 %endif
 
 %build
@@ -494,14 +492,7 @@ build() {
        --extra-ldflags="%{?_x_libraries:-L%{_x_libraries}}" \
        --language=all \
 %if %{with system_ffmpeg}
-       --disable-libavutil_a \
-       --disable-libavcodec_a \
-       --disable-libavformat_a \
-       --disable-libpostproc_a \
-       --enable-libavutil_so \
-       --enable-libavcodec_so \
-       --enable-libavformat_so \
-       --enable-libpostproc_so \
+       --disable-ffmpeg_a \
 %endif
 %ifnarch %{ix86} %{x8664}
        --disable-3dnow \
This page took 0.127604 seconds and 4 git commands to generate.