Browse Source

freeciv 2.2.2-1

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@1736 ec354946-7b23-47d6-9f5a-488ba84defc7
iwaim 13 years ago
parent
commit
03ff1198a8
1 changed files with 19 additions and 5 deletions
  1. 19 5
      f/freeciv/freeciv-vl.spec

+ 19 - 5
f/freeciv/freeciv-vl.spec

@@ -5,13 +5,15 @@
 
 Name:           freeciv
 Version:        2.2.2
-Release:        1%{?dist}
+Release:        1%{?_dist_release}
 Summary:        A multi-player strategy game
 
 Group:          Amusements/Games
 License:        GPLv2+
 URL:            http://freeciv.wikia.com/index.php/Freeciv
 Source0:        http://download.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
+# http://loda.jp/freeciv/?id=81
+Source1:	freeciv-ja.po
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 ##Fix DSO patch
@@ -23,13 +25,16 @@ BuildRequires:	zlib-devel
 BuildRequires:	SDL_mixer-devel
 BuildRequires:	esound-devel
 BuildRequires:	ncurses-devel
-BuildRequires:	ggz-gtk-client-devel
+BuildRequires:	ggz-client-libs-devel
 BuildRequires:	desktop-file-utils
 BuildRequires:	gettext
 
 Requires(post): ggz-client-libs
 Requires(preun): ggz-client-libs
 
+Vendor: Project Vine
+Distribution: Vine Linux
+Packager: iwaim
 
 %description
 Freeciv is a turn-based, multi-player, X based strategy game. Freeciv
@@ -42,6 +47,8 @@ in order to become the leader of the greatest civilization.
 %prep
 %setup -q -n %{name}-%{version}
 %patch10 -p0
+%__rm -f po/ja.{po,gmo}
+%__cp -p %{SOURCE1} po/ja.po
 
 %build
 %configure --enable-client=gtk --disable-static
@@ -52,11 +59,11 @@ rm -rf $RPM_BUILD_ROOT
 make install DESTDIR=$RPM_BUILD_ROOT
 %find_lang %{name}
 
-desktop-file-install --vendor fedora --delete-original	\
+desktop-file-install --vendor vine --delete-original	\
 	--dir $RPM_BUILD_ROOT%{_datadir}/applications	\
 	$RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop
 
-desktop-file-install --vendor fedora --delete-original \
+desktop-file-install --vendor vine --delete-original \
 	--dir $RPM_BUILD_ROOT%{_datadir}/applications  	\
 	$RPM_BUILD_ROOT%{_datadir}/applications/%{name}-server.desktop
 
@@ -64,7 +71,9 @@ desktop-file-install --vendor fedora --delete-original \
 rm $RPM_BUILD_ROOT%{_bindir}/civmanual
 # ggz config
 # omit ggz.modules, to register at install, not build, time.
+if [ -e $RPM_BUILD_ROOT%{_sysconfdir}/ggz.modules ]; then
 rm $RPM_BUILD_ROOT%{_sysconfdir}/ggz.modules
+fi
 # include .dsc files
 install -p -D -m644 data/civclient.dsc $RPM_BUILD_ROOT%{_ggz_datadir}/civclient.dsc
 find $RPM_BUILD_ROOT -name '*.la' -delete
@@ -102,7 +111,7 @@ fi
 %{_bindir}/freeciv-server
 %{_bindir}/freeciv-gtk2
 %{_datadir}/%{name}/
-%{_datadir}/applications/fedora-*.desktop
+%{_datadir}/applications/vine-*.desktop
 %{_datadir}/icons/hicolor/*/apps/*.png
 %{_datadir}/pixmaps/%{name}-client.png
 %{_mandir}/man6/freeciv*6*
@@ -110,6 +119,11 @@ fi
 
 
 %changelog
+* Wed Sep  1 2010 IWAI, Masaharu <iwai@alib.jp> 2.2.2-1
+- build for Vine Linux: from Fedora 2.2.2-1
+ - change BuildRequires: ggz-gtk-client-devel to gz-client-libs-devel
+- add ja.po (Source1) from http://loda.jp/freeciv/?id=81
+
 * Mon Aug 02 2010 Thomas Janssen <thomasj@fedoraproject.org> 2.2.2-1
 - security fix https://www.redhat.com/security/data/cve/CVE-2010-2445.html
 - fixes #612296