packages: widelands/widelands.spec - up to build15 (merge from DEVEL) - rel...

arvenil arvenil at pld-linux.org
Sat Apr 17 17:53:51 CEST 2010


Author: arvenil                      Date: Sat Apr 17 15:53:51 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- up to build15 (merge from DEVEL)
- release 1

---- Files affected:
packages/widelands:
   widelands.spec (1.24 -> 1.25) 

---- Diffs:

================================================================
Index: packages/widelands/widelands.spec
diff -u packages/widelands/widelands.spec:1.24 packages/widelands/widelands.spec:1.25
--- packages/widelands/widelands.spec:1.24	Tue Nov 17 21:19:11 2009
+++ packages/widelands/widelands.spec	Sat Apr 17 17:53:46 2010
@@ -3,18 +3,18 @@
 # TODO:
 # - create bcond for ggz
 #
-%define		buildver	14
+%define		buildver	15
 Summary:	Game like Settlers II
 Summary(pl.UTF-8):	Remake gry Settlers II
 Name:		widelands
 Version:	0.build%{buildver}
-Release:	0.6
+Release:	1
 License:	GPL v2+
 Group:		X11/Applications/Games
-Source0:	http://dl.sourceforge.net/widelands/Widelands-Build%{buildver}-src.7z
-# Source0-md5:	06d63783b82b68af7af26198bc0a5afa
+Source0:	http://launchpad.net/widelands/build%{buildver}/build%{buildver}/+download/%{name}-build%{buildver}-src.tar.bz2
+# Source0-md5:	5b2e2d0913272f66055e424f91360b1d
 Source1:	%{name}.desktop
-#Patch0:		%{name}-syntax.patch
+Patch0:		%{name}-locale.patch
 URL:		http://widelands.sourceforge.net/
 BuildRequires:	OpenGL-GLU-devel
 BuildRequires:	OpenGL-devel
@@ -25,12 +25,12 @@
 BuildRequires:	SDL_net-devel
 BuildRequires:	SDL_ttf-devel >= 2.0.0
 BuildRequires:	boost-devel >= 1.35
+BuildRequires:	cmake
 BuildRequires:	gettext-devel
+BuildRequires:	libjpeg-devel
 BuildRequires:	libpng-devel
 BuildRequires:	libstdc++-devel
-BuildRequires:	p7zip
-BuildRequires:	scons
-BuildRequires:	sed >= 4.0
+BuildRequires:	libtiff-devel
 Requires:	SDL_image >= 1.2.10
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -56,36 +56,30 @@
 światem, będziesz musiał wyszkolić żołnierzy i walczyć.
 
 %prep
-%setup -q -c -T -n %{name}
-7z x -o.. %{SOURCE0}
-#%%patch0 -p1
-#%{__sed} -i 's/framework-mt/framework/' SConstruct
-
-%{__sed} -i '/env.strip=1/d' build/scons-tools/scons_configure.py
+%setup -q -n %{name}-build%{buildver}-src
+%patch0 -p1
 
 %build
-%scons \
-	cxx="%{__cxx}" \
-	cc="%{__cc}" \
-	extra_compile_flags="%{rpmcxxflags} -O0" \
-	extra_link_flags="%{rpmcxxflags} %{rpmldflags}" \
-	build="release" \
-	pretty_compile_output="false" \
-	install_prefix="" \
-	bindir="%{_bindir}" \
-	datadir="%{_datadir}/games/%{name}" \
-	localedir="%{_datadir}/games/%{name}/locale" \
-	enable_ggz="false"
+install -d build
+cd build
+%cmake \
+	-DCMAKE_BUILD_TYPE=%{!?debug:Release}%{?debug:Debug} \
+	-DCMAKE_INSTALL_PREFIX=%{_prefix} \
+	-DWL_INSTALL_BINDIR=%{_bindir} \
+	-DWL_INSTALL_DATADIR=%{_datadir}/games/%{name} \
+	-DWL_INSTALL_LOCALEDIR=%{_datadir}/games/%{name}/locale \
+%if "%{_lib}" == "lib64"
+	-DLIB_SUFFIX=64 \
+%endif
+	..
+
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%{__scons} install \
-	build="release" \
-	install_prefix="$RPM_BUILD_ROOT%{_prefix}" \
-	bindir="$RPM_BUILD_ROOT%{_bindir}" \
-	datadir="$RPM_BUILD_ROOT%{_datadir}/games/%{name}" \
-	localedir="$RPM_BUILD_ROOT%{_datadir}/games/%{name}/locale" \
+%{__make} -C build install \
+	DESTDIR=$RPM_BUILD_ROOT
 
 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
 
