]> git.pld-linux.org Git - packages/widelands.git/blob - widelands.spec
- up to Build14
[packages/widelands.git] / widelands.spec
1 #
2 # TODO:
3 # - translations
4 # - create bcond for ggz
5 # - could not find file or directory: pics/splash.jpg
6 #
7 %define         _build  14
8 Summary:        Game like Settlers II
9 Summary(pl.UTF-8):      Remake gry Settlers II
10 Name:           widelands
11 Version:        0.build%{_build}
12 Release:        0.1
13 License:        GPL v2+
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
29 BuildRequires:  p7zip
30 BuildRequires:  scons
31 BuildRequires:  sed >= 4.0
32 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33
34 %description
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.
43
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ć.
54
55 %prep
56 %setup -q -c -T -n %{name}
57 7z x -o.. %{SOURCE0}
58 %patch0 -p1
59 %{__sed} -i 's/framework-mt/framework/' SConstruct
60
61 %build
62 %scons -j 1 \
63         build="release" \
64         install_prefix="%{_prefix}" \
65         bindir="%{_bindir}" \
66         datadir="%{_datadir}/%{name}" \
67         enable_ggz="false"
68
69 %install
70 rm -rf $RPM_BUILD_ROOT
71
72 %scons install \
73         install_prefix=$RPM_BUILD_ROOT%{_prefix} \
74         bindir=$RPM_BUILD_ROOT%{_bindir} \
75         datadir=$RPM_BUILD_ROOT%{_datadir}/%{name}
76
77 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
78
79 install pics/wl-ico-128.png $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png
80 cp %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
81
82 %clean
83 rm -rf $RPM_BUILD_ROOT
84
85 %files
86 %defattr(644,root,root,755)
87 %doc ChangeLog
88 %attr(755,root,root) %{_bindir}/%{name}
89 %{_datadir}/%{name}
90 %{_desktopdir}/%{name}.desktop
91 %{_pixmapsdir}/%{name}.png
This page took 0.0514 seconds and 4 git commands to generate.