]> git.pld-linux.org Git - packages/widelands.git/blame - widelands.spec
- notice merge in previous commit
[packages/widelands.git] / widelands.spec
CommitLineData
7764f64d 1#
2# TODO:
3# - translations
11907a39 4# - create bcond for ggz
5# - could not find file or directory: pics/splash.jpg
7764f64d 6#
11907a39 7%define _build 14
325beb53 8Summary: Game like Settlers II
bf6aa356 9Summary(pl.UTF-8): Remake gry Settlers II
325beb53 10Name: widelands
68f512a6 11Version: 0.build%{_build}
12Release: 0.1
11907a39 13License: GPL v2+
325beb53 14Group: X11/Applications/Games
11907a39 15Source0: http://dl.sourceforge.net/widelands/Widelands-Build%{_build}-src.7z
16# Source0-md5: 06d63783b82b68af7af26198bc0a5afa
325beb53 17Source1: %{name}.desktop
11907a39 18Patch0: %{name}-syntax.patch
325beb53 19URL: http://widelands.sourceforge.net/
7764f64d 20BuildRequires: SDL-devel >= 1.2.11
68f512a6 21BuildRequires: SDL_gfx-devel
325beb53 22BuildRequires: SDL_image-devel
00129253 23BuildRequires: SDL_mixer-devel >= 1.2.7
325beb53 24BuildRequires: SDL_net-devel
7764f64d 25BuildRequires: SDL_ttf-devel >= 2.0.0
bb198b26 26BuildRequires: boost-devel
929f8735 27BuildRequires: libpng-devel
325beb53 28BuildRequires: libstdc++-devel
11907a39 29BuildRequires: p7zip
bb198b26 30BuildRequires: scons
11907a39 31BuildRequires: sed >= 4.0
325beb53
AG
32BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33
34%description
35In Widelands, you are the regent of a small tribe. You start out with
36nothing but your headquarters, a kind of castle in which all your
37resources are stored. Every member of your tribe will do his or her
38part to produce more resources - wood, food, iron, gold and more - to
39further this growth. But you are not alone in the world, and you will
40meet other tribes sooner or later. Some of them may be friendly and
41trade with you. However, if you want to rule the world, you will have
42to train soldiers and fight.
43
d71c4d09
JR
44%description -l pl.UTF-8
45W grze Widelands jesteś regentem niewielkiego plemienia. Rozpoczynasz
46grę tylko z kwaterą główną, czymś w rodzaju zamku, w której
47przechowywane są wszystkie Twoje zasoby. Każdy członek plemienia
48wykona swoje zadanie w procesie produkcji tychże zasobów - drewna,
49żywności, żelaza, złota i wielu innych - aby zapewnić rozwój. Jednak
50nie jesteś sam na tym świecie i wcześniej lub później będziesz musiał
51spotkać się z innymi plemionami. Niektóre z nich mogą być przyjaźnie
52nastawione i rozpocząć z Tobą handel. Jednak, jeśli chcesz rządzić
53światem, będziesz musiał wyszkolić żołnierzy i walczyć.
325beb53
AG
54
55%prep
11907a39 56%setup -q -c -T -n %{name}
577z x -o.. %{SOURCE0}
58%patch0 -p1
59%{__sed} -i 's/framework-mt/framework/' SConstruct
325beb53
AG
60
61%build
11907a39 62%scons -j 1 \
63 build="release" \
64 install_prefix="%{_prefix}" \
65 bindir="%{_bindir}" \
66 datadir="%{_datadir}/%{name}" \
67 enable_ggz="false"
325beb53
AG
68
69%install
70rm -rf $RPM_BUILD_ROOT
325beb53 71
bb198b26 72%scons install \
73 install_prefix=$RPM_BUILD_ROOT%{_prefix} \
74 bindir=$RPM_BUILD_ROOT%{_bindir} \
75 datadir=$RPM_BUILD_ROOT%{_datadir}/%{name}
76
77install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
325beb53 78
bb198b26 79install pics/wl-ico-128.png $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png
80cp %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
325beb53
AG
81
82%clean
83rm -rf $RPM_BUILD_ROOT
84
85%files
86%defattr(644,root,root,755)
a0ca80ba 87%doc ChangeLog
bb198b26 88%attr(755,root,root) %{_bindir}/%{name}
89%{_datadir}/%{name}
90%{_desktopdir}/%{name}.desktop
91%{_pixmapsdir}/%{name}.png
This page took 0.165992 seconds and 4 git commands to generate.