]> git.pld-linux.org Git - packages/widelands.git/blame - widelands.spec
- massive change ( validate errors warrings from desktop-file-validate)
[packages/widelands.git] / widelands.spec
CommitLineData
7764f64d 1#
2# TODO:
3# - translations
4#
68f512a6 5%define _build 11
325beb53 6Summary: Game like Settlers II
bf6aa356 7Summary(pl.UTF-8): Remake gry Settlers II
325beb53 8Name: widelands
68f512a6 9Version: 0.build%{_build}
10Release: 0.1
325beb53
AG
11License: GPL
12Group: X11/Applications/Games
68f512a6 13Source0: http://dl.sourceforge.net/widelands/%{name}-build-%{_build}-source.tar.bz2
14# Source0-md5: ad41d917f7895b6212009ac584178b55
325beb53
AG
15Source1: %{name}.desktop
16URL: http://widelands.sourceforge.net/
7764f64d 17BuildRequires: SDL-devel >= 1.2.11
68f512a6 18BuildRequires: SDL_gfx-devel
325beb53 19BuildRequires: SDL_image-devel
00129253 20BuildRequires: SDL_mixer-devel >= 1.2.7
325beb53 21BuildRequires: SDL_net-devel
7764f64d 22BuildRequires: SDL_ttf-devel >= 2.0.0
929f8735 23BuildRequires: libpng-devel
325beb53 24BuildRequires: libstdc++-devel
68f512a6 25BuildRequires: sed >= 4.0
325beb53
AG
26BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28%description
29In Widelands, you are the regent of a small tribe. You start out with
30nothing but your headquarters, a kind of castle in which all your
31resources are stored. Every member of your tribe will do his or her
32part to produce more resources - wood, food, iron, gold and more - to
33further this growth. But you are not alone in the world, and you will
34meet other tribes sooner or later. Some of them may be friendly and
35trade with you. However, if you want to rule the world, you will have
36to train soldiers and fight.
37
d71c4d09
JR
38%description -l pl.UTF-8
39W grze Widelands jesteś regentem niewielkiego plemienia. Rozpoczynasz
40grę tylko z kwaterą główną, czymś w rodzaju zamku, w której
41przechowywane są wszystkie Twoje zasoby. Każdy członek plemienia
42wykona swoje zadanie w procesie produkcji tychże zasobów - drewna,
43żywności, żelaza, złota i wielu innych - aby zapewnić rozwój. Jednak
44nie jesteś sam na tym świecie i wcześniej lub później będziesz musiał
45spotkać się z innymi plemionami. Niektóre z nich mogą być przyjaźnie
46nastawione i rozpocząć z Tobą handel. Jednak, jeśli chcesz rządzić
47światem, będziesz musiał wyszkolić żołnierzy i walczyć.
325beb53
AG
48
49%prep
67d976f1 50%setup -q -n %{name}
8671381a 51rm -f {campaigns,fonts,maps,music,pics,sound,tribes,txts,worlds}/SConscript
68f512a6 52# Fixing path
53find -type f "(" -name *.cc -or -name *.h ")" -exec sed -i \
54 -e 's|#include "filesystem.h"|#include "filesystem/filesystem.h"|g' \
55 -e 's|#include "layered_filesystem.h"|#include "filesystem/layered_filesystem.h"|g' \
56 -e 's|#include "zip_exceptions.h"|#include "filesystem/zip_exceptions.h"|g' \
57 -e 's|#include "zip_filesystem.h"|#include "filesystem/zip_filesystem.h"|g' \
58 "{}" ";"
59
325beb53
AG
60
61%build
62rm -f widelands
63%{__make} \
64 CXX="%{__cxx}" \
a0ca80ba
AG
65 CXXFLAGS="%{rpmcflags} -Isrc/ui/ui_basic -Isrc -Isrc/editor -Isrc/editor/ui_menus -Isrc/ui/ui_fs_menus -Isrc/editor/tools `sdl-config --cflags`" \
66 IMPLICIT_LIBINTL="YES"
325beb53
AG
67
68%install
69rm -rf $RPM_BUILD_ROOT
02c4ec8d 70install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/games/%{name},%{_desktopdir},%{_pixmapsdir}}
325beb53
AG
71
72install widelands $RPM_BUILD_ROOT%{_bindir}
7764f64d 73install pics/wl-logo-64.png $RPM_BUILD_ROOT%{_pixmapsdir}/widelands.png
02c4ec8d 74cp -r campaigns fonts maps music pics sound tribes txts worlds $RPM_BUILD_ROOT%{_datadir}/games/%{name}
325beb53
AG
75
76cp %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
77
78%clean
79rm -rf $RPM_BUILD_ROOT
80
81%files
82%defattr(644,root,root,755)
a0ca80ba 83%doc ChangeLog
325beb53 84%attr(755,root,root) %{_bindir}/widelands
02c4ec8d 85%{_datadir}/games/widelands
325beb53 86%{_desktopdir}/widelands.desktop
7764f64d 87%{_pixmapsdir}/widelands.png
This page took 1.02321 seconds and 4 git commands to generate.