Browse Source

updated gnome-mplayer

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@1614 ec354946-7b23-47d6-9f5a-488ba84defc7
munepi 14 years ago
parent
commit
71bbdccf37
2 changed files with 48 additions and 11 deletions
  1. 29 0
      g/gnome-mplayer/gnome-mplayer-snapshot.sh
  2. 19 11
      g/gnome-mplayer/gnome-mplayer-vl.spec

+ 29 - 0
g/gnome-mplayer/gnome-mplayer-snapshot.sh

@@ -0,0 +1,29 @@
+#!/bin/bash
+
+set -e
+
+tmp=$(mktemp -d)
+
+trap cleanup EXIT
+cleanup() {
+    set +e
+    [ -z "$tmp" -o ! -d "$tmp" ] || rm -rf "$tmp"
+}
+
+unset CDPATH
+pwd=$(pwd)
+
+dirname=gnome-mplayer
+
+cd "$tmp"
+svn checkout http://gnome-mplayer.googlecode.com/svn/trunk/ $dirname
+cd $dirname
+eval `autoconf configure.in | egrep '^[[:blank:]]*VERSION='`
+REVISION=`LC_ALL=C svn info 2> /dev/null | grep Revision | cut -d' ' -f2`
+find . -type d -name .svn -print0 | xargs -0r rm -rf
+cd ..
+mv $dirname ${dirname}-${VERSION}
+tar jcf "$pwd"/${dirname}-${VERSION}.svn${REVISION}.tar.bz2 ${dirname}-${VERSION}
+cd ${pwd} >/dev/null
+
+exit

+ 19 - 11
g/gnome-mplayer/gnome-mplayer-vl.spec

@@ -1,26 +1,27 @@
 #TODO: Nautilus extention
 %define with_nautilus 0
-%define with_my_japo 0
-%define svnrevision 1685
+%define with_my_japo 1
+#% define svnrevision 1729
+%define rcversion 1
 
 %define GNOME_MPLAYER_BIN %{_libexecdir}/%{name}
 
 Name:           gnome-mplayer
-Version:        0.9.9.2
-Release:        4%{?svnrevision:.svn%svnrevision}%{?_dist_release}
+Version:        0.9.99
+Release:        1%{?svnrevision:.svn%svnrevision}%{?rcversion:.rc%rcversion}%{?_dist_release}
 Summary:        An MPlayer GUI, a full-featured binary
 Summary(ja):    高機能な MPlayer のグラフィカルユーザーインターフェース
 Group:          Applications/Multimedia
 License:        GPLv2+
 URL:            http://kdekorte.googlepages.com/gnomemplayer
-Source0:        http://gnome-mplayer.googlecode.com/files/%{name}-%{version}%{?svnrevision:.svn%svnrevision}.tar.%{?svnrevision:bz2}%{!?svnrevision:gz}
+Source0:        http://gnome-mplayer.googlecode.com/files/%{name}-%{version}%{?svnrevision:.svn%svnrevision}%{?rcversion:.rc%rcversion}.tar.%{?svnrevision:bz2}%{!?svnrevision:gz}
 Source10:       gnome-mplayer-snapshot.sh
 Source50:       gnome-mplayer.sh.in
 
 ## vine
 %if %{with_my_japo}
-#Patch100:       gnome-mplayer-0.9.4-ja.patch
-Source100:      gnome-mplayer-0.9.9.svn1629-ja.po
+Source100:      gnome-mplayer-0.9.99.rc1-ja.po
+Source101:      gnome-mplayer-0.9.99.rc1.desktop
 %endif
 
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
@@ -99,13 +100,12 @@ GNOME MPlayer のインスタンスを制御できます.
 %endif
 
 %prep
-%setup -q
+%setup -q %{?rcversion:-n %{name}-%{version}.rc%{rcversion}}
 
 %if %{with_my_japo}
 ## vine
-#% patch100 -p1 -b .ja
 %__install -m644 %{SOURCE100} po/ja.po
-#autoreconf -f
+%__install -m644 %{SOURCE101} gnome-mplayer.desktop
 %endif
 
 
@@ -136,7 +136,7 @@ desktop-file-install --vendor=vine \
 %__rm -rf $RPM_BUILD_ROOT%{_docdir}/gnome-mplayer
 
 # remove unpackaged files
-find $RPM_BUILD_ROOT -name *.la -exec rm -f {} \;
+find $RPM_BUILD_ROOT -name *.la -exec %__rm -f {} \;
 
 
 %pre
@@ -199,6 +199,14 @@ update-desktop-database &> /dev/null || :
 
 
 %changelog
+* Fri Aug 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.99-1.rc1
+- source 0.9.99.rc1
+  - applied gnome-mplayer-0.9.99.rc1-ja.po
+  - entry ja in gnome-mplayer.desktop
+
+* Mon Jun 28 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.9.2-5.svn1729
+- source snapshot r1729
+
 * Sat Apr 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.9.2-4.svn1685
 - fixed gnome-mplayer.sh.in