1 %define _version b9half
2 Summary: Game like Settlers II
3 Summary(pl.UTF-8): Remake gry Settlers II
8 Group: X11/Applications/Games
9 Source0: http://dl.sourceforge.net/widelands/%{name}-%{_version}-source.tar.bz2
10 # Source0-md5: 7bced82bda4b83d884da3e5b0143b2b4
11 Source1: %{name}.desktop
12 Patch0: %{name}-gcc4.patch
13 URL: http://widelands.sourceforge.net/
14 BuildRequires: SDL-devel
15 BuildRequires: SDL_image-devel
16 BuildRequires: SDL_mixer-devel
17 BuildRequires: SDL_net-devel
18 BuildRequires: SDL_ttf-devel
19 BuildRequires: libstdc++-devel
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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.
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ć.
44 %setup -q -n %{name}-%{_version}
51 CXXFLAGS="%{rpmcflags} -Isrc/ui/ui_basic -Isrc -Isrc/editor -Isrc/editor/ui_menus -Isrc/ui/ui_fs_menus -Isrc/editor/tools `sdl-config --cflags`" \
52 IMPLICIT_LIBINTL="YES"
55 rm -rf $RPM_BUILD_ROOT
56 install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/%{name},%{_desktopdir}}
58 install widelands $RPM_BUILD_ROOT%{_bindir}
59 cp -r campaigns fonts maps music pics sound tribes txts worlds $RPM_BUILD_ROOT%{_datadir}/%{name}
61 cp %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
64 rm -rf $RPM_BUILD_ROOT
67 %defattr(644,root,root,755)
69 %attr(755,root,root) %{_bindir}/widelands
71 %{_desktopdir}/widelands.desktop