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