misc rpm building improvements

This commit is contained in:
Bill Currie 2001-08-02 02:49:33 +00:00
parent 4c23641759
commit 80c7113447
6 changed files with 78 additions and 3 deletions

View file

@ -1,9 +1,9 @@
## Process this file with automake to produce Makefile.in ## Process this file with automake to produce Makefile.in
AUTOMAKE_OPTIONS= foreign AUTOMAKE_OPTIONS= foreign
SUBDIRS= debian doc include libs qw nq SUBDIRS= RPM debian doc include libs qw nq
EXTRA_DIST= ChangeLog RPM/build_rpm.in RPM/quakeforge.spec.in RPM/rpmrc \ EXTRA_DIST= ChangeLog \
tools/cross/cross-configure.sh tools/cross/cross-make.sh \ tools/cross/cross-configure.sh tools/cross/cross-make.sh \
tools/cross/cross.sh \ tools/cross/cross.sh \
tools/gas2masm/Makefile tools/gas2masm/gas2masm.c \ tools/gas2masm/Makefile tools/gas2masm/gas2masm.c \

1
RPM/.gitignore vendored
View file

@ -1,3 +1,4 @@
Makefile.in
build_rpm build_rpm
quakeforge.conf quakeforge.conf
quakeforge.spec quakeforge.spec

9
RPM/Makefile.am Normal file
View file

@ -0,0 +1,9 @@
## Process this file with automake to produce Makefile.in
AUTOMAKE_OPTIONS= foreign
EXTRA_DIST= build_rpm.in quakeforge.conf.in quakeforge.spec.in rpmrc
rpm: build_rpm quakeforge.conf quakeforge.spec rpmrc
./build_rpm
CLEANFILES = *.rpm

View file

@ -8,6 +8,7 @@ top_builddir=..
rm -rf BUILD SPECS RPMS SOURCES SRPMS rm -rf BUILD SPECS RPMS SOURCES SRPMS
mkdir -p BUILD SPECS RPMS/{noarch,i386,i686} SOURCES SRPMS mkdir -p BUILD SPECS RPMS/{noarch,i386,i686} SOURCES SRPMS
make -C $top_builddir changelog
make -C $top_builddir dist make -C $top_builddir dist
mv $top_builddir/quakeforge-${version}.tar.gz SOURCES mv $top_builddir/quakeforge-${version}.tar.gz SOURCES
cat > rpmmacros <<EOF cat > rpmmacros <<EOF

View file

