]> git.pld-linux.org Git - packages/widelands.git/blame - widelands.spec
- up to build 15
[packages/widelands.git] / widelands.spec
CommitLineData
7764f64d 1#
2# TODO:
11907a39 3# - create bcond for ggz
7764f64d 4#
48449069 5%define buildver 14
325beb53 6Summary: Game like Settlers II
bf6aa356 7Summary(pl.UTF-8): Remake gry Settlers II
325beb53 8Name: widelands
48449069 9Version: 0.build%{buildver}
10Release: 0.6
11907a39 11License: GPL v2+
325beb53 12Group: X11/Applications/Games
48449069 13Source0: http://dl.sourceforge.net/widelands/Widelands-Build%{buildver}-src.7z
11907a39 14# Source0-md5: 06d63783b82b68af7af26198bc0a5afa
325beb53 15Source1: %{name}.desktop
48449069 16#Patch0: %{name}-syntax.patch
325beb53 17URL: http://widelands.sourceforge.net/
eaf6bd51 18BuildRequires: OpenGL-GLU-devel
19BuildRequires: OpenGL-devel
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
48449069 26BuildRequires: boost-devel >= 1.35
eaf6bd51 27BuildRequires: gettext-devel
929f8735 28BuildRequires: libpng-devel
325beb53 29BuildRequires: libstdc++-devel
11907a39 30BuildRequires: p7zip
bb198b26 31BuildRequires: scons
11907a39 32BuildRequires: sed >= 4.0
48449069 33Requires: SDL_image >= 1.2.10
325beb53
AG
34BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35
36%description
37In Widelands, you are the regent of a small tribe. You start out with
38nothing but your headquarters, a kind of castle in which all your
39resources are stored. Every member of your tribe will do his or her
40part to produce more resources - wood, food, iron, gold and more - to
41further this growth. But you are not alone in the world, and you will
42meet other tribes sooner or later. Some of them may be friendly and
43trade with you. However, if you want to rule the world, you will have
44to train soldiers and fight.
45
d71c4d09
JR
46%description -l pl.UTF-8
47W grze Widelands jesteś regentem niewielkiego plemienia. Rozpoczynasz
48grę tylko z kwaterą główną, czymś w rodzaju zamku, w której
49przechowywane są wszystkie Twoje zasoby. Każdy członek plemienia
50wykona swoje zadanie w procesie produkcji tychże zasobów - drewna,
51żywności, żelaza, złota i wielu innych - aby zapewnić rozwój. Jednak
52nie jesteś sam na tym świecie i wcześniej lub później będziesz musiał
53spotkać się z innymi plemionami. Niektóre z nich mogą być przyjaźnie
54nastawione i rozpocząć z Tobą handel. Jednak, jeśli chcesz rządzić
55światem, będziesz musiał wyszkolić żołnierzy i walczyć.
325beb53
AG
56
57%prep
11907a39 58%setup -q -c -T -n %{name}
597z x -o.. %{SOURCE0}
48449069 60#%%patch0 -p1
61#%{__sed} -i 's/framework-mt/framework/' SConstruct
62
63%{__sed} -i '/env.strip=1/d' build/scons-tools/scons_configure.py
325beb53
AG
64
65%build
48449069 66%scons \
67 cxx="%{__cxx}" \
68 cc="%{__cc}" \
69 extra_compile_flags="%{rpmcxxflags} -O0" \
70 extra_link_flags="%{rpmcxxflags} %{rpmldflags}" \
11907a39 71 build="release" \
48449069 72 pretty_compile_output="false" \
73 install_prefix="" \
11907a39 74 bindir="%{_bindir}" \
48449069 75 datadir="%{_datadir}/games/%{name}" \
76 localedir="%{_datadir}/games/%{name}/locale" \
11907a39 77 enable_ggz="false"
325beb53
AG
78
79%install
80rm -rf $RPM_BUILD_ROOT
325beb53 81
48449069 82%{__scons} install \
83 build="release" \
84 install_prefix="$RPM_BUILD_ROOT%{_prefix}" \
85 bindir="$RPM_BUILD_ROOT%{_bindir}" \
86 datadir="$RPM_BUILD_ROOT%{_datadir}/games/%{name}" \
87 localedir="$RPM_BUILD_ROOT%{_datadir}/games/%{name}/locale" \
bb198b26 88
89install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
325beb53 90
bb198b26 91install pics/wl-ico-128.png $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png
92cp %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
325beb53
AG
93
94%clean
95rm -rf $RPM_BUILD_ROOT
96
97%files
98%defattr(644,root,root,755)
48449069 99%doc ChangeLog CREDITS
bb198b26 100%attr(755,root,root) %{_bindir}/%{name}
48449069 101%dir %{_datadir}/games/%{name}
102%{_datadir}/games/%{name}/VERSION
103%{_datadir}/games/%{name}/campaigns
104%{_datadir}/games/%{name}/fonts
105%{_datadir}/games/%{name}/global
106%{_datadir}/games/%{name}/maps
107%{_datadir}/games/%{name}/music
108%{_datadir}/games/%{name}/pics
109%{_datadir}/games/%{name}/sound
110%{_datadir}/games/%{name}/tribes
111%{_datadir}/games/%{name}/txts
112%{_datadir}/games/%{name}/worlds
113%dir %{_datadir}/games/%{name}/locale
114%lang(cs) %{_datadir}/games/%{name}/locale/cs_CZ
115%lang(da) %{_datadir}/games/%{name}/locale/da_DK
116%lang(de) %{_datadir}/games/%{name}/locale/de_DE
117%lang(es) %{_datadir}/games/%{name}/locale/es_ES
118%lang(fi) %{_datadir}/games/%{name}/locale/fi_FI
119%lang(fr) %{_datadir}/games/%{name}/locale/fr_FR
120%lang(gl) %{_datadir}/games/%{name}/locale/gl_ES
121%lang(he) %{_datadir}/games/%{name}/locale/he_HE
122%lang(hu) %{_datadir}/games/%{name}/locale/hu_HU
123%lang(it) %{_datadir}/games/%{name}/locale/it_IT
124%lang(nl) %{_datadir}/games/%{name}/locale/nl_NL
125%lang(pl) %{_datadir}/games/%{name}/locale/pl_PL
126%lang(ru) %{_datadir}/games/%{name}/locale/ru_RU
127%lang(sk) %{_datadir}/games/%{name}/locale/sk_SK
128%lang(sv) %{_datadir}/games/%{name}/locale/sv_SE
bb198b26 129%{_desktopdir}/%{name}.desktop
130%{_pixmapsdir}/%{name}.png
This page took 0.110453 seconds and 4 git commands to generate.