]>
Commit | Line | Data |
---|---|---|
7764f64d | 1 | # |
2 | # TODO: | |
3 | # - translations | |
4 | # | |
66fcbec9 | 5 | %define _build 13 |
325beb53 | 6 | Summary: Game like Settlers II |
bf6aa356 | 7 | Summary(pl.UTF-8): Remake gry Settlers II |
325beb53 | 8 | Name: widelands |
68f512a6 | 9 | Version: 0.build%{_build} |
10 | Release: 0.1 | |
325beb53 AG |
11 | License: GPL |
12 | Group: X11/Applications/Games | |
66fcbec9 AG |
13 | Source0: http://dl.sourceforge.net/widelands/Widelands-Build%{_build}-src.tar.bz2 |
14 | # Source0-md5: 5e39f80b668d303abf693c48afa0c4bc | |
325beb53 AG |
15 | Source1: %{name}.desktop |
16 | URL: http://widelands.sourceforge.net/ | |
7764f64d | 17 | BuildRequires: SDL-devel >= 1.2.11 |
68f512a6 | 18 | BuildRequires: SDL_gfx-devel |
325beb53 | 19 | BuildRequires: SDL_image-devel |
00129253 | 20 | BuildRequires: SDL_mixer-devel >= 1.2.7 |
325beb53 | 21 | BuildRequires: SDL_net-devel |
7764f64d | 22 | BuildRequires: SDL_ttf-devel >= 2.0.0 |
bb198b26 | 23 | BuildRequires: boost-devel |
929f8735 | 24 | BuildRequires: libpng-devel |
325beb53 | 25 | BuildRequires: libstdc++-devel |
bb198b26 | 26 | BuildRequires: scons |
325beb53 AG |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
28 | ||
29 | %description | |
30 | In Widelands, you are the regent of a small tribe. You start out with | |
31 | nothing but your headquarters, a kind of castle in which all your | |
32 | resources are stored. Every member of your tribe will do his or her | |
33 | part to produce more resources - wood, food, iron, gold and more - to | |
34 | further this growth. But you are not alone in the world, and you will | |
35 | meet other tribes sooner or later. Some of them may be friendly and | |
36 | trade with you. However, if you want to rule the world, you will have | |
37 | to train soldiers and fight. | |
38 | ||
d71c4d09 JR |
39 | %description -l pl.UTF-8 |
40 | W grze Widelands jesteś regentem niewielkiego plemienia. Rozpoczynasz | |
41 | grę tylko z kwaterą główną, czymś w rodzaju zamku, w której | |
42 | przechowywane są wszystkie Twoje zasoby. Każdy członek plemienia | |
43 | wykona swoje zadanie w procesie produkcji tychże zasobów - drewna, | |
44 | żywności, żelaza, złota i wielu innych - aby zapewnić rozwój. Jednak | |
45 | nie jesteś sam na tym świecie i wcześniej lub później będziesz musiał | |
46 | spotkać się z innymi plemionami. Niektóre z nich mogą być przyjaźnie | |
47 | nastawione i rozpocząć z Tobą handel. Jednak, jeśli chcesz rządzić | |
48 | światem, będziesz musiał wyszkolić żołnierzy i walczyć. | |
325beb53 AG |
49 | |
50 | %prep | |
66fcbec9 | 51 | %setup -q -n %{name}-b%{_build} |
325beb53 AG |
52 | |
53 | %build | |
bb198b26 | 54 | %scons \ |
55 | install_prefix=%{_prefix} \ | |
56 | bindir=%{_bindir} \ | |
57 | datadir=%{_datadir}/%{name} | |
325beb53 AG |
58 | |
59 | %install | |
60 | rm -rf $RPM_BUILD_ROOT | |
325beb53 | 61 | |
bb198b26 | 62 | %scons install \ |
63 | install_prefix=$RPM_BUILD_ROOT%{_prefix} \ | |
64 | bindir=$RPM_BUILD_ROOT%{_bindir} \ | |
65 | datadir=$RPM_BUILD_ROOT%{_datadir}/%{name} | |
66 | ||
67 | install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}} | |
325beb53 | 68 | |
bb198b26 | 69 | install pics/wl-ico-128.png $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png |
70 | cp %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop | |
325beb53 AG |
71 | |
72 | %clean | |
73 | rm -rf $RPM_BUILD_ROOT | |
74 | ||
75 | %files | |
76 | %defattr(644,root,root,755) | |
a0ca80ba | 77 | %doc ChangeLog |
bb198b26 | 78 | %attr(755,root,root) %{_bindir}/%{name} |
79 | %{_datadir}/%{name} | |
80 | %{_desktopdir}/%{name}.desktop | |
81 | %{_pixmapsdir}/%{name}.png |