]>
Commit | Line | Data |
---|---|---|
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 | 10 | Summary: A Fast Paced FPS Game |
8218f369 | 11 | Summary(pl.UTF-8): Szybko tocząca się gra FPS |
481b259d | 12 | Name: warsow |
107e1d99 | 13 | Version: 0.5 |
85d74966 | 14 | Release: 0.2 |
8218f369 | 15 | License: GPL v2+ |
481b259d | 16 | Group: X11/Applications/Games |
17 | Source0: http://data.rodix.free.fr/warsow/files/%{name}_%{version}_sdk.zip | |
107e1d99 | 18 | # Source0-md5: acd0244435cc63967b0eb3468c21c454 |
481b259d | 19 | Patch0: %{name}-flags.patch |
20 | Patch1: %{name}-dirs.patch | |
85d74966 KK |
21 | Patch2: %{name}-gentoo_fixes.patch |
22 | Patch3: %{name}-libjpeg.patch | |
23 | Patch4: %{name}-xincludes.patch | |
24 | Patch5: %{name}-pic.patch | |
481b259d | 25 | URL: http://www.warsow.net/ |
4aaa0e55 | 26 | %{?with_openal:BuildRequires: OpenAL-devel} |
27 | %{?with_qf:BuildRequires: SDL-devel} | |
cf409ece | 28 | BuildRequires: curl-devel |
29 | BuildRequires: libjpeg-devel | |
4aaa0e55 | 30 | %{?with_qf:BuildRequires: libvorbis-devel} |
481b259d | 31 | BuildRequires: unzip |
8218f369 JB |
32 | BuildRequires: xorg-lib-libX11-devel |
33 | BuildRequires: xorg-lib-libXext-devel | |
cf409ece | 34 | BuildRequires: xorg-lib-libXinerama-devel |
107e1d99 | 35 | BuildRequires: xorg-lib-libXxf86dga-devel |
cf409ece | 36 | BuildRequires: xorg-lib-libXxf86vm-devel |
37 | BuildRequires: zlib-devel | |
85d74966 | 38 | Requires: %{name}-data = %{version} |
481b259d | 39 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
40 | ||
41 | %description | |
42 | Warsow is a standalone first person shooter for Windows and Linux. It | |
43 | is under the GPL and based on the 3D Engine Qfusion (a modification of | |
44 | Quake 2's engine). It offers eSport oriented FPS, fast-paced gameplay | |
45 | focused on trix (trick jumps) and the art of move. It offers a | |
46 | complete Power-up System including Weak and Strong fire mode for each | |
47 | weapon. The graphics are in a cartoonish style with | |
48 | celshading-like_but_not_Manga style, mixing dark, flashy and dirty | |
49 | textures, matching the action full of fun and speed. The game got some | |
50 | of its inspiration from titles like Quakeworld, Quake3 CPMA, Jet Set | |
51 | Radio or Speedball. | |
52 | ||
8218f369 JB |
53 | %description -l pl.UTF-8 |
54 | Warsow to samodzielna strzelanina FPS dla Windows i Linuksa. Została | |
55 | wydana na licencji GPL i jest oparta na silniku 3D Qfusion | |
56 | (modyfikacji silnika z Quake 2). Oferuje sportowo zorientowany FPS, | |
57 | szybko toczącą się grę skupioną na triksach (trick jumps) oraz sztukę | |
58 | poruszania. Zawiera kompletny system broni z trybem słabego i silnego | |
59 | ognia. Grafika jest utrzymana w stylu rysunkowym, ale nie Mangi, | |
60 | łączącym ciemne, błyskające i brudne tekstury, pasujące do akcji | |
61 | pełnej zabawy i szybkości. Gra została częściowo zainspirowana | |
62 | tytułami takimi jak Quakeworld, Quake3 CPMA, Jet Set Radio czy | |
63 | Speedball. | |
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 | |
88 | rm -rf $RPM_BUILD_ROOT | |
89 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/%{name}} | |
90 | ||
481b259d | 91 | install source/release/warsow* $RPM_BUILD_ROOT%{_bindir} |
92 | cp -r source/release/libs $RPM_BUILD_ROOT%{_datadir}/%{name} | |
481b259d | 93 | |
94 | %clean | |
95 | rm -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 |