shithub: choc

Download patch

ref: bab992ea55ea849d606e1733f10be42488441ab7
parent: a74c5e46b0cd578880f9fcbb45e6c3ef26d1c941
author: Simon Howard <fraggle@gmail.com>
date: Tue Sep 6 17:50:30 EDT 2011

Initial changes towards supporting multi-package RPM build, with
separate packages for Doom, Heretic and Hexen binaries.

Subversion-branch: /branches/raven-branch
Subversion-revision: 2363

--- a/rpm.spec.in
+++ b/rpm.spec.in
@@ -18,6 +18,16 @@
 
 See @PACKAGE_URL@ for more information.
 
+%package -n @PROGRAM_PREFIX@heretic
+Summary: @PACKAGE_SHORTDESC@ (Heretic binaries)
+Group: Amusements/Games
+Requires: libSDL-1.2.so.0, libSDL_mixer-1.2.so.0, libSDL_net-1.2.so.0
+
+%package -n @PROGRAM_PREFIX@hexen
+Summary: @PACKAGE_SHORTDESC@ (Hexen binaries)
+Group: Amusements/Games
+Requires: libSDL-1.2.so.0, libSDL_mixer-1.2.so.0, libSDL_net-1.2.so.0
+
 %prep
 rm -rf $RPM_BUILD_ROOT
 
@@ -47,10 +57,33 @@
 rm -rf $RPM_BUILD_ROOT
 
 %files
-%doc %{_mandir}/man5/*
-%doc %{_mandir}/man6/*
+%{_mandir}/man5/@PROGRAM_PREFIX@doom.cfg.5
+%{_mandir}/man5/default.cfg.5
+%{_mandir}/man6/@PROGRAM_PREFIX@doom.6
+%{_mandir}/man6/@PROGRAM_PREFIX@server.6
+%{_mandir}/man6/@PROGRAM_PREFIX@doom-setup.6
 /usr/share/doc/@PACKAGE@/*
-/usr/games/*
+/usr/games/@PROGRAM_PREFIX@doom
+/usr/games/@PROGRAM_PREFIX@server
+/usr/games/@PROGRAM_PREFIX@doom-setup
 /usr/share/icons/*
 /usr/share/applications/*
+
+%files @PROGRAM_PREFIX@heretic
+%{_mandir}/man5/@PROGRAM_PREFIX@heretic.cfg.5
+%{_mandir}/man5/heretic.cfg.5
+%{_mandir}/man6/@PROGRAM_PREFIX@heretic.6
+%{_mandir}/man6/@PROGRAM_PREFIX@heretic-setup.6
+/usr/share/doc/@PROGRAM_PREFIX@heretic/*
+/usr/games/@PROGRAM_PREFIX@heretic
+/usr/games/@PROGRAM_PREFIX@heretic-setup
+
+%files @PROGRAM_PREFIX@hexen
+%{_mandir}/man5/@PROGRAM_PREFIX@hexen.cfg.5
+%{_mandir}/man5/hexen.cfg.5
+%{_mandir}/man6/@PROGRAM_PREFIX@hexen.6
+%{_mandir}/man6/@PROGRAM_PREFIX@hexen-setup.6
+/usr/share/doc/@PROGRAM_PREFIX@hexen/*
+/usr/games/@PROGRAM_PREFIX@hexen
+/usr/games/@PROGRAM_PREFIX@hexen-setup