]>
Commit | Line | Data |
---|---|---|
7764f64d | 1 | # |
2 | # TODO: | |
3 | # - translations | |
4 | # | |
67d976f1 | 5 | %define _version build10 |
325beb53 | 6 | Summary: Game like Settlers II |
bf6aa356 | 7 | Summary(pl.UTF-8): Remake gry Settlers II |
325beb53 AG |
8 | Name: widelands |
9 | Version: 0.%{_version} | |
7764f64d | 10 | Release: 0.6 |
325beb53 AG |
11 | License: GPL |
12 | Group: X11/Applications/Games | |
13 | Source0: http://dl.sourceforge.net/widelands/%{name}-%{_version}-source.tar.bz2 | |
67d976f1 | 14 | # Source0-md5: 9e452baf7b8f22a27b4e371e2150e017 |
325beb53 AG |
15 | Source1: %{name}.desktop |
16 | URL: http://widelands.sourceforge.net/ | |
7764f64d | 17 | BuildRequires: SDL-devel >= 1.2.11 |
325beb53 | 18 | BuildRequires: SDL_image-devel |
00129253 | 19 | BuildRequires: SDL_mixer-devel >= 1.2.7 |
325beb53 | 20 | BuildRequires: SDL_net-devel |
7764f64d | 21 | BuildRequires: SDL_ttf-devel >= 2.0.0 |
929f8735 | 22 | BuildRequires: libpng-devel |
325beb53 AG |
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 | ||
d71c4d09 JR |
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ć. | |
325beb53 AG |
46 | |
47 | %prep | |
67d976f1 | 48 | %setup -q -n %{name} |
8671381a | 49 | rm -f {campaigns,fonts,maps,music,pics,sound,tribes,txts,worlds}/SConscript |
325beb53 AG |
50 | |
51 | %build | |
52 | rm -f widelands | |
53 | %{__make} \ | |
54 | CXX="%{__cxx}" \ | |
a0ca80ba AG |
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" | |
325beb53 AG |
57 | |
58 | %install | |
59 | rm -rf $RPM_BUILD_ROOT | |
7764f64d | 60 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/games/%{name},%{_desktopdir},%{_pixmapsdir}} |
325beb53 AG |
61 | |
62 | install widelands $RPM_BUILD_ROOT%{_bindir} | |
7764f64d | 63 | install pics/wl-logo-64.png $RPM_BUILD_ROOT%{_pixmapsdir}/widelands.png |
67d976f1 | 64 | cp -r campaigns fonts maps music pics sound tribes txts worlds $RPM_BUILD_ROOT%{_datadir}/games/%{name} |
325beb53 AG |
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) | |
a0ca80ba | 73 | %doc ChangeLog |
325beb53 | 74 | %attr(755,root,root) %{_bindir}/widelands |
67d976f1 | 75 | %{_datadir}/games/widelands |
325beb53 | 76 | %{_desktopdir}/widelands.desktop |
7764f64d | 77 | %{_pixmapsdir}/widelands.png |