Переглянути джерело

update: wesnoth-1.6.5-3

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@712 ec354946-7b23-47d6-9f5a-488ba84defc7
iwaim 14 роки тому
батько
коміт
a0b7893edf
1 змінених файлів з 59 додано та 3 видалено
  1. 59 3
      w/wesnoth/wesnoth-vl.spec

+ 59 - 3
w/wesnoth/wesnoth-vl.spec

@@ -3,14 +3,23 @@
 %define with_campaignd 0
 %define with_wesnothd 0
 
+%define with_unofficial_po 1
+
 Summary: Fantasy Turn-Based Strategy Game
 Summary(ja):  ターンベースのファンタジー戦略シミュレーションゲーム
 Name: wesnoth
 Version: 1.6.5
-Release: 2%{?_dist_release}
+Release: 3%{?_dist_release}
 Source0: %{name}-%{version}.tar.bz2
 Source1: wesnothd.init
 Source2: %{name}.sysconfig
+%if %{with_unofficial_po}
+# based http://loda.jp/wjtranslate/?id=17
+Source10: wesnoth-1.6.5-japanese-po.tar.gz
+# http://github.com/iwaim/wesnoth-po/raw/master/ja-po/wesnoth-sotbe/ja.po
+Source11: wesnoth-1.6.5-sotbe-ja.po
+Patch10: wesnoth-1.6.5-japanese_translators.patch
+%endif
 
 %{?nosrc:NoSource: 0}
 
@@ -20,7 +29,7 @@ URL: http://www.wesnoth.org/
 
 Distribution: Vine Linux
 Vendor:       Project Vine
-Packager:     munepi
+Packager:     munepi, iwaim
 
 Requires: xorg-x11-libs SDL SDL_image SDL_mixer SDL_net SDL_ttf
 Requires: freetype2 libpng zlib pango fontconfig
@@ -133,6 +142,46 @@ Battle for Wesnoth はターンベースの戦略シミュレーションゲー
 
 %setup -q
 
+%if %{with_unofficial_po}
+%patch10 -p1
+%define japo_dir wesnoth-1.6.5-japanese-po
+%{__tar} zxvf %{SOURCE10}
+pushd %{japo_dir}
+target=(
+	wesnoth-anl
+	wesnoth-aoi
+	wesnoth-did
+	wesnoth-editor
+	wesnoth-ei
+	wesnoth-httt
+	wesnoth-l
+	wesnoth-lib
+	wesnoth-low
+	wesnoth-manpages
+	wesnoth-manual
+	wesnoth-multiplayer
+	wesnoth-nr
+	wesnoth-sof
+	wesnoth-sotbe
+	wesnoth-tb
+	wesnoth-test
+	wesnoth-thot
+	wesnoth-trow
+	wesnoth-tsg
+	wesnoth-tutorial
+	wesnoth-units
+	wesnoth-utbs
+	wesnoth
+)
+for n in "${target[@]}"
+do
+%{__cp} -f $n.po ../po/$n/ja.po
+done
+popd
+# wesnoth-sotbe
+%{__cp} -f %{SOURCE11} po/wesnoth-sotbe/ja.po
+%endif
+
 %build
 export CFLAGS="%{optflags}" CXXFLAGS="%{optflags}" 
 %configure \
@@ -330,7 +379,14 @@ fi
 
 
 %changelog
-* Mon Feb 08 2010 Shu KONNO <owa@bg.wakwak.com> 1.6.5-2
+* Mon Mar 29 2010 IWAI, Masaharu <iwai@alib.jp> 1.6.5-3
+- add unofficial Japanese po files
+  - add wesnoth-1.6.5-japanese-po.zip (Source10)
+  - add wesnoth-1.6.5-sotbe-ja.po (Source11)
+  - add Japanese translators patch (Patch10)
+- update Packager: assign iwaim
+
+* Mon Feb 08 2010 Shu KONNO <owa@bg.wakwak.com> 1.6.5-2vl6
 - rebuilt with new toolchain and libboost-1.42.0
 
 * Fri Sep 11 2009 Munehiro Yamamoto <munepi@vinelinux.org> 1.6.5-1