shithub: choc

Download patch

ref: 7f7a7354a5e72f1226f06f6109c0d1bc6cc30133
parent: 34e73b9fffae922b3be954c98ec3724f4b15cfec
author: Simon Howard <[email protected]>
date: Mon Jan 18 14:14:54 EST 2010

Define project short description, copyright, maintainer and URL in
configure.in. Use these for the Info-gnustep.plist file. Add generated
.spec file for building RPM packages.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1821

--- a/Makefile.am
+++ b/Makefile.am
@@ -43,7 +43,8 @@
         CMDLINE                         \
         HACKING                         \
         TODO                            \
-        BUGS
+        BUGS                            \
+        rpm.spec
 
 MAINTAINERCLEANFILES =  $(AUX_DIST_GEN)
 
--- a/configure.in
+++ b/configure.in
@@ -1,5 +1,11 @@
 AC_INIT(Chocolate Doom, 1.2.1, [email protected], chocolate-doom)
 
+PACKAGE_SHORTDESC="Conservative Doom source port"
+PACKAGE_COPYRIGHT="Copyright (C) 1993-2010"
+PACKAGE_LICENSE="GNU General Public License, version 2"
+PACKAGE_MAINTAINER="Simon Howard"
+PACKAGE_URL="http://www.chocolate-doom.org/"
+
 AC_CONFIG_AUX_DIR(autotools)
 
 orig_CFLAGS="$CFLAGS"
@@ -110,11 +116,19 @@
 
 AC_SUBST(ac_aux_dir)
 
+AC_SUBST(PACKAGE_SHORTDESC)
+AC_SUBST(PACKAGE_COPYRIGHT)
+AC_SUBST(PACKAGE_LICENSE)
+AC_SUBST(PACKAGE_MAINTAINER)
+AC_SUBST(PACKAGE_URL)
+AC_SUBST(PACKAGE_LONGDESC)
+
 dnl Shut up the datarootdir warnings.
 AC_DEFUN([AC_DATAROOTDIR_CHECKED])
 
 AC_OUTPUT([
 Makefile
+rpm.spec
 man/Makefile
 pcsound/Makefile
 pkg/Makefile
--- a/pkg/osx/Info-gnustep.plist.in
+++ b/pkg/osx/Info-gnustep.plist.in
@@ -1,10 +1,14 @@
 {
     ApplicationName = "@PACKAGE_NAME@";
-    ApplicationDescription = "Doom source port";
+    ApplicationDescription = "@PACKAGE_SHORTDESC@";
     ApplicationIcon = app.png;
     ApplicationRelease = @PACKAGE_VERSION@;
-    Copyright = "Copyright (C) 2009-2010";
-    CopyrightDescription = "GNU General Public License, version 2";
+    ApplicationURL = "@PACKAGE_URL@";
+    Authors = (
+        "@PACKAGE_MAINTAINER@ <@PACKAGE_BUGREPORT@>"
+    );
+    Copyright = "@PACKAGE_COPYRIGHT@";
+    CopyrightDescription = "@PACKAGE_LICENSE@";
     FullVersionID = @PACKAGE_VERSION@;
     GSMainMarkupFile = "";
     NSExecutable = "launcher";
--- /dev/null
+++ b/rpm.spec.in
@@ -1,0 +1,59 @@
+
+Name: @PACKAGE@
+Summary: @PACKAGE_SHORTDESC@
+Version: @VERSION@
+Release: 1
+Source: http://mesh.dl.sourceforge.net/project/chocolate-doom/@PACKAGE@-@[email protected]
+URL: @PACKAGE_URL@
+Group: Amusements/Games
+BuildRoot: /var/tmp/@PACKAGE@-buildroot
+License: @PACKAGE_LICENSE@
+Packager: @PACKAGE_MAINTAINER@ <@PACKAGE_BUGREPORT@>
+Prefix: %{_prefix}
+Autoreq: 0
+Requires: libSDL-1.2.so.0, libSDL_mixer-1.2.so.0, libSDL_net-1.2.so.0
+
+%description
+@PACKAGE_NAME@ - @PACKAGE_SHORTDESC@.
+%(sed -n "/==/ q; p " < README)
+See @PACKAGE_URL@ for more information.
+
+%prep
+rm -rf $RPM_BUILD_ROOT
+
+%setup -q
+
+%build
+./configure \
+ 	--prefix=/usr \
+	--exec-prefix=/usr \
+	--bindir=/usr/bin \
+	--sbindir=/usr/sbin \
+	--sysconfdir=/etc \
+	--datadir=/usr/share \
+	--includedir=/usr/include \
+	--libdir=/usr/lib \
+	--libexecdir=/usr/lib \
+	--localstatedir=/var/lib \
+	--sharedstatedir=/usr/com \
+	--mandir=/usr/share/man \
+	--infodir=/usr/share/info
+make
+
+%install
+%makeinstall
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%doc %{_mandir}/man5/*
+%doc %{_mandir}/man6/*
+%doc NEWS
+%doc AUTHORS
+%doc README
+%doc COPYING
+%doc CMDLINE
+%doc BUGS
+/usr/games/*
+