|
@@ -5,13 +5,15 @@
|
|
|
|
|
|
Name: freeciv
|
|
Name: freeciv
|
|
Version: 2.2.2
|
|
Version: 2.2.2
|
|
-Release: 1%{?dist}
|
|
+Release: 1%{?_dist_release}
|
|
Summary: A multi-player strategy game
|
|
Summary: A multi-player strategy game
|
|
|
|
|
|
Group: Amusements/Games
|
|
Group: Amusements/Games
|
|
License: GPLv2+
|
|
License: GPLv2+
|
|
URL: http://freeciv.wikia.com/index.php/Freeciv
|
|
URL: http://freeciv.wikia.com/index.php/Freeciv
|
|
Source0: http://download.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
|
|
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)
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
|
##Fix DSO patch
|
|
##Fix DSO patch
|
|
@@ -23,13 +25,16 @@ BuildRequires: zlib-devel
|
|
BuildRequires: SDL_mixer-devel
|
|
BuildRequires: SDL_mixer-devel
|
|
BuildRequires: esound-devel
|
|
BuildRequires: esound-devel
|
|
BuildRequires: ncurses-devel
|
|
BuildRequires: ncurses-devel
|
|
-BuildRequires: ggz-gtk-client-devel
|
|
+BuildRequires: ggz-client-libs-devel
|
|
BuildRequires: desktop-file-utils
|
|
BuildRequires: desktop-file-utils
|
|
BuildRequires: gettext
|
|
BuildRequires: gettext
|
|
|
|
|
|
Requires(post): ggz-client-libs
|
|
Requires(post): ggz-client-libs
|
|
Requires(preun): ggz-client-libs
|
|
Requires(preun): ggz-client-libs
|
|
|
|
|
|
|
|
+Vendor: Project Vine
|
|
|
|
+Distribution: Vine Linux
|
|
|
|
+Packager: iwaim
|
|
|
|
|
|
%description
|
|
%description
|
|
Freeciv is a turn-based, multi-player, X based strategy game. Freeciv
|
|
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
|
|
%prep
|
|
%setup -q -n %{name}-%{version}
|
|
%setup -q -n %{name}-%{version}
|
|
%patch10 -p0
|
|
%patch10 -p0
|
|
|
|
+%__rm -f po/ja.{po,gmo}
|
|
|
|
+%__cp -p %{SOURCE1} po/ja.po
|
|
|
|
|
|
%build
|
|
%build
|
|
%configure --enable-client=gtk --disable-static
|
|
%configure --enable-client=gtk --disable-static
|
|
@@ -52,11 +59,11 @@ rm -rf $RPM_BUILD_ROOT
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
%find_lang %{name}
|
|
%find_lang %{name}
|
|
|
|
|
|
-desktop-file-install --vendor fedora --delete-original \
|
|
+desktop-file-install --vendor vine --delete-original \
|
|
--dir $RPM_BUILD_ROOT%{_datadir}/applications \
|
|
--dir $RPM_BUILD_ROOT%{_datadir}/applications \
|
|
$RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop
|
|
$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 \
|
|
--dir $RPM_BUILD_ROOT%{_datadir}/applications \
|
|
$RPM_BUILD_ROOT%{_datadir}/applications/%{name}-server.desktop
|
|
$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
|
|
rm $RPM_BUILD_ROOT%{_bindir}/civmanual
|
|
# ggz config
|
|
# ggz config
|
|
# omit ggz.modules, to register at install, not build, time.
|
|
# 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
|
|
rm $RPM_BUILD_ROOT%{_sysconfdir}/ggz.modules
|
|
|
|
+fi
|
|
# include .dsc files
|
|
# include .dsc files
|
|
install -p -D -m644 data/civclient.dsc $RPM_BUILD_ROOT%{_ggz_datadir}/civclient.dsc
|
|
install -p -D -m644 data/civclient.dsc $RPM_BUILD_ROOT%{_ggz_datadir}/civclient.dsc
|
|
find $RPM_BUILD_ROOT -name '*.la' -delete
|
|
find $RPM_BUILD_ROOT -name '*.la' -delete
|
|
@@ -102,7 +111,7 @@ fi
|
|
%{_bindir}/freeciv-server
|
|
%{_bindir}/freeciv-server
|
|
%{_bindir}/freeciv-gtk2
|
|
%{_bindir}/freeciv-gtk2
|
|
%{_datadir}/%{name}/
|
|
%{_datadir}/%{name}/
|
|
-%{_datadir}/applications/fedora-*.desktop
|
|
+%{_datadir}/applications/vine-*.desktop
|
|
%{_datadir}/icons/hicolor/*/apps/*.png
|
|
%{_datadir}/icons/hicolor/*/apps/*.png
|
|
%{_datadir}/pixmaps/%{name}-client.png
|
|
%{_datadir}/pixmaps/%{name}-client.png
|
|
%{_mandir}/man6/freeciv*6*
|
|
%{_mandir}/man6/freeciv*6*
|
|
@@ -110,6 +119,11 @@ fi
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
%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
|
|
* 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
|
|
- security fix https://www.redhat.com/security/data/cve/CVE-2010-2445.html
|
|
- fixes #612296
|
|
- fixes #612296
|