Pārlūkot izejas kodu

wesnoth 1.8.5-1

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@2138 ec354946-7b23-47d6-9f5a-488ba84defc7
iwaim 14 gadi atpakaļ
vecāks
revīzija
feb8f96fe5
1 mainītis faili ar 18 papildinājumiem un 12 dzēšanām
  1. 18 12
      w/wesnoth/wesnoth-vl.spec

+ 18 - 12
w/wesnoth/wesnoth-vl.spec

@@ -3,7 +3,7 @@
 %define with_campaignd 0
 %define with_wesnothd 0
 
-%define ver 1.8.4
+%define ver 1.8.5
 %define src_ver %{ver}
 %define rel 1
 
@@ -12,8 +12,8 @@
 %define svn_rev 41885
 %endif
 
-%define with_unofficial_po 0
-%define po_date		   20100710
+%define with_unofficial_po 1
+%define po_date		   20100926
 
 Summary: Fantasy Turn-Based Strategy Game
 Summary(ja):  ターンベースのファンタジー戦略シミュレーションゲーム
@@ -29,7 +29,8 @@ Source0: %{name}-%{src_ver}.tar.bz2
 Source1: wesnothd.init
 Source2: %{name}.sysconfig
 %if %{with_unofficial_po}
-#Source12: wesnoth-branches1.8_ja-%{po_date}.tar.gz
+# http://sourceforge.jp/projects/wesnoth-ja/releases/?package_id=11460
+Source12: wesnoth-%{version}_ja-catalogs-%{po_date}.zip
 %endif
 
 %{?nosrc:NoSource: 0}
@@ -62,6 +63,9 @@ BuildRequires: libboost-iostreams libboost-regex
 BuildRequires: lua-devel
 #BuildRequires: fribidi-devel
 #BuildRequires: python-devel
+%if %{with_unofficial_po}
+BuildRequires: unzip
+%endif
 BuildRoot: %{_tmppath}/%{name}-%{version}-root
 
 Conflicts: wesnoth165
@@ -158,22 +162,19 @@ Battle for Wesnoth はターンベースの戦略シミュレーションゲー
 %if %{with_svn}
 %setup -q -n %{name}-%{version}-svn%{svn_rev}
 %else
-%setup -q -n %{name}-%{src_ver}
+%setup -q -a 12 -n %{name}-%{src_ver}
 %endif
 
 %if %{with_unofficial_po}
-%define japo_dir wesnoth-branches1.8_ja-%{po_date}/po
+%define japo_dir wesnoth-%{version}_ja-catalogs-%{po_date}
+
 pushd %{japo_dir}
 target=(
-	wesnoth
-	wesnoth-aoi
-	wesnoth-dm
-	wesnoth-trow
-	wesnoth-utbs
+	httt
 )
 for n in "${target[@]}"
 do
-%{__cp} -f $n/ja.po ../../po/$n/ja.po
+%{__cp} -f wesnoth-%{version}_$n-%{po_date}_ja.po ../po/wesnoth-$n/ja.po
 done
 popd
 %endif
@@ -381,6 +382,11 @@ fi
 
 
 %changelog
+* Wed Oct 20 2010 IWAI, Masaharu <iwai@alib.jp> 1.8.5-1
+- new upstream release
+- add Japanese po files version 20100926 (Source12)
+- add BuildRequires: unzip for Japanese po files
+
 * Thu Aug 12 2010 IWAI, Masaharu <iwai@alib.jp> 1.8.4-1
 - new upstream release
 - drop Japanese po files version 20100710 (Source12)