]> git.pld-linux.org Git - packages/warsow.git/blame - warsow.spec
- splitted into warsow and warsow-data subpackages/specs
[packages/warsow.git] / warsow.spec
CommitLineData
4aaa0e55 1# TODO: - doesn't build without server and without client
b77ad084 2# - install binaries depending on architecture to better place (now they are stored in /usr/bin)
481b259d 3#
4aaa0e55 4# Conditional build:
5%bcond_without client # build without client
6%bcond_without openal # build without openal support
7%bcond_without qf # build without qf support
8%bcond_without server # build without server
9#
481b259d 10Summary: A Fast Paced FPS Game
8218f369 11Summary(pl.UTF-8): Szybko tocząca się gra FPS
481b259d 12Name: warsow
107e1d99 13Version: 0.5
85d74966 14Release: 0.2
8218f369 15License: GPL v2+
481b259d 16Group: X11/Applications/Games
17Source0: http://data.rodix.free.fr/warsow/files/%{name}_%{version}_sdk.zip
107e1d99 18# Source0-md5: acd0244435cc63967b0eb3468c21c454
481b259d 19Patch0: %{name}-flags.patch
20Patch1: %{name}-dirs.patch
85d74966
KK
21Patch2: %{name}-gentoo_fixes.patch
22Patch3: %{name}-libjpeg.patch
23Patch4: %{name}-xincludes.patch
24Patch5: %{name}-pic.patch
481b259d 25URL: http://www.warsow.net/
4aaa0e55 26%{?with_openal:BuildRequires: OpenAL-devel}
27%{?with_qf:BuildRequires: SDL-devel}
cf409ece 28BuildRequires: curl-devel
29BuildRequires: libjpeg-devel
4aaa0e55 30%{?with_qf:BuildRequires: libvorbis-devel}
481b259d 31BuildRequires: unzip
8218f369
JB
32BuildRequires: xorg-lib-libX11-devel
33BuildRequires: xorg-lib-libXext-devel
cf409ece 34BuildRequires: xorg-lib-libXinerama-devel
107e1d99 35BuildRequires: xorg-lib-libXxf86dga-devel
cf409ece 36BuildRequires: xorg-lib-libXxf86vm-devel
37BuildRequires: zlib-devel
85d74966 38Requires: %{name}-data = %{version}
481b259d 39BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40
41%description
42Warsow is a standalone first person shooter for Windows and Linux. It
43is under the GPL and based on the 3D Engine Qfusion (a modification of
44Quake 2's engine). It offers eSport oriented FPS, fast-paced gameplay
45focused on trix (trick jumps) and the art of move. It offers a
46complete Power-up System including Weak and Strong fire mode for each
47weapon. The graphics are in a cartoonish style with
48celshading-like_but_not_Manga style, mixing dark, flashy and dirty
49textures, matching the action full of fun and speed. The game got some
50of its inspiration from titles like Quakeworld, Quake3 CPMA, Jet Set
51Radio or Speedball.
52
8218f369
JB
53%description -l pl.UTF-8
54Warsow to samodzielna strzelanina FPS dla Windows i Linuksa. Została
55wydana na licencji GPL i jest oparta na silniku 3D Qfusion
56(modyfikacji silnika z Quake 2). Oferuje sportowo zorientowany FPS,
57szybko toczącą się grę skupioną na triksach (trick jumps) oraz sztukę
58poruszania. Zawiera kompletny system broni z trybem słabego i silnego
59ognia. Grafika jest utrzymana w stylu rysunkowym, ale nie Mangi,
60łączącym ciemne, błyskające i brudne tekstury, pasujące do akcji
61pełnej zabawy i szybkości. Gra została częściowo zainspirowana
62tytułami takimi jak Quakeworld, Quake3 CPMA, Jet Set Radio czy
63Speedball.
64
481b259d 65%prep
8218f369 66%setup -q -c
85d74966
KK
67#%%patch0 -p1
68#%%patch1 -p1
69%patch2 -p0
70%patch3 -p1
71%patch4 -p1
72%patch5 -p0
481b259d 73
74%build
85d74966 75%{__make} -C source/ -j1
481b259d 76 CC="%{__cc}" \
13c33ffc 77 CXX="%{__cc}" \
481b259d 78 LD="%{__cc}" \
79 CFLAGS="%{rpmcflags}" \
13c33ffc 80 CXXFLAGS="%{rpmcflags} -fPIC" \
4aaa0e55 81 LDFLAGS="%{rpmldflags}" \
82 %{!?with_client:BUILD_CLIENT=NO} \
83 %{!?with_openal:BUILD_SND_OPENAL=NO} \
84 %{!?with_qf:BUILD_SND_QF=NO} \
85 %{!?with_server:BUILD_SERVER=NO}
481b259d 86
87%install
88rm -rf $RPM_BUILD_ROOT
89install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/%{name}}
90
481b259d 91install source/release/warsow* $RPM_BUILD_ROOT%{_bindir}
92cp -r source/release/libs $RPM_BUILD_ROOT%{_datadir}/%{name}
481b259d 93
94%clean
95rm -rf $RPM_BUILD_ROOT
96
97%files
98%defattr(644,root,root,755)
99%doc docs/*
100%attr(755,root,root) %{_bindir}/warsow*
85d74966 101%attr(755,root,root) %{_datadir}/%{name}/libs
This page took 0.053073 seconds and 4 git commands to generate.