From bab992ea55ea849d606e1733f10be42488441ab7 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Tue, 6 Sep 2011 21:50:30 +0000 Subject: 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 --- rpm.spec.in | 39 ++++++++++++++++++++++++++++++++++++--- 1 file changed, 36 insertions(+), 3 deletions(-) diff --git a/rpm.spec.in b/rpm.spec.in index 137a9517..a31c2036 100644 --- a/rpm.spec.in +++ b/rpm.spec.in @@ -18,6 +18,16 @@ Requires: libSDL-1.2.so.0, libSDL_mixer-1.2.so.0, libSDL_net-1.2.so.0 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 @@ make 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 + -- cgit v1.2.3