@@ -112,21 +106,35 @@
 %{_datadir}/games/%{name}/txts
 %{_datadir}/games/%{name}/worlds
 %dir %{_datadir}/games/%{name}/locale
-%lang(cs) %{_datadir}/games/%{name}/locale/cs_CZ
-%lang(da) %{_datadir}/games/%{name}/locale/da_DK
-%lang(de) %{_datadir}/games/%{name}/locale/de_DE
-%lang(es) %{_datadir}/games/%{name}/locale/es_ES
-%lang(fi) %{_datadir}/games/%{name}/locale/fi_FI
-%lang(fr) %{_datadir}/games/%{name}/locale/fr_FR
-%lang(gl) %{_datadir}/games/%{name}/locale/gl_ES
-%lang(he) %{_datadir}/games/%{name}/locale/he_HE
-%lang(hu) %{_datadir}/games/%{name}/locale/hu_HU
-%lang(it) %{_datadir}/games/%{name}/locale/it_IT
-%lang(nl) %{_datadir}/games/%{name}/locale/nl_NL
-%lang(pl) %{_datadir}/games/%{name}/locale/pl_PL
-%lang(ru) %{_datadir}/games/%{name}/locale/ru_RU
-%lang(sk) %{_datadir}/games/%{name}/locale/sk_SK
-%lang(sv) %{_datadir}/games/%{name}/locale/sv_SE
+%lang(ar) %{_datadir}/games/%{name}/locale/ar
+%lang(ca) %{_datadir}/games/%{name}/locale/ca
+%lang(cs) %{_datadir}/games/%{name}/locale/cs
+%lang(da) %{_datadir}/games/%{name}/locale/da
+%lang(de) %{_datadir}/games/%{name}/locale/de
+%lang(en_GB) %{_datadir}/games/%{name}/locale/en_GB
+%lang(eo) %{_datadir}/games/%{name}/locale/eo
+%lang(es) %{_datadir}/games/%{name}/locale/es
+%lang(eu) %{_datadir}/games/%{name}/locale/eu
+%lang(fi) %{_datadir}/games/%{name}/locale/fi
+%lang(fr) %{_datadir}/games/%{name}/locale/fr
+%lang(gl) %{_datadir}/games/%{name}/locale/gl
+%lang(he) %{_datadir}/games/%{name}/locale/he
+%lang(hu) %{_datadir}/games/%{name}/locale/hu
+%lang(ia) %{_datadir}/games/%{name}/locale/ia
+%lang(id) %{_datadir}/games/%{name}/locale/id
+%lang(it) %{_datadir}/games/%{name}/locale/it
+%lang(ja) %{_datadir}/games/%{name}/locale/ja
+%lang(la) %{_datadir}/games/%{name}/locale/la
+%lang(nl) %{_datadir}/games/%{name}/locale/nl
+%lang(nn) %{_datadir}/games/%{name}/locale/nn
+%lang(pl) %{_datadir}/games/%{name}/locale/pl
+%lang(pt_BR) %{_datadir}/games/%{name}/locale/pt_BR
+%lang(ru) %{_datadir}/games/%{name}/locale/ru
+%lang(si) %{_datadir}/games/%{name}/locale/si
+%lang(sk) %{_datadir}/games/%{name}/locale/sk
+%lang(sl) %{_datadir}/games/%{name}/locale/sl
+%lang(sr) %{_datadir}/games/%{name}/locale/sr
+%lang(sv) %{_datadir}/games/%{name}/locale/sv
 %{_desktopdir}/%{name}.desktop
 %{_pixmapsdir}/%{name}.png
 
@@ -136,6 +144,27 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.25  2010/04/17 15:53:46  arvenil
+- up to build15 (merge from DEVEL)
+- release 1
+
+Revision 1.24.2.3  2010/04/17 15:45:55  arvenil
+- up to build 15
+- added -locale.patch for fix translations
+- BR: libjpeg-devel
+- BR: libtiff-devel
+- rm BR: p7zip
+- clean up
+
+Revision 1.24.2.2  2010/04/12 12:20:28  lisu
+- proper rel
+- TODO
+
+Revision 1.24.2.1  2010/04/12 12:19:25  lisu
+- up to widelands-build15-rc2
+- switch to cmake build system
+- more translations
+
 Revision 1.24  2009/11/17 20:19:11  zbyniu
 - missing BRs
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/widelands/widelands.spec?r1=1.24&r2=1.25&f=u



More information about the pld-cvs-commit mailing list