quakeforge/RPM/quakeforge.spec.in

404 lines
14 KiB
Plaintext
Raw Normal View History

%define name quakeforge
2003-07-14 00:20:36 +00:00
%define qfversion @VERSION@
2003-07-12 20:19:05 +00:00
%define rpmversion @RPMVERSION@
%define release 1
2003-07-14 00:20:36 +00:00
%define builddir $RPM_BUILD_DIR/%{name}-%{qfversion}
%define ALSA_PLUGIN 'snd_output_@ALSA_PLUGIN@'
2004-01-20 05:43:23 +00:00
%define fs_sharepath %{_prefix}/share/games/quakeforge
Name: %{name}
2003-07-12 20:19:05 +00:00
Version: %{rpmversion}
Release: %{release}
Vendor: The QuakeForge Project
2003-07-12 20:19:05 +00:00
Packager: The QuakeForge Project quakeforge-devel@lists.quakeforge.net
URL: http://www.quakeforge.net/
2003-07-14 00:20:36 +00:00
Source: %{name}-%{qfversion}.tar.gz
#Patch:
Group: Amusements/Games
2006-07-23 02:45:13 +00:00
License: GPL
#Icon:
Requires: quakeforge-common, quake-game
2003-07-14 00:20:36 +00:00
BuildRoot: /var/tmp/%{name}-%{qfversion}
Summary: QuakeForge 3D game engine
%description
QuakeForge is a source port of Quake and QuakeWorld, the successors to id
Software's very popular DOOM series. Its primary development goal is to
remain compatible with the original games released by id Software while
adding portability and optional extensions to enhance gameplay.
2001-08-01 22:43:16 +00:00
%package common
Summary: QuakeForge 3D game engine - common files
Group: Amusements/Games
#Requires:
%description common
2001-08-02 02:49:33 +00:00
QuakeForge is a source port of Quake and QuakeWorld, the successors to id
Software's very popular DOOM series. Its primary development goal is to
remain compatible with the original games released by id Software while
adding portability and optional extensions to enhance gameplay.
2001-08-01 22:43:16 +00:00
2002-09-30 18:19:51 +00:00
This package contains files and shared libraries common to all QuakeForge
packages.
2002-05-27 20:28:10 +00:00
2002-09-30 18:19:51 +00:00
%package devel
Summary: QuakeForge 3D game engine - headers and devel libs
Group: Amusements/Games
Requires: quakeforge-common
%description devel
2001-08-02 02:49:33 +00:00
QuakeForge is a source port of Quake and QuakeWorld, the successors to id
Software's very popular DOOM series. Its primary development goal is to
remain compatible with the original games released by id Software while
adding portability and optional extensions to enhance gameplay.
2002-09-30 18:19:51 +00:00
This package contains headers and static libraries for the development of
utilities and applications for QuakeForge.
%package sdl
Summary: QuakeForge 3D game engine - SDL client
Group: Amusements/Games
Requires: quakeforge == %{rpmversion}, quakeforge-common == %{rpmversion}, quakeforge-sdl-common == %{rpmversion}
%description sdl
2001-08-02 02:49:33 +00:00
QuakeForge is a source port of Quake and QuakeWorld, the successors to id
Software's very popular DOOM series. Its primary development goal is to
remain compatible with the original games released by id Software while
adding portability and optional extensions to enhance gameplay.
2002-09-30 18:19:51 +00:00
This package contains the SDL versions of the QuakeWorld client and
standalone engine.
%package svga
Summary: QuakeForge 3D game engine - SVGAlib client
Group: Amusements/Games
2003-07-12 20:19:05 +00:00
Requires: quakeforge == %{rpmversion}
%description svga
2001-08-02 02:49:33 +00:00
QuakeForge is a source port of Quake and QuakeWorld, the successors to id
Software's very popular DOOM series. Its primary development goal is to
remain compatible with the original games released by id Software while
adding portability and optional extensions to enhance gameplay.
2002-09-30 18:19:51 +00:00
This package contains the SVGAlib versions of the QuakeWorld client and
standalone engine.
%package x11
Summary: QuakeForge 3D game engine - X11 client
Group: Amusements/Games
2003-07-12 20:19:05 +00:00
Requires: quakeforge == %{rpmversion}
%description x11
2001-08-02 02:49:33 +00:00
QuakeForge is a source port of Quake and QuakeWorld, the successors to id
Software's very popular DOOM series. Its primary development goal is to
remain compatible with the original games released by id Software while
adding portability and optional extensions to enhance gameplay.
2002-09-30 18:19:51 +00:00
This package contains the X11 versions of the QuakeForge client and
standalone engine.
2001-08-01 22:43:16 +00:00
2002-09-30 18:19:51 +00:00
%package servers
Summary: QuakeForge 3D game engine - Server
2001-08-01 22:43:16 +00:00
Group: Amusements/Games
2003-07-12 20:19:05 +00:00
Requires: quakeforge == %{rpmversion}, quakeforge-common == %{rpmversion}
2002-09-30 18:19:51 +00:00
%description servers
2001-08-02 02:49:33 +00:00
QuakeForge is a source port of Quake and QuakeWorld, the successors to id
Software's very popular DOOM series. Its primary development goal is to
remain compatible with the original games released by id Software while
adding portability and optional extensions to enhance gameplay.
2002-09-30 18:19:51 +00:00
This package contains both the QuakeWorld-compatible and
NetQuake-compatible dedicated servers, as well as a simple
QuakeWorld-compatible master server.
2001-08-01 22:43:16 +00:00
%package sw32
2012-07-11 05:32:36 +00:00
Summary: QuakeForge 3D game engine - Software renderer libraries
Group: Amusements/Games
#Requires:
%description sw32
2012-07-11 05:32:36 +00:00
QuakeForge is a source port of Quake and QuakeWorld, the successors to id
Software's very popular DOOM series. Its primary development goal is to
remain compatible with the original games released by id Software while
adding portability and optional extensions to enhance gameplay.
This package contains the shared libraries needed to use the 32bpp software
renderer.
%package sw
2002-09-30 18:19:51 +00:00
Summary: QuakeForge 3D game engine - Software renderer libraries
Group: Amusements/Games
2001-08-01 22:43:16 +00:00
#Requires:
%description sw
2001-08-02 02:49:33 +00:00
QuakeForge is a source port of Quake and QuakeWorld, the successors to id
Software's very popular DOOM series. Its primary development goal is to
remain compatible with the original games released by id Software while
adding portability and optional extensions to enhance gameplay.
2002-09-30 18:19:51 +00:00
This package contains the shared libraries needed to use the software
2012-07-11 05:32:36 +00:00
renderer.
2001-08-01 22:43:16 +00:00
%package gl
2001-08-01 22:43:16 +00:00
Summary: QuakeForge 3D game engine - OpenGL renderer libraries
Group: Amusements/Games
#Requires:
%description gl
2001-08-02 02:49:33 +00:00
QuakeForge is a source port of Quake and QuakeWorld, the successors to id
Software's very popular DOOM series. Its primary development goal is to
remain compatible with the original games released by id Software while
adding portability and optional extensions to enhance gameplay.
2002-09-30 18:19:51 +00:00
This package contains the shared libraries needed to use the OpenGL
2012-07-11 05:32:36 +00:00
renderer.
%package glsl
2012-07-11 05:32:36 +00:00
Summary: QuakeForge 3D game engine - OpenGL renderer libraries
Group: Amusements/Games
#Requires:
%description glsl
2012-07-11 05:32:36 +00:00
QuakeForge is a source port of Quake and QuakeWorld, the successors to id
Software's very popular DOOM series. Its primary development goal is to
remain compatible with the original games released by id Software while
adding portability and optional extensions to enhance gameplay.
This package contains the shared libraries needed to use the OpenGL GLSL
renderer.
2001-08-01 22:43:16 +00:00
2002-09-30 18:19:51 +00:00
%package oss
Summary: OSS sound plugin for QuakeForge
Group: Amusements/Games
2001-08-01 22:43:16 +00:00
#Requires:
2002-09-30 18:19:51 +00:00
%description oss
The OSS plugin for QuakeForge provides digital audio output (using OSS/Linux,
OSS/Free, or kernel sound) for QuakeForge targets that contain clients.
NOTE: This plugin does not work on all systems, since it uses memory-mapped
I/O for the output device. If you have trouble, try the quakeforge-alsa
package.
2001-08-01 22:43:16 +00:00
2007-03-08 13:25:21 +00:00
%if "%{HAVE_XMMS}"=="'yes'"
%package xmms
Summary: XMMS playlist interface
Group: Amusements/Games
#Requires:
%description xmms
The XMMS plugin for QuakeForge allows the clients to use the XMMS playlist
as a virtual cd for background music.
%endif
2002-09-30 18:19:51 +00:00
%package alsa
2004-01-20 05:43:23 +00:00
Summary: ALSA sound plugin for QuakeForge
2002-01-22 20:18:40 +00:00
Group: Amusements/Games
#Requires:
2002-09-30 18:19:51 +00:00
%description alsa
2004-01-20 05:43:23 +00:00
The ALSA plugin for QuakeForge provides digital audio output for QuakeForge
2002-09-30 18:19:51 +00:00
targets that contain clients.
2002-01-22 20:18:40 +00:00
2002-09-30 18:19:51 +00:00
%package utils
Summary: QuakeForge 3D game engine - utility programs
2002-01-22 20:18:40 +00:00
Group: Amusements/Games
#Requires:
2002-09-30 18:19:51 +00:00
%description utils
This package contains several tools for use with QuakeForge:
* pak, a pakfile management tool.
* zpak, a script for compressing pakfiles.
* qfprogs, a "nm" tool for examining progs data files.
* qfwavinfo, a tool to assist in converting "looped" WAV files to Ogg
Vorbis.
2002-01-22 20:18:40 +00:00
2002-09-30 18:19:51 +00:00
%package maptools
2001-08-01 22:43:16 +00:00
Summary: QuakeForge 3D game engine - headers and devel libs
Group: Amusements/Games
Requires: quakeforge-common
2002-09-30 18:19:51 +00:00
%description maptools
This package contains QuakeForge's versions of the tools Id Software used
to create maps for the Quake engine. Included are:
* qfbsp, a program for compiling a map file into a BSP tree.
* qflight, a program for generating lightmaps from the static lights in a
BSP file.
* qfvis, a program for generating the Possibly-Visible Set information from
a BSP and a portal information file (generated by qfbsp).
2001-08-01 22:43:16 +00:00
2002-01-22 20:18:40 +00:00
%package -n qfcc
Summary: QuakeForge QC/Ruamoko compiler
#FIXME correct group?
Group: Amusements/Games
Requires: quakeforge-common
%description -n qfcc
2002-09-30 18:19:51 +00:00
QFCC is an optimizing byte-code compiler for the Ruamoko language, a language
based strongly on Id Software's QuakeC. The bytecode interpreter for QuakeC
and Ruamoko is located inside the Quake engine (though there is a standalone
interpreter available).
QFCC is designed to work with the QuakeForge engines, but will work with
most non-QuakeForge servers with a couple of changes to its command-line
options.
%package stub
Summary: QuakeForge 3D game engine - common files
Group: Amusements/Games
#Requires:
Provides: quake-game
%description stub
2002-01-22 20:18:40 +00:00
QuakeForge is a source port of Quake and QuakeWorld, the successors to id
Software's very popular DOOM series. Its primary development goal is to
remain compatible with the original games released by id Software while
adding portability and optional extensions to enhance gameplay.
2002-09-30 18:19:51 +00:00
This sub-package provides the quake-game pseudo package.
%prep
2003-07-14 00:20:36 +00:00
%setup -n %{name}-%{qfversion}
#%patch -p1
%build
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix}
make $QFSMP
%install
if [ -d $RPM_BUILD_ROOT ]; then rm -rf $RPM_BUILD_ROOT; fi
mkdir -p $RPM_BUILD_ROOT
2001-08-01 22:43:16 +00:00
mkdir -p $RPM_BUILD_ROOT/etc
make install DESTDIR=$RPM_BUILD_ROOT
2001-08-01 22:43:16 +00:00
cp RPM/quakeforge.conf $RPM_BUILD_ROOT/etc
mkdir -p $RPM_BUILD_ROOT/%{fs_sharepath}/id1
find $RPM_BUILD_ROOT/usr/lib/quakeforge -name '*.a' -exec rm {} \;
find $RPM_BUILD_ROOT/usr/lib/quakeforge -name '*.la' -exec rm {} \;
rm $RPM_BUILD_ROOT/usr/bin/hw-master
find $RPM_BUILD_ROOT/usr/lib -name 'libQFrenderer_sw32.*' -exec rm {} \;
#FIXME until I feel like making packages
rm $RPM_BUILD_ROOT/usr/bin/qtv
find $RPM_BUILD_ROOT/usr/lib/quakeforge -name 'snd_render_jack*' -exec rm {} \;
%clean
rm -rf $RPM_BUILD_ROOT
2001-08-01 22:43:16 +00:00
%files
%doc COPYING INSTALL TODO doc/*
2007-03-08 13:25:21 +00:00
%attr(-,root,root) %{_prefix}/lib/pkgconfig/quakeforge.pc
2001-08-01 22:43:16 +00:00
%files common
%attr(-,root,root) /etc/quakeforge.conf
2002-01-22 20:18:40 +00:00
%attr(-,root,root) %{_prefix}/lib/libQFcd.so.*
%attr(-,root,root) %{_prefix}/lib/libQFconsole.so.*
%attr(-,root,root) %{_prefix}/lib/libQFgib.so.*
2003-08-16 03:58:35 +00:00
%attr(-,root,root) %{_prefix}/lib/libQFimage.so.*
2002-01-22 20:18:40 +00:00
%attr(-,root,root) %{_prefix}/lib/libQFjs.so.*
%attr(-,root,root) %{_prefix}/lib/libQFmodels.so.*
2004-01-20 00:19:33 +00:00
%attr(-,root,root) %{_prefix}/lib/libQFruamoko.so.*
2002-01-22 20:18:40 +00:00
%attr(-,root,root) %{_prefix}/lib/libQFsound.so.*
%attr(-,root,root) %{_prefix}/lib/libQFutil.so.*
2011-09-10 06:10:45 +00:00
%attr(-,root,root) %{_prefix}/lib/quakeforge/plugins/cd_file.so*
%attr(-,root,root) %{_prefix}/lib/quakeforge/plugins/cd_linux.so*
%attr(-,root,root) %{_prefix}/lib/quakeforge/plugins/console_client.so*
%attr(-,root,root) %{_prefix}/lib/quakeforge/plugins/snd_render_default.so*
%attr(-,root,root) %{fs_sharepath}/QF/menu.*
2001-08-01 22:43:16 +00:00
2002-09-30 18:19:51 +00:00
%files devel
%attr(-,root,root) %{_prefix}/lib/libQFcd.*a
%attr(-,root,root) %{_prefix}/lib/libQFcd.so
%attr(-,root,root) %{_prefix}/lib/libQFconsole.*a
%attr(-,root,root) %{_prefix}/lib/libQFconsole.so
%attr(-,root,root) %{_prefix}/lib/libQFgib.*a
%attr(-,root,root) %{_prefix}/lib/libQFgib.so
2003-08-16 03:58:35 +00:00
%attr(-,root,root) %{_prefix}/lib/libQFimage.*a
%attr(-,root,root) %{_prefix}/lib/libQFimage.so
2002-09-30 18:19:51 +00:00
%attr(-,root,root) %{_prefix}/lib/libQFjs.*a
%attr(-,root,root) %{_prefix}/lib/libQFjs.so
%attr(-,root,root) %{_prefix}/lib/libQFmodels.*a
%attr(-,root,root) %{_prefix}/lib/libQFmodels.so
2004-01-20 00:19:33 +00:00
%attr(-,root,root) %{_prefix}/lib/libQFruamoko.*a
%attr(-,root,root) %{_prefix}/lib/libQFruamoko.so
2002-09-30 18:19:51 +00:00
%attr(-,root,root) %{_prefix}/lib/libQFsound.*a
%attr(-,root,root) %{_prefix}/lib/libQFsound.so
%attr(-,root,root) %{_prefix}/lib/libQFutil.*a
%attr(-,root,root) %{_prefix}/lib/libQFutil.so
%attr(-,root,root) %{_prefix}/include/QF/GL/*.h
2012-07-11 05:32:36 +00:00
%attr(-,root,root) %{_prefix}/include/QF/GLSL/*.h
2002-09-30 18:19:51 +00:00
%attr(-,root,root) %{_prefix}/include/QF/*.h
2013-01-10 13:14:59 +00:00
%attr(-,root,root) %{_prefix}/include/QF/math/*.h
2002-09-30 18:19:51 +00:00
%attr(-,root,root) %{_prefix}/include/QF/plugin/*.h
2002-05-27 20:28:10 +00:00
%files gl
2012-07-11 05:32:36 +00:00
%attr(-,root,root) %{_prefix}/lib/quakeforge/plugins/vid_render_gl.so*
%files glsl
2012-07-11 05:32:36 +00:00
%attr(-,root,root) %{_prefix}/lib/quakeforge/plugins/vid_render_glsl.so*
%files sw32
2012-07-11 05:32:36 +00:00
%attr(-,root,root) %{_prefix}/lib/quakeforge/plugins/vid_render_sw32.so*
%files sw
2012-07-11 05:32:36 +00:00
%attr(-,root,root) %{_prefix}/lib/quakeforge/plugins/vid_render_sw.so*
%files servers
%attr(-,root,root) %{_prefix}/bin/qw-server
2001-10-03 19:52:51 +00:00
%attr(-,root,root) %{_prefix}/bin/nq-server
%attr(-,root,root) %{_prefix}/bin/qw-master
#%attr(-,root,root) %{_prefix}/bin/hw-master
2011-09-10 06:10:45 +00:00
%attr(-,root,root) %{_prefix}/lib/quakeforge/plugins/console_server.so*
2002-01-22 20:18:40 +00:00
%files sdl
2011-09-10 06:10:45 +00:00
%attr(-,root,root) %{_prefix}/lib/quakeforge/plugins/cd_sdl.so*
%attr(-,root,root) %{_prefix}/lib/quakeforge/plugins/snd_output_sdl.so*
%attr(-,root,root) %{_prefix}/bin/qw-client-sdl
%attr(-,root,root) %{_prefix}/bin/nq-sdl
%files x11
%attr(-,root,root) %{_prefix}/bin/qw-client-x11
%attr(-,root,root) %{_prefix}/bin/nq-x11
2001-08-01 22:43:16 +00:00
2007-03-08 13:25:21 +00:00
%if "%{HAVE_XMMS}"=="'yes'"
%files xmms
2011-09-10 06:10:45 +00:00
%attr(-,root,root) %{_prefix}/lib/quakeforge/plugins/cd_xmms.so
2007-03-08 13:25:21 +00:00
%endif
2002-09-30 18:19:51 +00:00
%files alsa
2011-09-10 06:10:45 +00:00
%attr(-,root,root) %{_prefix}/lib/quakeforge/plugins/snd_output_alsa.so*
2001-08-01 22:43:16 +00:00
2002-09-30 18:19:51 +00:00
%files oss
2011-09-10 06:10:45 +00:00
%attr(-,root,root) %{_prefix}/lib/quakeforge/plugins/snd_output_oss.so*
2001-08-01 22:43:16 +00:00
2002-09-30 18:19:51 +00:00
%files -n qfcc
%attr(-,root,root) %{_prefix}/bin/qfcc
%attr(-,root,root) %{_prefix}/bin/qfpreqcc
2007-03-08 13:12:41 +00:00
%attr(-,root,root) %{_prefix}/share/man/man1/qfcc.1.gz
%attr(-,root,root) %{_prefix}/lib/pkgconfig/qfcc.pc
2012-07-11 05:32:36 +00:00
%attr(-,root,root) %{_prefix}/share/qfcc/include/*
%attr(-,root,root) %{_prefix}/share/qfcc/lib/*
2001-08-01 22:43:16 +00:00
2002-09-30 18:19:51 +00:00
%files utils
%attr(-,root,root) %{_prefix}/bin/pak
%attr(-,root,root) %{_prefix}/bin/zpak
%attr(-,root,root) %{_prefix}/bin/qfprogs
%attr(-,root,root) %{_prefix}/bin/qfwavinfo
2007-03-08 13:12:41 +00:00
%attr(-,root,root) %{_prefix}/share/man/man1/pak.1.gz
%attr(-,root,root) %{_prefix}/share/man/man1/zpak.1.gz
2007-03-08 13:12:41 +00:00
#%attr(-,root,root) %{_prefix}/share/man/man1/qfprogs.1.gz
#%attr(-,root,root) %{_prefix}/share/man/man1/qfwavinfo.1.gz
2001-08-01 22:43:16 +00:00
2002-09-30 18:19:51 +00:00
%files maptools
%attr(-,root,root) %{_prefix}/bin/bsp2img
2002-09-30 18:19:51 +00:00
%attr(-,root,root) %{_prefix}/bin/qfbsp
%attr(-,root,root) %{_prefix}/bin/qflight
2011-09-10 06:10:45 +00:00
%attr(-,root,root) %{_prefix}/bin/qflmp
%attr(-,root,root) %{_prefix}/bin/qfmodelgen
2012-07-11 05:32:36 +00:00
%attr(-,root,root) %{_prefix}/bin/qfspritegen
2002-09-30 18:19:51 +00:00
%attr(-,root,root) %{_prefix}/bin/qfvis
%attr(-,root,root) %{_prefix}/bin/wad
2007-03-08 13:12:41 +00:00
%attr(-,root,root) %{_prefix}/share/man/man1/qflight.1.gz
%attr(-,root,root) %{_prefix}/share/man/man1/qfvis.1.gz
%attr(-,root,root) %{_prefix}/share/man/man1/wad.1.gz
2001-08-01 22:43:16 +00:00
2002-09-30 18:19:51 +00:00
%files stub
%attr(-,root,root) %dir %{fs_sharepath}
%attr(-,root,root) %dir %{fs_sharepath}/id1
2002-01-22 20:18:40 +00:00
2002-09-30 18:19:51 +00:00
%post stub
if test ! -f %{fs_sharepath}/id1/pak0.pak; then
2002-09-30 18:19:51 +00:00
echo Warning: %{fs_sharepath}/id1/pak0.pak not found
echo Install either the shareware or registered quake data in
echo %{fs_sharepath}
fi