@ -45,12 +45,20 @@ Summary: QuakeForge 3D game engine - common files
Group: Amusements/Games Group: Amusements/Games
#Requires: #Requires:
%description common %description common
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.
%package server %package server
Summary: QuakeForge 3D game engine - Server Summary: QuakeForge 3D game engine - Server
Group: Amusements/Games Group: Amusements/Games
#Requires: #Requires:
%description server %description server
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.
%if "%{HAVE_3DFX}"=="'yes'" %if "%{HAVE_3DFX}"=="'yes'"
%package 3dfx %package 3dfx
@ -66,6 +74,10 @@ Summary: QuakeForge 3D game engine - fbdev client
Group: Amusements/Games Group: Amusements/Games
#Requires: #Requires:
%description fbdev %description fbdev
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.
%endif %endif
%if "%{HAVE_GLX}"=="'yes'" %if "%{HAVE_GLX}"=="'yes'"
@ -74,6 +86,10 @@ Summary: QuakeForge 3D game engine - glx client
Group: Amusements/Games Group: Amusements/Games
#Requires: #Requires:
%description glx %description glx
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.
%endif %endif
%if "%{HAVE_SDL}"=="'yes'" %if "%{HAVE_SDL}"=="'yes'"
@ -82,6 +98,10 @@ Summary: QuakeForge 3D game engine - SDL client
Group: Amusements/Games Group: Amusements/Games
#Requires: #Requires:
%description sdl %description sdl
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.
%endif %endif
%if "%{HAVE_SGL}"=="'yes'" %if "%{HAVE_SGL}"=="'yes'"
@ -90,6 +110,10 @@ Summary: QuakeForge 3D game engine - SDL-GL client
Group: Amusements/Games Group: Amusements/Games
#Requires: #Requires:
%description sgl %description sgl
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.
%endif %endif
%if "%{HAVE_SVGA}"=="'yes'" %if "%{HAVE_SVGA}"=="'yes'"
@ -98,6 +122,10 @@ Summary: QuakeForge 3D game engine - SVGAlib client
Group: Amusements/Games Group: Amusements/Games
#Requires: #Requires:
%description svga %description svga
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.
%endif %endif
%if "%{HAVE_X11}"=="'yes'" %if "%{HAVE_X11}"=="'yes'"
@ -106,6 +134,10 @@ Summary: QuakeForge 3D game engine - X11 client
Group: Amusements/Games Group: Amusements/Games
#Requires: #Requires:
%description x11 %description x11
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.
%endif %endif
%if "%{HAVE_ALSA}"=="'yes'" %if "%{HAVE_ALSA}"=="'yes'"
@ -114,6 +146,11 @@ Summary: ALSA 0.9 sound plugin for QuakeForge
Group: Amusements/Games Group: Amusements/Games
#Requires: #Requires:
%description snd-alsa %description snd-alsa
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.
The ALSA 0.9 plugin for QuakeForge provides digital audio output for QuakeForge The ALSA 0.9 plugin for QuakeForge provides digital audio output for QuakeForge
targets that contain clients. targets that contain clients.
%endif %endif
@ -124,6 +161,11 @@ Summary: OSS sound plugin for QuakeForge
Group: Amusements/Games Group: Amusements/Games
#Requires: #Requires:
%description snd-oss %description snd-oss
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.
The OSS plugin for QuakeForge provides digital audio output (using OSS/Linux, The OSS plugin for QuakeForge provides digital audio output (using OSS/Linux,
OSS/Free, or kernel sound) for QuakeForge targets that contain clients. OSS/Free, or kernel sound) for QuakeForge targets that contain clients.
@ -138,6 +180,11 @@ Summary: SDL sound plugin for QuakeForge
Group: Amusements/Games Group: Amusements/Games
#Requires: #Requires:
%description snd-sdl %description snd-sdl
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.
The SDL plugin for QuakeForge provides digital audio output for QuakeForge The SDL plugin for QuakeForge provides digital audio output for QuakeForge
targets that contain clients. targets that contain clients.
%endif %endif
@ -148,6 +195,10 @@ Summary: QuakeForge 3D game engine - OpenGL renderer libraries
Group: Amusements/Games Group: Amusements/Games
#Requires: #Requires:
%description libs-gl %description libs-gl
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.
%endif %endif
%if "%{BUILD_SW}"=="'yes'" %if "%{BUILD_SW}"=="'yes'"
@ -156,6 +207,10 @@ Summary: QuakeForge 3D game engine - Software renderer libraries
Group: Amusements/Games Group: Amusements/Games
#Requires: #Requires:
%description libs-sw %description libs-sw
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.
%endif %endif
%package devel %package devel
@ -163,6 +218,10 @@ Summary: QuakeForge 3D game engine - headers and devel libs
Group: Amusements/Games Group: Amusements/Games
Requires: quakeforge-common Requires: quakeforge-common
%description devel %description devel
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.
@ -173,7 +232,11 @@ Requires: quakeforge-common
%build %build
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix} CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix}
make if test -f /proc/cpuinfo; then
make -j`grep processor /proc/cpuinfo | wc -l`
else
make
fi
%install %install
if [ -d $RPM_BUILD_ROOT ]; then rm -rf $RPM_BUILD_ROOT; fi if [ -d $RPM_BUILD_ROOT ]; then rm -rf $RPM_BUILD_ROOT; fi

View file

@ -1478,6 +1478,7 @@ AC_OUTPUT(
debian/Makefile debian/Makefile
RPM/Makefile
RPM/build_rpm RPM/build_rpm
RPM/quakeforge.conf RPM/quakeforge.conf
RPM/quakeforge.spec, RPM/quakeforge.spec,