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