]> git.pld-linux.org Git - packages/widelands.git/blob - widelands.spec
- include music/ sound/ and txts/ dirs too (crashes on SDL though)
[packages/widelands.git] / widelands.spec
1 %define         _version        b9half
2 Summary:        Game like Settlers II
3 Summary(pl):    Remake gry Settlers II
4 Name:           widelands
5 Version:        0.%{_version}
6 Release:        0.2
7 License:        GPL
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 URL:            http://widelands.sourceforge.net/
13 BuildRequires:  SDL-devel
14 BuildRequires:  SDL_image-devel
15 BuildRequires:  SDL_net-devel
16 BuildRequires:  SDL_ttf-devel
17 BuildRequires:  libstdc++-devel
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %description
21 In Widelands, you are the regent of a small tribe. You start out with
22 nothing but your headquarters, a kind of castle in which all your
23 resources are stored. Every member of your tribe will do his or her
24 part to produce more resources - wood, food, iron, gold and more - to
25 further this growth. But you are not alone in the world, and you will
26 meet other tribes sooner or later. Some of them may be friendly and
27 trade with you. However, if you want to rule the world, you will have
28 to train soldiers and fight.
29
30 %description -l pl
31 W grze Widelands jeste¶ regentem niewielkiego plemienia. Rozpoczynasz
32 grê tylko z kwater± g³ówn±, czym¶ w rodzaju zamku, w której
33 przechowywane s± wszystkie Twoje zasoby. Ka¿dy cz³onek plemienia
34 wykona swoje zadanie w procesie produkcji tych¿e zasobów - drewna,
35 ¿ywno¶ci, ¿elaza, z³ota i wielu innych - aby zapewniæ rozwój. Jednak
36 nie jeste¶ sam na tym ¶wiecie i wcze¶niej lub pó¼niej bêdziesz musia³
37 spotkaæ siê z innymi plemionami. Niektóre z nich mog± byæ przyja¼nie
38 nastawione i rozpocz±æ z Tob± handel. Jednak, je¶li chcesz rz±dziæ
39 ¶wiatem, bêdziesz musia³ wyszkoliæ ¿o³nierzy i walczyæ.
40
41 %prep
42 %setup -q -n %{name}-%{_version}
43
44 %build
45 rm -f widelands
46 %{__make} \
47         CXX="%{__cxx}" \
48         CXXFLAGS="%{rpmcflags} -Isrc/ui/ui_basic -Isrc -Isrc/editor -Isrc/editor/ui_menus -Isrc/ui/ui_fs_menus -Isrc/editor/tools `sdl-config --cflags`" \
49         IMPLICIT_LIBINTL="YES"
50
51 %install
52 rm -rf $RPM_BUILD_ROOT
53 install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/%{name},%{_desktopdir}}
54
55 install widelands $RPM_BUILD_ROOT%{_bindir}
56 cp -r campaigns fonts maps music pics sound tribes txts worlds $RPM_BUILD_ROOT%{_datadir}/%{name}
57
58 cp %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
59
60 %clean
61 rm -rf $RPM_BUILD_ROOT
62
63 %files
64 %defattr(644,root,root,755)
65 %doc ChangeLog
66 %attr(755,root,root) %{_bindir}/widelands
67 %{_datadir}/widelands
68 %{_desktopdir}/widelands.desktop
This page took 0.108073 seconds and 4 git commands to generate.