Author: tommat Date: Tue Aug 1 19:59:29 2006 GMT Module: SPECS Tag: HEAD ---- Log message: - more languages - added polished polish translation patch - added home_etc patch - added wrapper that makes sure that home configs are initialized - removed unnecessary files from game data dir - added desktop file and icon - rel 0.2
---- Files affected: SPECS: glest.spec (1.9 -> 1.10) ---- Diffs: ================================================================ Index: SPECS/glest.spec diff -u SPECS/glest.spec:1.9 SPECS/glest.spec:1.10 --- SPECS/glest.spec:1.9 Fri Jul 28 16:13:53 2006 +++ SPECS/glest.spec Tue Aug 1 21:59:24 2006 @@ -8,16 +8,49 @@ Summary(pl): Glest - Strategia 3D czasu rzeczywistego Name: glest Version: 2.0.0 -Release: 0.1 +Release: 0.2 License: GPL Group: X11/Applications/Games Source0: http://dl.sourceforge.net/glest/%{name}_source_%{version}.zip # Source0-md5: f7716da7a044dbe108c619b0f52621bb Source1: http://dl.sourceforge.net/glest/%{name}_data_%{version}.zip # Source1-md5: 8b6902e82874011e768c64e20fbeead5 -Source2: http://www.glest.org/files/contrib/translations/polish_1.0.9.zip -# Source2-md5: 977df518ef4523fce1e833769e760e29 -#Patch0: %{name}-DESTDIR.patch +Source2: http://www.glest.org/files/contrib/translations/catala_1.2.2.zip +# Source2-md5: 0ff52ece4c408f3a01a54dda8f17e994 +Source3: http://www.glest.org/files/contrib/translations/cesky_1.2.1.zip +# Source3-md5: a1b0063b7ecc7ed14689c63c31b34cf3 +Source4: http://www.glest.org/files/contrib/translations/danish_1.0.9.zip +# Source4-md5: 10a96d53549c7bd50c842dc9d1bd1592 +Source5: http://www.glest.org/files/contrib/translations/deutsch_1.0.1.zip +# Source5-md5: d1debba1dd35af8115fbe3bc5e660555 +Source6: http://www.glest.org/files/contrib/translations/dutch_1.0.9.zip +# Source6-md5: 75b130468743cd9f74235e5eaca88ee3 +Source7: http://www.glest.org/files/contrib/translations/euskara_1.2.2.zip +# Source7-md5: b06b8823100e49b537f4be42cd4674f0 +Source8: http://www.glest.org/files/contrib/translations/francais_2.0.0.zip +# Source8-md5: 0cc6e7c7029c79f1bf61d3a3bdb441d0 +Source9: http://www.glest.org/files/contrib/translations/hebrew_1.2.1.zip +# Source9-md5: 01cc8f8b53cb77e37de4abbb056a47f1 +Source10: http://www.glest.org/files/contrib/translations/italiano_2.0.0.zip +# Source10-md5: 9869a946227b31141b4166c1ca627c9a +Source11: http://www.glest.org/files/contrib/translations/magyar_1.1.0.zip +# Source11-md5: 3dafdbafc1fac2536565bab122b63ece +Source12: http://www.glest.org/files/contrib/translations/norsk_0.8.1.zip +# Source12-md5: 2be1ef1472431ddc361526590d4d82b5 +Source13: http://www.glest.org/files/contrib/translations/polish_1.0.9.zip +# Source13-md5: 977df518ef4523fce1e833769e760e29 +Source14: http://www.glest.org/files/contrib/translations/portugues_2.0.0.zip +# Source14-md5: f133c241ac021ad30d54d0ef48b0f64f +Source15: http://www.glest.org/files/contrib/translations/russian_1.0.9.zip +# Source15-md5: a703c513b57664f03c857b656cc571ae +Source16: http://www.glest.org/files/contrib/translations/slovak_2.0.0.zip +# Source16-md5: a31d07ed2c24da87628590e43f6c131f +Source17: http://www.glest.org/files/contrib/translations/turkish_1.0.9.zip +# Source17-md5: 5ec892e82722b8de359edccb95903bbc +Source18: glest.desktop +Source19: glest.png +Patch0: %{name}-polish.patch +Patch1: %{name}-home_etc.patch URL: http://www.glest.org/ BuildRequires: OpenAL-devel BuildRequires: OpenGL-GLU-devel @@ -41,13 +74,14 @@ XML-a i zestawu narzędzi. %prep -%setup -q -n %{name}_source_%{version} -a1 -a2 +%setup -q -n %{name}_source_%{version} -a1 -a2 -a3 -a4 -a5 -a6 -a7 -a8 -a9 -a10 -a11 -a12 -a13 -a14 -a15 -a16 -a17 for file in xml ini log txt html lng; do find ./ -noleaf -type f -name \*.$file -exec dos2unix '{}' \; done - find mk -noleaf -type f -exec dos2unix '{}' \; +%patch0 -p0 +%patch1 -p1 chmod +x mk/linux/autogen.sh %build @@ -58,18 +92,41 @@ %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT{%{_datadir}/%{name},%{_sysconfdir}/%{name},%{_bindir}} -install mk/linux/glest $RPM_BUILD_ROOT%{_bindir}/%{name} +install -d $RPM_BUILD_ROOT{%{_datadir}/%{name},%{_sysconfdir}/%{name},%{_bindir},%{_pixmapsdir},%{_desktopdir}} +install mk/linux/glest $RPM_BUILD_ROOT%{_bindir}/%{name}_game install mk/linux/glest.ini $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/glest.ini -ln -s %{_sysconfdir}/%{name}/%{name}.ini $RPM_BUILD_ROOT%{_datadir}/%{name}/%{name}.ini -ln -s %{_bindir}/%{name} $RPM_BUILD_ROOT%{_datadir}/%{name}/%{name} +#ln -s %{_sysconfdir}/%{name}/%{name}.ini $RPM_BUILD_ROOT%{_datadir}/%{name}/%{name}.ini +#ln -s %{_bindir}/%{name} $RPM_BUILD_ROOT%{_datadir}/%{name}/%{name} cd glest_game -install configuration.xml $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/configuration.xml -ln -s %{_sysconfdir}/%{name}/configuration.xml $RPM_BUILD_ROOT%{_datadir}/%{name}/configuration.xml -rm configuration.xml -rm glest.ini +#install configuration.xml $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/configuration.xml +#ln -s %{_sysconfdir}/%{name}/configuration.xml $RPM_BUILD_ROOT%{_datadir}/%{name}/configuration.xml +#rm configuration.xml +rm glest.* +rm -rf screens cp -r ./* $RPM_BUILD_ROOT%{_datadir}/%{name} install ../polish.lng $RPM_BUILD_ROOT%{_datadir}/%{name}/data/lang/ +install %{SOURCE18} $RPM_BUILD_ROOT%{_desktopdir} +install %{SOURCE19} $RPM_BUILD_ROOT%{_pixmapsdir} + +cat << 'EOF' > $RPM_BUILD_ROOT%{_bindir}/%{name} +#!/bin/sh + +if [ -n "${HOME_ETC}" ]; then + GLEST_HOME="${HOME_ETC}/.glest" +else + GLEST_HOME="${HOME}/.glest" +fi + +if [ ! -d "${GLEST_HOME}" ]; then + mkdir -p ${GLEST_HOME} + cp -a /etc/glest/* ${GLEST_HOME} +fi + +[ ! -d "${GLEST_HOME}/screens" ] && mkdir -p ${GLEST_HOME}/screens + +cd /usr/share/glest +/usr/bin/glest_game +EOF %clean rm -rf $RPM_BUILD_ROOT @@ -80,6 +137,8 @@ %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/* %attr(755,root,root) %{_bindir}/* %{_datadir}/%{name} +%{_desktopdir}/* +%{_pixmapsdir}/* %define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) %changelog @@ -87,6 +146,15 @@ All persons listed below can be reached at <cvs_login>@pld-linux.org $Log$ +Revision 1.10 2006/08/01 19:59:24 tommat +- more languages +- added polished polish translation patch +- added home_etc patch +- added wrapper that makes sure that home configs are initialized +- removed unnecessary files from game data dir +- added desktop file and icon +- rel 0.2 + Revision 1.9 2006/07/28 14:13:53 tommat - BR: dos2unix - adapterized ================================================================ ---- CVS-web: http://cvs.pld-linux.org/SPECS/glest.spec?r1=1.9&r2=1.10&f=u _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
