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