summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Howard2010-01-18 19:14:54 +0000
committerSimon Howard2010-01-18 19:14:54 +0000
commit7f7a7354a5e72f1226f06f6109c0d1bc6cc30133 (patch)
treea2a021089785e0462218d6770a72b16f08f7bf61
parent34e73b9fffae922b3be954c98ec3724f4b15cfec (diff)
downloadchocolate-doom-7f7a7354a5e72f1226f06f6109c0d1bc6cc30133.tar.gz
chocolate-doom-7f7a7354a5e72f1226f06f6109c0d1bc6cc30133.tar.bz2
chocolate-doom-7f7a7354a5e72f1226f06f6109c0d1bc6cc30133.zip
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
-rw-r--r--Makefile.am3
-rw-r--r--configure.in14
-rw-r--r--pkg/osx/Info-gnustep.plist.in10
-rw-r--r--rpm.spec.in59
4 files changed, 82 insertions, 4 deletions
diff --git a/Makefile.am b/Makefile.am
index 662e26bb..a980acde 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -43,7 +43,8 @@ EXTRA_DIST= \
CMDLINE \
HACKING \
TODO \
- BUGS
+ BUGS \
+ rpm.spec
MAINTAINERCLEANFILES = $(AUX_DIST_GEN)
diff --git a/configure.in b/configure.in
index 88a5e244..05ea5d61 100644
--- a/configure.in
+++ b/configure.in
@@ -1,5 +1,11 @@
AC_INIT(Chocolate Doom, 1.2.1, fraggle@gmail.com, 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(SDLNET_LIBS)
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
diff --git a/pkg/osx/Info-gnustep.plist.in b/pkg/osx/Info-gnustep.plist.in
index e7436df2..da6675ba 100644
--- 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";
diff --git a/rpm.spec.in b/rpm.spec.in
new file mode 100644
index 00000000..175ed7c5
--- /dev/null
+++ b/rpm.spec.in
@@ -0,0 +1,59 @@
+
+Name: @PACKAGE@
+Summary: @PACKAGE_SHORTDESC@
+Version: @VERSION@
+Release: 1
+Source: http://mesh.dl.sourceforge.net/project/chocolate-doom/@PACKAGE@-@VERSION@.tar.gz
+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/*
+