4 # - create bcond for ggz
5 # - could not find file or directory: pics/splash.jpg
8 Summary: Game like Settlers II
9 Summary(pl.UTF-8): Remake gry Settlers II
11 Version: 0.build%{_build}
14 Group: X11/Applications/Games
15 Source0: http://dl.sourceforge.net/widelands/Widelands-Build%{_build}-src.7z
16 # Source0-md5: 06d63783b82b68af7af26198bc0a5afa
17 Source1: %{name}.desktop
18 Patch0: %{name}-syntax.patch
19 URL: http://widelands.sourceforge.net/
20 BuildRequires: SDL-devel >= 1.2.11
21 BuildRequires: SDL_gfx-devel
22 BuildRequires: SDL_image-devel
23 BuildRequires: SDL_mixer-devel >= 1.2.7
24 BuildRequires: SDL_net-devel
25 BuildRequires: SDL_ttf-devel >= 2.0.0
26 BuildRequires: boost-devel
27 BuildRequires: libpng-devel
28 BuildRequires: libstdc++-devel
31 BuildRequires: sed >= 4.0
32 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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.
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ć.
56 %setup -q -c -T -n %{name}
59 %{__sed} -i 's/framework-mt/framework/' SConstruct
64 install_prefix="%{_prefix}" \
66 datadir="%{_datadir}/%{name}" \
70 rm -rf $RPM_BUILD_ROOT
73 install_prefix=$RPM_BUILD_ROOT%{_prefix} \
74 bindir=$RPM_BUILD_ROOT%{_bindir} \
75 datadir=$RPM_BUILD_ROOT%{_datadir}/%{name}
77 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
79 install pics/wl-ico-128.png $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png
80 cp %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
83 rm -rf $RPM_BUILD_ROOT
86 %defattr(644,root,root,755)
88 %attr(755,root,root) %{_bindir}/%{name}
90 %{_desktopdir}/%{name}.desktop
91 %{_pixmapsdir}/%{name}.png