ref: bab992ea55ea849d606e1733f10be42488441ab7
parent: a74c5e46b0cd578880f9fcbb45e6c3ef26d1c941
author: Simon Howard <[email protected]>
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/@[email protected]
+%{_mandir}/man5/default.cfg.5
+%{_mandir}/man6/@[email protected]
+%{_mandir}/man6/@[email protected]
+%{_mandir}/man6/@[email protected]
/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/@[email protected]
+%{_mandir}/man5/heretic.cfg.5
+%{_mandir}/man6/@[email protected]
+%{_mandir}/man6/@[email protected]
+/usr/share/doc/@PROGRAM_PREFIX@heretic/*
+/usr/games/@PROGRAM_PREFIX@heretic
+/usr/games/@PROGRAM_PREFIX@heretic-setup
+
+%files @PROGRAM_PREFIX@hexen
+%{_mandir}/man5/@[email protected]
+%{_mandir}/man5/hexen.cfg.5
+%{_mandir}/man6/@[email protected]
+%{_mandir}/man6/@[email protected]
+/usr/share/doc/@PROGRAM_PREFIX@hexen/*
+/usr/games/@PROGRAM_PREFIX@hexen
+/usr/games/@PROGRAM_PREFIX@hexen-setup