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