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