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