]> git.pld-linux.org Git - packages/widelands.git/blame - widelands.spec
- files removed from BUILD should be removed in %prep section not in %install
[packages/widelands.git] / widelands.spec
CommitLineData
7764f64d 1#
2# TODO:
3# - translations
4#
67d976f1 5%define _version build10
325beb53 6Summary: Game like Settlers II
bf6aa356 7Summary(pl.UTF-8): Remake gry Settlers II
325beb53
AG
8Name: widelands
9Version: 0.%{_version}
7764f64d 10Release: 0.6
325beb53
AG
11License: GPL
12Group: X11/Applications/Games
13Source0: http://dl.sourceforge.net/widelands/%{name}-%{_version}-source.tar.bz2
67d976f1 14# Source0-md5: 9e452baf7b8f22a27b4e371e2150e017
325beb53
AG
15Source1: %{name}.desktop
16URL: http://widelands.sourceforge.net/
7764f64d 17BuildRequires: SDL-devel >= 1.2.11
325beb53 18BuildRequires: SDL_image-devel
00129253 19BuildRequires: SDL_mixer-devel >= 1.2.7
325beb53 20BuildRequires: SDL_net-devel
7764f64d 21BuildRequires: SDL_ttf-devel >= 2.0.0
929f8735 22BuildRequires: libpng-devel
325beb53
AG
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
d71c4d09
JR
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ć.
325beb53
AG
46
47%prep
67d976f1 48%setup -q -n %{name}
8671381a 49rm -f {campaigns,fonts,maps,music,pics,sound,tribes,txts,worlds}/SConscript
325beb53
AG
50
51%build
52rm -f widelands
53%{__make} \
54 CXX="%{__cxx}" \
a0ca80ba
AG
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"
325beb53
AG
57
58%install
59rm -rf $RPM_BUILD_ROOT
7764f64d 60install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/games/%{name},%{_desktopdir},%{_pixmapsdir}}
325beb53
AG
61
62install widelands $RPM_BUILD_ROOT%{_bindir}
7764f64d 63install pics/wl-logo-64.png $RPM_BUILD_ROOT%{_pixmapsdir}/widelands.png
67d976f1 64cp -r campaigns fonts maps music pics sound tribes txts worlds $RPM_BUILD_ROOT%{_datadir}/games/%{name}
325beb53
AG
65
66cp %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
67
68%clean
69rm -rf $RPM_BUILD_ROOT
70
71%files
72%defattr(644,root,root,755)
a0ca80ba 73%doc ChangeLog
325beb53 74%attr(755,root,root) %{_bindir}/widelands
67d976f1 75%{_datadir}/games/widelands
325beb53 76%{_desktopdir}/widelands.desktop
7764f64d 77%{_pixmapsdir}/widelands.png
This page took 0.13431 seconds and 4 git commands to generate.