浏览代码

upgrading package: mozilla-mplayer 1.0 -> 1.1

Michael Schloh von Bennewitz 22 年之前
父节点
当前提交
681b329de9
共有 2 个文件被更改,包括 19 次插入13 次删除
  1. 9 9
      mozilla-mplayer/mozilla-mplayer.patch
  2. 10 4
      mozilla-mplayer/mozilla-mplayer.spec

+ 9 - 9
mozilla-mplayer/mozilla-mplayer.patch

@@ -1,7 +1,7 @@
 Index: Source/mplayerplug-in.c
---- Source/mplayerplug-in.c.orig	2003-10-20 19:11:32.000000000 +0200
-+++ Source/mplayerplug-in.c	2003-10-20 20:21:46.000000000 +0200
-@@ -70,7 +70,7 @@
+--- Source/mplayerplug-in.c.orig	Tue Jan 20 11:08:49 2004
++++ Source/mplayerplug-in.c	Tue Jan 20 11:09:38 2004
+@@ -71,7 +71,7 @@
      }
  
      if (config == NULL) {
@@ -10,7 +10,7 @@ Index: Source/mplayerplug-in.c
      }
  
      if (config == NULL) {
-@@ -147,7 +147,7 @@
+@@ -148,7 +148,7 @@
  	}
  
  	if (customtypes == NULL) {
@@ -20,9 +20,9 @@ Index: Source/mplayerplug-in.c
  
  	if (customtypes != NULL) {
 Index: Source/support.c
---- Source/support.c.orig	2003-10-20 19:11:32.000000000 +0200
-+++ Source/support.c	2003-10-20 20:21:46.000000000 +0200
-@@ -113,7 +113,7 @@
+--- Source/support.c.orig	Tue Jan 20 11:10:43 2004
++++ Source/support.c	Tue Jan 20 11:10:51 2004
+@@ -116,7 +116,7 @@
      }
  
      if (config == NULL) {
@@ -32,8 +32,8 @@ Index: Source/support.c
  
      if (config == NULL) {
 Index: mplayerplug-in.types
---- mplayerplug-in.types.orig	2003-10-17 18:28:13.000000000 +0200
-+++ mplayerplug-in.types	2003-10-20 20:21:46.000000000 +0200
+--- mplayerplug-in.types.orig	Tue Jan 20 11:11:49 2004
++++ mplayerplug-in.types	Tue Jan 20 11:11:52 2004
 @@ -32,4 +32,4 @@
  audio/x-ms-wma:wma:Windows Media;
  application/x-drm-v2:asx:Windows Media;

+ 10 - 4
mozilla-mplayer/mozilla-mplayer.spec

@@ -24,8 +24,8 @@
 ##
 
 #   package version
-%define       V_dist  1.0
-%define       V_opkg  1.0
+%define       V_dist  1.1
+%define       V_opkg  1.1
 
 #   package information
 Name:         mozilla-mplayer
@@ -37,7 +37,7 @@ Distribution: OpenPKG [EVAL]
 Group:        Web
 License:      GPL
 Version:      %{V_opkg}
-Release:      20031203
+Release:      20040120
 
 #   list of sources
 Source0:      http://osdn.dl.sourceforge.net/mplayerplug-in/mplayerplug-in-%{V_dist}.tar.gz
@@ -59,10 +59,16 @@ AutoReqProv:  no
 %prep
     %setup -q -n mplayerplug-in
     %patch -p0
-    %{l_shtool} subst %{l_value -s l_prefix} Source/*.c
+    %{l_shtool} subst \
+        %{l_value -s l_prefix} \
+        Source/*.c
+    %{l_shtool} subst \
+        -e 's;\(.*LIBOBJS="$LIBOBJS\) lstat.$ac_objext;\1;' \
+        configure
 
 %build
     CC="%{l_cc}" \
+    CPPFLAGS="%{l_cppflags} -I`%{l_prefix}/etc/rc --query x11_incdir`" \
     CFLAGS="%{l_cflags -O} %{l_cppflags} -I`%{l_prefix}/etc/rc --query x11_incdir`" \
     LIBS="%{l_ldflags} -L`%{l_prefix}/etc/rc --query x11_libdir`" \
     ./configure \