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