[dhewm3] 01/01: Initial Packaging
Tobias Frost
tobi at moszumanska.debian.org
Sun Feb 15 11:19:03 UTC 2015
This is an automated email from the git hooks/post-receive script.
tobi pushed a commit to branch master
in repository dhewm3.
commit b668777a5ced0b3e623a05f08f25c8fb7212ed91
Author: Tobias Frost <tobi at coldtobi.de>
Date: Sun Feb 15 12:13:00 2015 +0100
Initial Packaging
---
debian/README.Debian | 82 ++++++++++++++
debian/README.source | 45 ++++++++
debian/changelog | 5 +
debian/compat | 1 +
debian/control | 64 +++++++++++
debian/copyright | 191 ++++++++++++++++++++++++++++++++
debian/dhewm3-d3xp.desktop | 10 ++
debian/dhewm3-d3xp.install | 2 +
debian/dhewm3-d3xp.lintian-overrides | 2 +
debian/dhewm3-doom3.desktop | 10 ++
debian/dhewm3-doom3.install | 2 +
debian/dhewm3-doom3.lintian-overrides | 2 +
debian/dhewm3.6 | 17 +++
debian/dhewm3.install | 2 +
debian/dhewm3.manpages | 1 +
debian/gbp.conf | 2 +
debian/patches/01-changedatadir.patch | 16 +++
debian/patches/02-spelling-errors.patch | 97 ++++++++++++++++
debian/patches/series | 2 +
debian/rules | 57 ++++++++++
debian/source/format | 1 +
debian/watch | 6 +
22 files changed, 617 insertions(+)
diff --git a/debian/README.Debian b/debian/README.Debian
new file mode 100644
index 0000000..5b221c2
--- /dev/null
+++ b/debian/README.Debian
@@ -0,0 +1,82 @@
+dhewm3 for Debian
+-----------------
+
+Selecting the game to play
+============================
+
+By default DOOM³ will be launched. For exmaple, to launch a mod or Resurrection
+of Evil:
+
+ dhewm3 +set fs_game d3xp
+
+
+Game Data
+==========
+
+This source release does not contain any game data, the game data is still
+covered by the original EULA and must be obeyed as usual.
+
+For global installation, the game data should be put into
+/usr/share/games/doom3/, for local installation the game will look
+for the data at $HOME/.config/dhewm3/ or $HOME/.local/share/dhewm3
+
+The package game-data-packager(6) supports dhewm3 to create convenience, easy
+installable data pacakges and should also be able to update the data
+automatically to the latest version.
+
+For example, you can create your game data package with:
+
+ game-data-packager [--no-search] doom3 [path-to-game-files ...]
+
+This will also download patches to get your data to the latest version. If it
+cannot find the datafiles or takes ages, hint the location by adding the
+directory to the commandline and not to search for the data (as indicated above
+with the optional parameters in brackets)
+
+Note: This process might take some time. Be patient!
+
+
+Manually upgrading the game data
+================================
+
+(This is not needed if you use game-data-packager)
+
+You must patch the game data to the latest version. The patch can be obtained
+from idsoft's ftp server:
+
+ftp://ftp.idsoftware.com/idstuff/doom3/linux/doom3-linux-1.3.1.1304.x86.run
+
+Please check file integrity:
+ md5: 6325f0936f59420d33668754032141cb doom3-linux-1.3.1.1304.x86.run
+ sha1: 028dd18e5bada1e563c2a0d3bf5e77572d78e6b9 doom3-linux-1.3.1.1304.x86.run
+
+To update your game data, extract the embedded tar by
+ dd if=doom3-linux-1.3.1.1304.x86.run of=doom3-linux-1.3.1.1304.tar.gz \
+ ibs=8736 skip=1 obs=1024
+
+and copy the (base|d3xp)/pak*.pk4 files to the data directory.
+
+
+List of game data files
+=======================
+
+For DOOM³, you need the following files:
+
+MD5 (base/pak000.pk4) = 71b8d37b2444d3d86a36fd61783844fe
+MD5 (base/pak001.pk4) = 4bc4f3ba04ec2b4f4837be40e840a3c1
+MD5 (base/pak002.pk4) = fa84069e9642ad9aa4b49624150cc345
+MD5 (base/pak003.pk4) = f22d8464997924e4913e467e7d62d5fe
+MD5 (base/pak004.pk4) = 38561a3c73f93f2e6fd31abf1d4e9102
+MD5 (base/pak005.pk4) = 2afd4ece27d36393b7538d55a345b90d*
+MD5 (base/pak006.pk4) = a6e7003fa9dcc75073dc02b56399b370*
+MD5 (base/pak007.pk4) = 6319f086f930ec1618ab09b4c20c268c*
+MD5 (base/pak008.pk4) = 28750b7841de9453eb335bad6841a2a5*
+
+For the expansion pack Resurrection of Evil:
+
+MD5 (d3xp/pak000.pk4) = a883fef0fd10aadeb73d34c462ff865d
+MD5 (d3xp/pak001.pk4) = 06fc9be965e345587064056bf22236d2*
+
+(The ones with * come with the patch)
+
+ -- Tobias Frost <tobi at debian.org> Wed, 24 Sep 2014 21:23:18 +0200
diff --git a/debian/README.source b/debian/README.source
new file mode 100644
index 0000000..76ee192
--- /dev/null
+++ b/debian/README.source
@@ -0,0 +1,45 @@
+dhewm3 for Debian
+-----------------
+
+Upstream did not do any release yet, so dhewm3 is directly from its git
+repository. Therefore, there is a get-orig-source target in debian/rules.
+
+With the help of this target, the upstream tarball can be regenerated.
+
+Several files will removed from the archive: Binaries, Windows executeables,
+dlls and files only needed to build non-Unix architectures.
+
+Please see the get-orgig-source target in debian/rules or the Files-Excluded
+entry in debian/copyright for the complete list.
+
+To retrieve the latest upstream version you can set the date with the VER
+variable, set to the format YYYYMMDD. If not set, the date from
+debian/changelog will be used. This can also be used to obtain any older
+version
+
+To override the relase version, for example if upstream bumped the version, you
+can set USVER. This only sets the name in the tarball and is not checked if it
+is correlating to the real upstream version. If not set, the version from
+d/changelog will be used.
+
+For example,
+
+ VER=$(date +%Y%m%d) make -f debian/rules get-orig-source
+
+will fetch the latest upstream version (at least commits up to today midnight)
+
+ USVER=1.0.0 VER=20150215 make -f debian/rules get-orig-source
+
+wil retrieve the git version from February 14th 205, and names the tarball
+with the upstream version 1.0.0 -> the tarball will be named
+dhewm3_1.0.0~git20150214+repack.orig.tar.xz
+
+
+contrib section
+---------------
+
+The game engine is currently packed for the contrib section, aa there is no
+free game data known. If you know about DFSG-free content, please let me
+know.
+
+ -- Tobias Frost <tobi at debian.org> Sat, 14 Feb 2015 13:49:22 +0100
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..5ffefcc
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+dhewm3 (0~git20150214+repack-1) unstable; urgency=low
+
+ * Initial release (Closes: #777373)
+
+ -- Tobias Frost <tobi at debian.org> Sat, 14 Feb 2015 13:49:22 +0100
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..428e1c3
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,64 @@
+Source: dhewm3
+Section: contrib/games
+Priority: optional
+Maintainer: Debian Games Team <pkg-games-devel at lists.alioth.debian.org>
+Uploaders: Tobias Frost <tobi at debian.org>
+Build-Depends: cmake,
+ debhelper (>= 9),
+ libcurl4-gnutls-dev,
+ libjpeg-dev,
+ libogg-dev,
+ libopenal-dev,
+ libsdl2-dev,
+ libvorbis-dev
+Standards-Version: 3.9.6
+Homepage: https://github.com/dhewm/dhewm3
+VCS-Browser: https://alioth.debian.org/anonscm/git/pkg-games/dhewm3.git
+VCS-Git: git://anonscm.debian.org/pkg-games/dhewm3.git
+
+Package: dhewm3-doom3
+Architecture: any
+Pre-Depends: ${misc:Pre-Depends}
+Depends: dhewm3 (= ${binary:Version}),
+ ${misc:Depends},
+ ${shlibs:Depends}
+Recommends: doom3-data | game-data-packager (>=40)
+Description: dhwm3's gamelibrary for the title DOOM³
+ This package contains the shared library containing the game logic for DOOM³
+ .
+ Please note that this package does not contain any game data, which is
+ required to actually play the game.
+ .
+ The package game-data-packager can help you to package your copy of the
+ game data. Please see Readme.Debian for details.
+
+Package: dhewm3-d3xp
+Architecture: any
+Pre-Depends: ${misc:Pre-Depends}
+Depends: dhewm3-doom3 (= ${binary:Version}),
+ ${misc:Depends},
+ ${shlibs:Depends}
+Recommends: doom3-resurrection-data | game-data-packager (>=40)
+Description: dhwm3's gamelibrary for the title DOOM³: Resurrection of Evil
+ This package contains the shared library containing the game logic for
+ the add-on DOOM3³: Resurrection of Evil
+ .
+ Please note that this package does not contain any game data, which is
+ required to actually play the game.
+ .
+ The package game-data-packager can help you to package your copy of the
+ game data. Please see README.Debian for details.
+
+Package: dhewm3
+Architecture: any
+Depends: ${misc:Depends}, ${shlibs:Depends}
+Suggests: dhewm3-doom3, dhewm3-dx3p
+Description: GPL Doom 3 game engine
+ The goal of dhewm 3 is bring the DOOM3 engine with the help of SDL to all
+ suitable plaforms.
+ .
+ This game engine is compatible with the original Doom3 data files and the
+ Resurrection of Evil extension. To play it, you need to own the game data.
+ .
+ Bugs present in the original DOOM 3 will be fixed (when identified) without
+ altering the original gameplay.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..664379f
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,191 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: dhewm3
+Source: https://github.com/dhewm/dhewm3
+Comment: The removed files contained prebuilt binaries and we do not need those.
+Files-Excluded: neo/tools/common/PropTree/* neo/sys/win32/* neo/sys/linux/setup/*/bin neo/sys/linux/setup/lokisetup neo/sys/linux/setup/linux-*
+
+Files: *
+Copyright: 1999-2011 id Software LLC, a ZeniMax Media company
+License: GPL-3-with-idsoft-restrictions
+ Doom 3 Source Code is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+ .
+ Doom 3 Source Code is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+ .
+ On Debian systems, the full text of the GNU General Public
+ License version 3 can be found in the file
+ `/usr/share/common-licenses/GPL-3'.
+ .
+ In addition, the Doom 3 Source Code is also subject to certain additional
+ terms. You should have received a copy of these additional terms immediately
+ following the terms and conditions of the GNU General Public License which
+ accompanied the Doom 3 Source Code. If not, please request a copy in writing
+ from id Software at the address below.
+ .
+ If you have questions concerning this license or the applicable additional
+ terms, you may contact in writing id Software LLC, c/o ZeniMax Media Inc.,
+ Suite 120, Rockville, Maryland 20850 USA.
+ .
+ ADDITIONAL TERMS APPLICABLE TO THE DOOM 3 GPL SOURCE CODE.
+ .
+ The following additional terms (Additional Terms) supplement and
+ modify the GNU General Public License, Version 3 (GPL) applicable to the Doom
+ 3 GPL Source Code (Doom 3 Source Code). In addition to the terms and
+ conditions of the GPL, the Doom 3 Source Code is subject to the further
+ restrictions below.
+ .
+ 1. Replacement of Section 15. Section 15 of the GPL shall be deleted in its
+ entirety and replaced with the following:
+ .
+ 15. Disclaimer of Warranty.
+ .
+ THE PROGRAM IS PROVIDED WITHOUT ANY WARRANTIES, WHETHER EXPRESSED OR IMPLIED,
+ INCLUDING, WITHOUT LIMITATION, IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
+ PURPOSE, NON-INFRINGEMENT, TITLE AND MERCHANTABILITY. THE PROGRAM IS BEING
+ DELIVERED OR MADE AVAILABLE 'AS IS', 'WITH ALL FAULTS' AND WITHOUT WARRANTY OR
+ REPRESENTATION. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
+ PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
+ ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+ .
+ 2. Replacement of Section 16. Section 16 of the GPL shall be deleted in its
+ entirety and replaced with the following:
+ .
+ 16. LIMITATION OF LIABILITY.
+ .
+ UNDER NO CIRCUMSTANCES SHALL ANY COPYRIGHT HOLDER OR ITS AFFILIATES, OR ANY
+ OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE
+ LIABLE TO YOU, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, FOR ANY
+ DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, DIRECT, INDIRECT, SPECIAL,
+ INCIDENTAL, CONSEQUENTIAL OR PUNITIVE DAMAGES ARISING FROM, OUT OF OR IN
+ CONNECTION WITH THE USE OR INABILITY TO USE THE PROGRAM OR OTHER DEALINGS WITH
+ THE PROGRAM(INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED
+ INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE
+ PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), WHETHER OR NOT ANY COPYRIGHT HOLDER
+ OR SUCH OTHER PARTY RECEIVES NOTICE OF ANY SUCH DAMAGES AND WHETHER OR NOT SUCH
+ DAMAGES COULD HAVE BEEN FORESEEN.
+ .
+ 3. LEGAL NOTICES; NO TRADEMARK LICENSE; ORIGIN. You must reproduce faithfully
+ all trademark, copyright and other proprietary and legal notices on any copies
+ of the Program or any other required author attributions. This license does not
+ grant you rights to use any copyright holder or any other party's name, logo, or
+ trademarks. Neither the name of the copyright holder or its affiliates, or any
+ other party who modifies and/or conveys the Program may be used to endorse or
+ promote products derived from this software without specific prior written
+ permission. The origin of the Program must not be misrepresented; you must not
+ claim that you wrote the original Program. Altered source versions must be
+ plainly marked as such, and must not be misrepresented as being the original
+ Program.
+ .
+ 4. INDEMNIFICATION. IF YOU CONVEY A COVERED WORK AND AGREE WITH ANY RECIPIENT
+ OF THAT COVERED WORK THAT YOU WILL ASSUME ANY LIABILITY FOR THAT COVERED WORK,
+ YOU HEREBY AGREE TO INDEMNIFY, DEFEND AND HOLD HARMLESS THE OTHER LICENSORS AND
+ AUTHORS OF THAT COVERED WORK FOR ANY DAMAEGS, DEMANDS, CLAIMS, LOSSES, CAUSES OF
+ ACTION, LAWSUITS, JUDGMENTS EXPENSES (INCLUDING WITHOUT LIMITATION REASONABLE
+ ATTORNEYS' FEES AND EXPENSES) OR ANY OTHER LIABLITY ARISING FROM, RELATED TO OR
+ IN CONNECTION WITH YOUR ASSUMPTIONS OF LIABILITY.
+
+
+Files: neo/framework/minizip/*
+Copyright: 1999-2011 id Software LLC, a ZeniMax Media company.
+ 2012 Daniel Gibson
+ 1998-2010 - by Gilles Vollant and Mathias Svensson
+License: zlib
+
+Files: neo/idlib/hashing/MD5.*
+Copyright: 1993 Colin Plumb, no copyright is claimed.
+License: md5-publicdomain
+ This code implements the MD5 message-digest algorithm.
+ The algorithm is due to Ron Rivest. This code was
+ written by Colin Plumb in 1993, no copyright is claimed.
+ This code is in the public domain; do with it what you wish.
+
+Files: neo/idlib/hashing/MD4.*
+Copyright: 1991-92 RSA Data Security, Inc.
+License: rsa-md4
+ License to copy and use this software is granted provided that it
+ is identified as the "RSA Data Security, Inc. MD4 Message-Digest
+ Algorithm" in all material mentioning or referencing this software
+ or this function.
+ .
+ License is also granted to make and use derivative works provided
+ that such works are identified as "derived from the RSA Data
+ Security, Inc. MD4 Message-Digest Algorithm" in all material
+ mentioning or referencing the derived work.
+ .
+ RSA Data Security, Inc. makes no representations concerning either
+ the merchantability of this software or the suitability of this
+ software for any particular purpose. It is provided "as is"
+ without express or implied warranty of any kind.
+ .
+ These notices must be retained in any copies of any part of this
+ documentation and/or software.
+
+Files: neo/idlib/hashing/CRC32.*
+Copyright: 1995-1998 Mark Adler
+License: zlib
+
+Files: neo/idlib/Base64.cpp
+Copyright: 1996 Lars Wirzenius
+License: BSD-2-clause
+
+Files: neo/sys/linux/setup/brandelf.c
+Copyright: 1996 Søren Schmidt
+License: BSD-2-clause
+
+License: BSD-2-clause
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+ .
+ 1. Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ .
+ 2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+
+License: zlib
+ Condition of use and distribution are the same than zlib :
+ .
+ This software is provided 'as-is', without any express or implied
+ warranty. In no event will the authors be held liable for any damages
+ arising from the use of this software.
+ .
+ Permission is granted to anyone to use this software for any purpose,
+ including commercial applications, and to alter it and redistribute it
+ freely, subject to the following restrictions:
+ .
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.
+
+
+
+Files: debian/*
+Copyright: 2015 Tobias Frost <tobi at debian.org>
+License: GPL-3+
+ This package is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 3 of the License, or
+ (at your option) any later version.
+ .
+ This package is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>
+ .
+ On Debian systems, the complete text of the GNU General
+ Public License version 3 can be found in "/usr/share/common-licenses/GPL-3".
diff --git a/debian/dhewm3-d3xp.desktop b/debian/dhewm3-d3xp.desktop
new file mode 100644
index 0000000..c1c9a48
--- /dev/null
+++ b/debian/dhewm3-d3xp.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Name=DOOM³: Resurrection of Evil
+GenericName=DOOM³: Resurrection of Evil
+TryExec=dhewm3
+Exec=dhewm3 +set fs_game d3xp
+Icon=doom3.png
+Terminal=false
+Type=Application
+Categories=Game
+Keywords=doom3,game,First-Person-Shooter
diff --git a/debian/dhewm3-d3xp.install b/debian/dhewm3-d3xp.install
new file mode 100644
index 0000000..3386193
--- /dev/null
+++ b/debian/dhewm3-d3xp.install
@@ -0,0 +1,2 @@
+debian/dhewm3-d3xp.desktop usr/share/applications
+usr/lib/*/dhewm3/d3xp.so
diff --git a/debian/dhewm3-d3xp.lintian-overrides b/debian/dhewm3-d3xp.lintian-overrides
new file mode 100644
index 0000000..6f0859d
--- /dev/null
+++ b/debian/dhewm3-d3xp.lintian-overrides
@@ -0,0 +1,2 @@
+# Yes, the engine is in a different package.
+dhewm3-d3xp: desktop-command-not-in-package
diff --git a/debian/dhewm3-doom3.desktop b/debian/dhewm3-doom3.desktop
new file mode 100644
index 0000000..dd0a452
--- /dev/null
+++ b/debian/dhewm3-doom3.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Name=DOOM³
+GenericName=DOOM³
+TryExec=dhewm3
+Exec=dhewm3 +set fs_game base
+Icon=doom3.png
+Terminal=false
+Type=Application
+Categories=Game
+Keywords=doom3,game,First-Person-Shooter
diff --git a/debian/dhewm3-doom3.install b/debian/dhewm3-doom3.install
new file mode 100644
index 0000000..56dfd18
--- /dev/null
+++ b/debian/dhewm3-doom3.install
@@ -0,0 +1,2 @@
+debian/dhewm3-doom3.desktop usr/share/applications
+usr/lib/*/dhewm3/base.so
diff --git a/debian/dhewm3-doom3.lintian-overrides b/debian/dhewm3-doom3.lintian-overrides
new file mode 100644
index 0000000..83ae69c
--- /dev/null
+++ b/debian/dhewm3-doom3.lintian-overrides
@@ -0,0 +1,2 @@
+# Yes, the engine is in a different package.
+dhewm3-doom3: desktop-command-not-in-package
diff --git a/debian/dhewm3.6 b/debian/dhewm3.6
new file mode 100644
index 0000000..0bc7881
--- /dev/null
+++ b/debian/dhewm3.6
@@ -0,0 +1,17 @@
+.TH DHEWM3 6 "JUNE 2014"
+.SH NAME
+dhewm3 \- Doom 3 engine
+.SH SYNOPSIS
+.B dhewm3 \fR[options]
+
+.SH DESCRIPTION
+\fBdhewm3\fR is the game engine for the DOOM 3 game. Please note,
+to play the game you'll need the game data which cannot be distriuted
+by Debian
+.TP
+Please note that you have to patch your game data to version v1.3.1.
+See /usr/share/docs/dhewm3/README.Debian for details and how to package
+the game data for local installation.
+
+.SH "SEE ALSO"
+.I https://github.com/dhewm/dhewm3, /usr/share/docs/dhewm3/README.Debian
\ No newline at end of file
diff --git a/debian/dhewm3.install b/debian/dhewm3.install
new file mode 100644
index 0000000..83c9ff7
--- /dev/null
+++ b/debian/dhewm3.install
@@ -0,0 +1,2 @@
+neo/sys/linux/setup/image/doom3.png /usr/share/pixmaps/
+usr/games/dhewm3
diff --git a/debian/dhewm3.manpages b/debian/dhewm3.manpages
new file mode 100644
index 0000000..93cca64
--- /dev/null
+++ b/debian/dhewm3.manpages
@@ -0,0 +1 @@
+debian/dhewm3.6
diff --git a/debian/gbp.conf b/debian/gbp.conf
new file mode 100644
index 0000000..cec628c
--- /dev/null
+++ b/debian/gbp.conf
@@ -0,0 +1,2 @@
+[DEFAULT]
+pristine-tar = True
diff --git a/debian/patches/01-changedatadir.patch b/debian/patches/01-changedatadir.patch
new file mode 100644
index 0000000..593e930
--- /dev/null
+++ b/debian/patches/01-changedatadir.patch
@@ -0,0 +1,16 @@
+Description: Change default search path for game data /usr/games/doom3
+Author: Tobias Frost <tobi at debian.org>
+Last-Update: 2015-02-14
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/neo/CMakeLists.txt
++++ b/neo/CMakeLists.txt
+@@ -262,7 +262,7 @@
+
+ set(bindir "${CMAKE_INSTALL_FULL_BINDIR}")
+ set(libdir "${CMAKE_INSTALL_FULL_LIBDIR}/dhewm3")
+-set(datadir "${CMAKE_INSTALL_FULL_DATADIR}/dhewm3")
++set(datadir "${CMAKE_INSTALL_FULL_DATADIR}/doom3")
+
+ configure_file(
+ "${CMAKE_SOURCE_DIR}/config.h.in"
diff --git a/debian/patches/02-spelling-errors.patch b/debian/patches/02-spelling-errors.patch
new file mode 100644
index 0000000..c3c8f85
--- /dev/null
+++ b/debian/patches/02-spelling-errors.patch
@@ -0,0 +1,97 @@
+Description: Fixing some spelling errors
+Those words are fixed: s/unkown/unknown, s/seperate/separate.
+Fixes are only done in code, comments are only touch when the there was also
+a code location to fix in the same file.
+Author: Tobias Frost <tobi at debian.org>
+Last-Update: 2015-02-14
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/neo/framework/DeclAF.cpp
++++ b/neo/framework/DeclAF.cpp
+@@ -893,7 +893,7 @@
+ src.Error( "custom models not yet implemented" );
+ return false;
+ } else {
+- src.Error( "unkown model type %s", token.c_str() );
++ src.Error( "unknown model type %s", token.c_str() );
+ return false;
+ }
+ } else if ( !token.Icmp( "origin" ) ) {
+--- a/neo/idlib/Lexer.cpp
++++ b/neo/idlib/Lexer.cpp
+@@ -192,7 +192,7 @@
+ return idLexer::punctuations[i].p;
+ }
+ }
+- return "unkown punctuation";
++ return "unknown punctuation";
+ }
+
+ /*
+--- a/neo/idlib/Parser.cpp
++++ b/neo/idlib/Parser.cpp
+@@ -3144,7 +3144,7 @@
+ return idParser::punctuations[i].p;
+ }
+ }
+- return "unkown punctuation";
++ return "unknown punctuation";
+ }
+
+ /*
+--- a/neo/d3xp/gamesys/SysCvar.cpp
++++ b/neo/d3xp/gamesys/SysCvar.cpp
+@@ -416,4 +416,4 @@
+
+ idCVar net_serverDownload( "net_serverDownload", "0", CVAR_GAME | CVAR_INTEGER | CVAR_ARCHIVE, "enable server download redirects. 0: off 1: redirect to si_serverURL 2: use builtin download. see net_serverDl cvars for configuration" );
+ idCVar net_serverDlBaseURL( "net_serverDlBaseURL", "", CVAR_GAME | CVAR_ARCHIVE, "base URL for the download redirection" );
+-idCVar net_serverDlTable( "net_serverDlTable", "", CVAR_GAME | CVAR_ARCHIVE, "pak names for which download is provided, seperated by ;" );
++idCVar net_serverDlTable( "net_serverDlTable", "", CVAR_GAME | CVAR_ARCHIVE, "pak names for which download is provided, separated by ;" );
+--- a/neo/d3xp/physics/Physics_AF.cpp
++++ b/neo/d3xp/physics/Physics_AF.cpp
+@@ -3075,7 +3075,7 @@
+ return;
+ }
+
+- // seperate friction per contact is silly but it's fast and often looks close enough
++ // separate friction per contact is silly but it's fast and often looks close enough
+ if ( af_useImpulseFriction.GetBool() ) {
+
+ impulse.SetData( 6, VECX_ALLOCA( 6 ) );
+@@ -6963,7 +6963,7 @@
+ }
+
+ if ( trees.Num() > 1 ) {
+- gameLocal.Warning( "Articulated figure has multiple seperate tree structures for entity '%s' type '%s'.",
++ gameLocal.Warning( "Articulated figure has multiple separate tree structures for entity '%s' type '%s'.",
+ self->name.c_str(), self->GetType()->classname );
+ }
+
+--- a/neo/game/gamesys/SysCvar.cpp
++++ b/neo/game/gamesys/SysCvar.cpp
+@@ -334,4 +334,4 @@
+
+ idCVar net_serverDownload( "net_serverDownload", "0", CVAR_GAME | CVAR_INTEGER | CVAR_ARCHIVE, "enable server download redirects. 0: off 1: redirect to si_serverURL 2: use builtin download. see net_serverDl cvars for configuration" );
+ idCVar net_serverDlBaseURL( "net_serverDlBaseURL", "", CVAR_GAME | CVAR_ARCHIVE, "base URL for the download redirection" );
+-idCVar net_serverDlTable( "net_serverDlTable", "", CVAR_GAME | CVAR_ARCHIVE, "pak names for which download is provided, seperated by ;" );
++idCVar net_serverDlTable( "net_serverDlTable", "", CVAR_GAME | CVAR_ARCHIVE, "pak names for which download is provided, separated by ;" );
+--- a/neo/game/physics/Physics_AF.cpp
++++ b/neo/game/physics/Physics_AF.cpp
+@@ -3074,7 +3074,7 @@
+ return;
+ }
+
+- // seperate friction per contact is silly but it's fast and often looks close enough
++ // separate friction per contact is silly but it's fast and often looks close enough
+ if ( af_useImpulseFriction.GetBool() ) {
+
+ impulse.SetData( 6, VECX_ALLOCA( 6 ) );
+@@ -6962,7 +6962,7 @@
+ }
+
+ if ( trees.Num() > 1 ) {
+- gameLocal.Warning( "Articulated figure has multiple seperate tree structures for entity '%s' type '%s'.",
++ gameLocal.Warning( "Articulated figure has multiple separate tree structures for entity '%s' type '%s'.",
+ self->name.c_str(), self->GetType()->classname );
+ }
+
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..b4fbc9b
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+01-changedatadir.patch
+02-spelling-errors.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..2990db5
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,57 @@
+#!/usr/bin/make -f
+
+# output every command that modifies files on the build system.
+DH_VERBOSE = 1
+
+%:
+ dh $@ -Dneo
+
+# debmake generated override targets
+# This is example for Cmake (See http://bugs.debian.org/641051 )
+override_dh_auto_configure:
+ dh_auto_configure -- \
+ -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH) -DSDL2=ON \
+ -DCMAKE_INSTALL_BINDIR="games" -DCMAKE_INSTALL_DATADIR="share/games" \
+ -DCMAKE_BUILD_TYPE=Debian
+
+# For get-orig-source
+UURL = https://github.com/dhewm/dhewm3.git
+PKD = $(abspath $(dir $(MAKEFILE_LIST)))
+PKG = $(word 2,$(shell dpkg-parsechangelog -l$(PKD)/changelog | grep ^Source))
+VER ?= $(shell dpkg-parsechangelog -l$(PKD)/changelog -SVersion | sed -e s/^.*git// -e s/+repack// | cut -d- -f1 )
+DTYPE = +repack
+UPSVER ?= $(shell dpkg-parsechangelog -l$(PKD)/changelog -SVersion | cut -d~ -f1)
+
+## from: https://wiki.debian.org/onlyjob/get-orig-source
+.PHONY: get-orig-source
+get-orig-source: $(PKG)_$(UPSVER)~git$(VER)$(DTYPE).orig.tar.xz
+ #$(info I: $(UPSVER$)~$(PKG)_$(VER)$(DTYPE))
+ @
+
+UDATE = $(shell date --rfc-3339=seconds --date='TZ="UTC" \
+ $(shell echo ~git$(VER) | perl -ne 'print "$$1-$$2-$$3" if m/\~(?:git|svn|hg)(\d{4})(\d{2})(\d{2})/')')
+
+$(PKG)_$(UPSVER)~git$(VER)$(DTYPE).orig.tar.xz:
+ @echo DEBUG: VER=$(VER) UDATE=$(UDATE) UPSVER=$(UPSVER)
+ echo "$(PKG)_$(UPSVER)~git$(VER)$(DTYPE).orig.tar.xz"
+ #$(info I: UDATE=$(UDATE))
+ $(if $(wildcard $(PKG)-$(UPSVER)~git$(VER)),$(error $(PKG)-$(UPSVER)~git$(VER) exist, aborting..))
+ @echo "# Downloading..."
+ git clone $(UURL) $(PKG)-$(UPSVER)~git$(VER) \
+ || $(RM) -r $(PKG)-$(UPSVER)~git$(VER)
+ cd $(PKG)-$(UPSVER)~git$(VER) \
+ && git checkout v$(VER) || git checkout $$(git log -n1 --format=%h --before="$(UDATE)") \
+ && ( echo "# Generating ChangeLog..." \
+ && git log --pretty="format:%ad %aN <%aE>%n%n%x09* %s%n" --date=short > ChangeLog \
+ && touch -d "$$(git log -1 --format='%ci')" ChangeLog) \
+ && echo "# Setting times..." \
+ && for F in $$(git ls-tree -r --name-only HEAD); do touch --no-dereference -d "$$(git log -1 --format="%ai" -- $$F)" "$$F"; done \
+ && echo "# Cleaning-up..." \
+ && $(RM) -r -v \
+ neo/tools/common/PropTree/* neo/sys/win32/* neo/sys/linux/setup/*/bin/* \
+ neo/sys/linux/setup/lokisetup neo/sys/linux/setup/image-* neo/sys/linux/setup/makeself \
+ && $(RM) -r .git .git*
+ @echo "# Packing..."
+ find -L "$(PKG)-$(UPSVER)~git$(VER)" -xdev -type f -print | sort \
+ | XZ_OPT="-6v" tar -caf "$(PKG)_$(UPSVER)~git$(VER)$(DTYPE).orig.tar.xz" -T- --owner=root --group=root --mode=a+rX \
+ && $(RM) -r "$(PKG)-$(UPSVER)~git$(VER)"
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..a9a32b0
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,6 @@
+version=3
+
+opts=filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/dhewm3-$1\.tar\.gz/ \
+ https://github.com/dhewm/dhewm3/tags .*/v?(\d\S*)\.tar\.gz
+
+
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/dhewm3.git
More information about the Pkg-games-commits
mailing list