]>
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 |
497f336c | 13 | Version: 0.61 |
2aba8dd5 | 14 | Release: 1 |
8218f369 | 15 | License: GPL v2+ |
481b259d | 16 | Group: X11/Applications/Games |
3a020159 | 17 | Source0: http://www.zcdn.org/dl/%{name}_%{version}_sdk.zip |
497f336c | 18 | # Source0-md5: 04bd29a63c3a43a7e3ea3a865b75e580 |
4f4636d8 | 19 | Source1: %{name}.desktop |
20 | Source2: %{name}.png | |
3a020159 | 21 | Patch0: %{name}-gentoo_fixes.patch |
22 | Patch1: %{name}-libjpeg.patch | |
23 | Patch2: %{name}-pic.patch | |
481b259d | 24 | URL: http://www.warsow.net/ |
4aaa0e55 | 25 | %{?with_openal:BuildRequires: OpenAL-devel} |
4b7462b3 | 26 | BuildRequires: OpenGL-devel |
4aaa0e55 | 27 | %{?with_qf:BuildRequires: SDL-devel} |
cf409ece | 28 | BuildRequires: curl-devel |
4f4636d8 | 29 | BuildRequires: desktop-file-utils |
cf409ece | 30 | BuildRequires: libjpeg-devel |
4b7462b3 | 31 | BuildRequires: libstdc++-devel |
4aaa0e55 | 32 | %{?with_qf:BuildRequires: libvorbis-devel} |
4b7462b3 | 33 | BuildRequires: pkgconfig |
481b259d | 34 | BuildRequires: unzip |
8218f369 JB |
35 | BuildRequires: xorg-lib-libX11-devel |
36 | BuildRequires: xorg-lib-libXext-devel | |
cf409ece | 37 | BuildRequires: xorg-lib-libXinerama-devel |
107e1d99 | 38 | BuildRequires: xorg-lib-libXxf86dga-devel |
cf409ece | 39 | BuildRequires: xorg-lib-libXxf86vm-devel |
40 | BuildRequires: zlib-devel | |
85d74966 | 41 | Requires: %{name}-data = %{version} |
481b259d | 42 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
43 | ||
44 | %description | |
45 | Warsow is a standalone first person shooter for Windows and Linux. It | |
46 | is under the GPL and based on the 3D Engine Qfusion (a modification of | |
47 | Quake 2's engine). It offers eSport oriented FPS, fast-paced gameplay | |
48 | focused on trix (trick jumps) and the art of move. It offers a | |
49 | complete Power-up System including Weak and Strong fire mode for each | |
50 | weapon. The graphics are in a cartoonish style with | |
51 | celshading-like_but_not_Manga style, mixing dark, flashy and dirty | |
52 | textures, matching the action full of fun and speed. The game got some | |
53 | of its inspiration from titles like Quakeworld, Quake3 CPMA, Jet Set | |
54 | Radio or Speedball. | |
55 | ||
8218f369 JB |
56 | %description -l pl.UTF-8 |
57 | Warsow to samodzielna strzelanina FPS dla Windows i Linuksa. Została | |
58 | wydana na licencji GPL i jest oparta na silniku 3D Qfusion | |
59 | (modyfikacji silnika z Quake 2). Oferuje sportowo zorientowany FPS, | |
60 | szybko toczącą się grę skupioną na triksach (trick jumps) oraz sztukę | |
61 | poruszania. Zawiera kompletny system broni z trybem słabego i silnego | |
62 | ognia. Grafika jest utrzymana w stylu rysunkowym, ale nie Mangi, | |
63 | łączącym ciemne, błyskające i brudne tekstury, pasujące do akcji | |
64 | pełnej zabawy i szybkości. Gra została częściowo zainspirowana | |
65 | tytułami takimi jak Quakeworld, Quake3 CPMA, Jet Set Radio czy | |
66 | Speedball. | |
67 | ||
481b259d | 68 | %prep |
8218f369 | 69 | %setup -q -c |
3a020159 | 70 | %patch0 -p0 |
71 | %patch1 -p1 | |
85d74966 | 72 | %patch2 -p0 |
481b259d | 73 | |
74 | %build | |
4b7462b3 | 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 | |
4f4636d8 | 89 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/%{name},%{_desktopdir},%{_pixmapsdir}} |
481b259d | 90 | |
3a020159 | 91 | cp -a source/release/warsow* $RPM_BUILD_ROOT%{_bindir} |
92 | cp -a source/release/libs $RPM_BUILD_ROOT%{_datadir}/%{name} | |
481b259d | 93 | |
4f4636d8 | 94 | # desktop and icon |
95 | desktop-file-install --dir=$RPM_BUILD_ROOT%{_desktopdir} %{SOURCE1} | |
96 | cp -a %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir} | |
97 | ||
481b259d | 98 | %clean |
99 | rm -rf $RPM_BUILD_ROOT | |
100 | ||
101 | %files | |
102 | %defattr(644,root,root,755) | |
103 | %doc docs/* | |
104 | %attr(755,root,root) %{_bindir}/warsow* | |
85d74966 | 105 | %attr(755,root,root) %{_datadir}/%{name}/libs |
4f4636d8 | 106 | %{_desktopdir}/%{name}.desktop |
107 | %{_pixmapsdir}/%{name}.png |