]> git.pld-linux.org Git - packages/widelands.git/commitdiff
- up to Build14
authorlisu <lisu@pld-linux.org>
Tue, 29 Sep 2009 14:37:34 +0000 (14:37 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- .7z package
- doesn't work (TODO)

Changed files:
    widelands.spec -> 1.21

widelands.spec

index 078973e17a1c67bfa534b07fbe585acb5c645d1c..fc3fa19883a141295982437312d86e9489db8367 100644 (file)
@@ -1,18 +1,21 @@
 #
 # TODO:
 # - translations
+# - create bcond for ggz
+# - could not find file or directory: pics/splash.jpg
 #
-%define                _build  13
+%define                _build  14
 Summary:       Game like Settlers II
 Summary(pl.UTF-8):     Remake gry Settlers II
 Name:          widelands
 Version:       0.build%{_build}
 Release:       0.1
-License:       GPL
+License:       GPL v2+
 Group:         X11/Applications/Games
-Source0:       http://dl.sourceforge.net/widelands/Widelands-Build%{_build}-src.tar.bz2
-# Source0-md5: 5e39f80b668d303abf693c48afa0c4bc
+Source0:       http://dl.sourceforge.net/widelands/Widelands-Build%{_build}-src.7z
+# Source0-md5: 06d63783b82b68af7af26198bc0a5afa
 Source1:       %{name}.desktop
+Patch0:                %{name}-syntax.patch
 URL:           http://widelands.sourceforge.net/
 BuildRequires: SDL-devel >= 1.2.11
 BuildRequires: SDL_gfx-devel
@@ -23,7 +26,9 @@ BuildRequires:        SDL_ttf-devel >= 2.0.0
 BuildRequires: boost-devel
 BuildRequires: libpng-devel
 BuildRequires: libstdc++-devel
+BuildRequires: p7zip
 BuildRequires: scons
+BuildRequires: sed >= 4.0
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -48,13 +53,18 @@ nastawione i rozpocząć z Tobą handel. Jednak, jeśli chcesz rządzić
 światem, będziesz musiał wyszkolić żołnierzy i walczyć.
 
 %prep
-%setup -q -n %{name}-b%{_build}
+%setup -q -c -T -n %{name}
+7z x -o.. %{SOURCE0}
+%patch0 -p1
+%{__sed} -i 's/framework-mt/framework/' SConstruct
 
 %build
-%scons \
-       install_prefix=%{_prefix} \
-       bindir=%{_bindir} \
-       datadir=%{_datadir}/%{name}
+%scons -j 1 \
+       build="release" \
+       install_prefix="%{_prefix}" \
+       bindir="%{_bindir}" \
+       datadir="%{_datadir}/%{name}" \
+       enable_ggz="false"
 
 %install
 rm -rf $RPM_BUILD_ROOT
This page took 0.40163 seconds and 4 git commands to generate.