[torcs] 01/01: Add initial Debian directory for version 1.3.7+dfsg-1

Markus Koschany apo at moszumanska.debian.org
Fri May 5 22:17:46 UTC 2017


This is an automated email from the git hooks/post-receive script.

apo pushed a commit to branch master
in repository torcs.

commit e88d1d660467e36673c55d4ec6a0df510bbdf740
Author: Markus Koschany <apo at debian.org>
Date:   Sat May 6 00:16:05 2017 +0200

    Add initial Debian directory for version 1.3.7+dfsg-1
---
 debian/README.source                      |  11 +
 debian/changelog                          | 330 ++++++++++++++++++++++++++++++
 debian/clean                              |  12 ++
 debian/compat                             |   1 +
 debian/control                            |  58 ++++++
 debian/copyright                          | 287 ++++++++++++++++++++++++++
 debian/patches/format-argument.patch      |  35 ++++
 debian/patches/gcc6-isnan.patch           |  23 +++
 debian/patches/glibc-default-source.patch |  23 +++
 debian/patches/manpage-and-spelling.patch | 160 +++++++++++++++
 debian/patches/series                     |   4 +
 debian/rules                              |  54 +++++
 debian/source/format                      |   1 +
 debian/torcs-data.install                 |   1 +
 debian/torcs-data.links                   |   1 +
 debian/torcs.desktop                      |  13 ++
 debian/torcs.install                      |   3 +
 debian/torcs.manpages                     |   7 +
 debian/watch                              |   3 +
 19 files changed, 1027 insertions(+)

diff --git a/debian/README.source b/debian/README.source
new file mode 100644
index 0000000..61e4ca2
--- /dev/null
+++ b/debian/README.source
@@ -0,0 +1,11 @@
+TORCS for Debian
+================
+
+The original tarball has been repacked because it contained non-free car models
+and cruft like CVS directories and windows files.
+
+Please use debian/rules get-orig-source to retrieve the dfsg-free sources.
+
+The old Git repository (prior to version 1.3.7+dfsg-1) can be found at:
+https://anonscm.debian.org/git/pkg-games/torcs_old.git
+
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..edda8e5
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,330 @@
+torcs (1.3.7+dfsg-1) experimental; urgency=medium
+
+  * New upstream release. (Closes: #731043)
+  * Repack the tarball and remove non-free car models.
+  * New maintainer Debian Games Team. Add myself as Uploader. (Closes: #846794)
+  * Drop 0002-fix-as-needed-build.patch and 0003-fix-glibc-isnan-isinf.patch
+    (apparently fixed by upstream) and refresh the remaining patches.
+  * Add manpage-and-spelling.patch and fix some minor spelling mistakes and man
+    page errors.
+  * Remove torcs-data-cars and torcs-data-tracks binary packages and ship all
+    data files with torcs-data from now on.
+  * Declare compliance with Debian Policy 3.9.8.
+  * Use canonical Vcs-URI and move the packaging to pkg-games. Only commit the
+    debian directory because it is simpler to maintain.
+  * Remove obsolete Build-Conflicts field.
+  * Switch to compat level 10.
+  * Switch from cdbs to dh sequencer.
+  * Add README.source file. Explain how to retrieve the dfsg-free sources.
+  * Drop README.Debian and TODO.Debian. Obsolete.
+  * Install upstream's man pages from now on. (which were in fact provided by
+    Debian)
+  * Drop deprecated Debian menu file.
+  * Add keywords and a comment in German to torcs.desktop.
+  * Update debian/watch file and add a get-orig-source target.
+  * Update debian/copyright for the latest upstream release. Add missing
+    licenses.
+  * Use all hardening build flags and build with -Wl,--as-needed.
+
+ -- Markus Koschany <apo at debian.org>  Fri, 05 May 2017 20:47:01 +0200
+
+torcs (1.3.3+dfsg-0.4) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Replace fix-ftbfs-glib.patch by 0003-fix-glibc-isnan-isinf.patch: better
+    patch to fix the build failure with glibc 2.23.
+  * Add 0004-fix-gcc6-isnan.patch: fix the build failure with GCC 6 (Closes:
+    #831201).
+  * Add 0005-fix-glibc-default-source.patch: kill deprecation warnings when
+    building with glibc >= 2.23.
+
+ -- Aurelien Jarno <aurel32 at debian.org>  Wed, 27 Jul 2016 22:05:12 +0000
+
+torcs (1.3.3+dfsg-0.3) unstable; urgency=medium
+
+  * d/p/fix-ftbfs-glib.patch: Fix build failure
+    with glib 2.23 (Closes: #818813, #829723)
+
+ -- Gianfranco Costamagna <locutusofborg at debian.org>  Mon, 11 Jul 2016 16:26:29 +0200
+
+torcs (1.3.3+dfsg-0.2) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Change libpng12-dev build dependency to libpng-dev (and remove
+    version constraint, not possible for virtual dependencies)
+    to ease libpng transition (Closes: #662522)
+
+ -- Gianfranco Costamagna <locutusofborg at debian.org>  Thu, 21 Jan 2016 16:10:48 +0100
+
+torcs (1.3.3+dfsg-0.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Repack source, removing src/windows including libraries for Win32 in
+    binary form only, and useless CVS directories. (Closes: #685144)
+  * debian/rules: protect automatically modified files during the source
+    building, restore them at the end of the process, and remove other extra
+    files during the clean target. (Closes: #684845)
+
+ -- David Prévot <taffit at debian.org>  Fri, 24 Aug 2012 01:08:42 -0400
+
+torcs (1.3.3-6) unstable; urgency=low
+
+  * Resolved Lintian warnings
+    - debian/copyright: Licensing for 155-DTM is GPL, according sources.
+    - debian/rules: Empty script in torcs-data.
+
+ -- Rudy Godoy <rudy at stone-head.org>  Wed, 04 Jul 2012 22:26:21 -0500
+
+torcs (1.3.3-5) unstable; urgency=low
+
+  * Reworked debian/copyright to conform machine readable policy.
+  * Added artwork licensing for cars (-data-cars).
+  * Updated car list shipped within the torcs-data-cars package.
+    (Closes: #678827)
+  * Removed empty script (telemetry.sh) from torcs to make lintian happy.
+  * Reworded -data* packages description to be more descriptive and clear.
+  * Removed 'Website' pseudo-field since the package has Homepage field set.
+
+ -- Rudy Godoy <rudy at stone-head.org>  Wed, 30 May 2012 18:30:54 -0500
+
+torcs (1.3.3-4) unstable; urgency=low
+
+  * Fixed wording on package description.
+  * Finally, fixes upgrading errors due new packaging layout. (Closes: #664220)
+  * Reworked most of the Debian part of the build system
+    to support autotools update on build-time.
+  * Updated debian/TODO.Debian
+  * Added debian/source/local-options to prevent dpkg-source errors
+    due build-time generated files.
+
+ -- Rudy Godoy <rudy at stone-head.org>  Tue, 15 May 2012 17:27:43 -0500
+
+torcs (1.3.3-3) unstable; urgency=low
+
+  * Updated standards version to 3.9.3.
+  * Updated maintainer email.
+  * Added Vcs-Git field to debian/control.
+  * Added Breaks field to solve install conflict (Closes: #664220)
+
+ -- Rudy Godoy <rudy at stone-head.org>  Thu, 05 Apr 2012 16:52:07 -0500
+
+torcs (1.3.3-2) unstable; urgency=low
+
+  * torcs-data: Fixed dependency relationships to allow clean upgrade
+    from previous versions. (Closes: #664220)
+  * Updated watch and README.Debian-source to reflect use of upstream's
+    "all-in-one" source tarball instead of the split ones.
+  * Put back Art licensing to .copyright files for -data, -data-tracks
+    and -data-cars.
+  * Package is in better shape now and includes security fixes.
+    (Closes: #660516, #660555)
+
+ -- Rudy Godoy <rudy at stone-head.org>  Sat, 17 Mar 2012 21:51:12 -0500
+
+torcs (1.3.3-1) unstable; urgency=low
+
+  * New upstream release
+  * Removed patches accepted and merged by upstream:
+    - debian/patches/03
+    - debian/patches/04
+    - debian/patches/07
+  * Added libvorbis dependency to build-deps
+  * Removed dependency on menu. (Closes: #647380)
+  * Switched to dpkg-source 3.0 (quilt) format
+  * Merged packaging from -data packages.
+  * Bumped standars version. No changes needed.
+
+ -- Rudy Godoy <rudy at stone-head.org>  Thu, 01 Mar 2012 01:51:49 -0500
+
+torcs (1.3.1-6.2) unstable; urgency=low
+
+  * Non-maintainer upload. (version 1.3.1-6.1 triggered a problem with dak)
+  * 06-add-format-argument.patch: add format argument to
+    avoid format-security error while building. (Closes: #646469)
+  * 07-update-to-libpng15.patch: libpng transition. Thanks to Nobuhiro Iwamatsu!
+    (Closes: #636009)
+
+ -- Mònica Ramírez Arceda <monica at probeta.net>  Sun, 04 Dec 2011 11:34:02 +0100
+
+torcs (1.3.1-6) unstable; urgency=low
+
+  * Fixed .desktop file to be valid. Thanks Pino Toscano. Closes: #638957
+  * Added patch to fix FTBS caused by libraceengine.so being underlinked.
+    Thanks Julian Taylor. Closes: #638719
+
+ -- Rudy Godoy <rudy at debian.org>  Tue, 30 Aug 2011 19:56:17 -0500
+
+torcs (1.3.1-5) unstable; urgency=low
+
+  * Fixed insecure library loading (LD_LIBRARY_PATH) (CVE-2010-3384) Closes: #598306.
+
+ -- Rudy Godoy <rudy at debian.org>  Sat, 09 Oct 2010 17:56:12 -0500
+
+torcs (1.3.1-4) unstable; urgency=low
+
+  * Removed '3DGraphics' category from .desktop. Thanks Andrew Higginson.
+    (Closes: #588215) (LP: #532066)
+  * Bumped debian/watch version to 3 and fixed URI issue.
+
+ -- Rudy Godoy <rudy at debian.org>  Sun, 22 Aug 2010 13:27:28 -0500
+
+torcs (1.3.1-3) unstable; urgency=low
+
+  * Fixed missing documentation install in debian/rules (Closes: #577354)
+  * Removed xrandr exclusion on configure and automake1.9 dependency
+    from debian/control (Closes: #552593)
+  * Fixed long URLs in manpage and updated author email address.
+
+ -- Rudy Godoy <rudy at debian.org>  Sat, 08 May 2010 21:48:56 -0500
+
+torcs (1.3.1-2) unstable; urgency=low
+
+  * Add dependency on libtool (Closes: #529023)
+  * Updated link for tutorial on manpage (Closes: #465459)
+
+ -- Rudy Godoy <rudy at debian.org>  Sun, 14 Jun 2009 22:13:04 -0500
+
+torcs (1.3.1-1) unstable; urgency=low
+
+  * Now Torcs ships more drivers-robots (Closes: #440167)
+  * New upstream release (Closes: #509324)
+  * Reworked copyright information. Added license text.
+  * Updated watch file to properly support SF's download urls
+  * Removed dependency on xlibmesa-gl
+  * Removed versioned Build-Depends on plib1.8.4-dev (Closes: #516923)
+
+ -- Rudy Godoy <rudy at debian.org>  Sun, 01 Mar 2009 03:58:39 -0500
+
+torcs (1.3.0-3) unstable; urgency=low
+
+  * Removed new.h include on simuv2 SOLID 2.0 source for GCC 4.3
+    compliance. (Closes: #461946)
+  * Reencoded Debian's copyright file to UTF8, making lintian happy
+
+ -- Rudy Godoy <rudy at debian.org>  Sun, 03 Feb 2008 16:08:12 -0500
+
+torcs (1.3.0-2) unstable; urgency=low
+
+  * Reworked dependencies, now using libgl1-mesa-dev. mesa GLX libs are not
+    actually used.
+  * Not running autoconf and automake before compiling, this causes configure
+    to ran again and loses arguments.
+  * Exclude xrandr from configure to workaround OpenAL bug when it can't open
+    a sound device (Closes: #445806)
+  * Removed Application category and FilePattern to match FreeDesktop specs from .desktop entry.
+  * Upgraded to debian policy 3.7.3, no changes need
+
+ -- Rudy Godoy <rudy at debian.org>  Sun, 23 Dec 2007 17:03:28 -0500
+
+torcs (1.3.0-1) unstable; urgency=low
+
+  * New upstream release (Closes: #393439)
+  * Bumped standards version, no changes needed
+  * Removed track_cpp and alut patches
+  * Worked out build scripts to fix FTBS when build twice in a row (Closes: #424215)
+
+ -- Rudy Godoy <rudy at debian.org>  Sun, 27 May 2007 22:30:21 -0500
+
+torcs (1.2.4-3) unstable; urgency=low
+
+  * Applied patch for XML entity. Thanks Emmet Hikory (Closes: #407890)
+  * Switched maintainer email address.
+  * Bumped Standards version, no changes needed.
+  * Backported patch from 1.3 to fix saving screenshots on
+    $HOME/.torcs/screenshots/ directory. (Closes: #412347)
+
+ -- Rudy Godoy <rudy at debian.org>  Sun, 25 Mar 2007 23:25:05 -0500
+
+torcs (1.2.4-2) unstable; urgency=low
+
+  * Rebuild for C++ allocator change and merged patches from Ubuntu.
+  * Changed priority to optional
+  * Removed some Xlibs build dependencies to use only the required ones.
+  * Applied patch to fix FTBFS with GCC 4.1. Thanks tbm. (Closes: #356965)
+  * Added dependency to libalut-dev since it was splitted from libopenal. (Closes: #360193, #362804)
+  * Added patch to fix `find' call for lliaw/tracksdata with wrong parameters
+    order.
+  * Fixes in configure.in:
+    - Configure error: can't find libm. Added condition for LDFLAGS to check if
+      $x_libraries is defined. (Closes: #366935)
+    - Added check for libalut now that it has been splitted from openal,
+      so it gets on .depends for linking.
+  * Added back autoconf and automake to build depends for rebootstrapping on build time.
+    This should be removed once upstream accepts the patches.
+
+ -- Rudy Godoy <rudy at kernel-panik.org>  Sun, 14 May 2006 14:19:15 -0500
+
+torcs (1.2.4-1) unstable; urgency=low
+
+  * New upstream release (Closes: #329463)
+  * C++ ABI transition
+  * New robots added, see README.Debian-source
+  * Removed patches from previous version, mostly merged with upstream
+  * Not boostraping autoconf on build time, removed autotools dependency
+  * Changed build dependencies from X.org xlibs to only the needed ones
+  * Added .desktop file
+
+ -- Rudy Godoy <rudy at kernel-panik.org>  Tue,  4 Oct 2005 15:37:49 -0500
+
+torcs (1.2.3-2) unstable; urgency=low
+
+  * Bumped revision to supersede experimental package.
+
+ -- Rudy Godoy <rudy at kernel-panik.org>  Mon, 23 May 2005 01:26:09 -0500
+
+torcs (1.2.3-1) unstable; urgency=low
+
+  * New upstream release (Closes: #304114)
+  * Switched to CDBS package build system.
+  * Patches applied using simple-patchsys:
+    Fixes in configure.in:
+      - Fixed hardcoded path for ccmalloc
+    Fixes in Makefile:
+      - Fixed torcs.rc location on build time to use $TORCS_BASE
+    - Fixed: FTBFS (amd64/gcc-4.0): cast from 'void*' to 'int' loses
+	   precision (Closes: #297974)
+  * Changed priority to extra to accomplish dependency policy.
+  * Added mention to hardware requirements on package' description.
+  * Changed build dependency on libpng3-dev to libpng12-dev to
+    anticipate post-sarge removal. (Closes: #303704)
+  * Fixed: Build depends on plib1.8.3-pic which isn't in unstable
+    anymore. Changed to plib1.8.4 (Closes: #310215)
+  * Fixed: Segmentation fault on selecting race. New torcs-data-*
+    packages now include full data files (Closes: #281901)
+
+ -- Rudy Godoy <rudy at kernel-panik.org>  Mon, 23 May 2005 00:13:31 -0500
+
+torcs (1.2.2-5) unstable; urgency=low
+
+  * Added architecture handling condition to makefile.in, thus it properly
+    handles ieee-fp on non-i386 archs
+  * Changed dependancy on plib-dev to plib-pic to properly handle non-PIC
+    code, thanks Michel Dänzer <daenzer at debian.org>
+
+ -- Rudy Godoy <rudy at kernel-panik.org>  Sat, 29 May 2004 03:35:49 -0300
+
+torcs (1.2.2-4) unstable; urgency=low
+
+  * Changed logofile to Ticon.png
+
+ -- Rudy Godoy <rudy at kernel-panik.org>  Wed, 26 May 2004 01:24:09 -0300
+
+torcs (1.2.2-3) unstable; urgency=low
+
+  * Upated dependencies for: libpng and plib1.8.3
+  * Depends only on libfreeglu3
+
+ -- Rudy Godoy <rudy at kernel-panik.org>  Sun, 16 May 2004 13:51:59 -0500
+
+torcs (1.2.2-2) unstable; urgency=low
+
+  * Fixes on bad handling of torcs-data dependency.
+
+ -- Rudy Godoy <rudy at kernel-panik.org>  Mon,  5 Apr 2004 09:01:06 -0500
+
+torcs (1.2.2-1) unstable; urgency=low
+
+  * Initial Release.
+
+ -- Rudy Godoy <rudy at kernel-panik.org>  Thu, 26 Feb 2004 22:08:42 -0500
+
diff --git a/debian/clean b/debian/clean
new file mode 100644
index 0000000..11abcd4
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1,12 @@
+Make-config
+config.h
+src/doc/torcsdoc.conf
+src/linux/torcs
+src/tools/accc/accc
+src/tools/nfs2ac/nfs2ac
+src/tools/nfsperf/nfsperf
+src/tools/texmapper/texmapper
+src/tools/trackgen/trackgen
+stamp-h1
+torcs.rc
+.torcs.rc
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..f599e28
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+10
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..13c60dd
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,58 @@
+Source: torcs
+Section: games
+Priority: optional
+Maintainer: Debian Games Team <pkg-games-devel at lists.alioth.debian.org>
+Uploaders:
+ Markus Koschany <apo at debian.org>
+Build-Depends:
+ debhelper (>= 10),
+ freeglut3-dev (>= 2.2.0),
+ libalut-dev (>= 1.0.0),
+ libgl1-mesa-dev,
+ libopenal-dev,
+ libplib-dev,
+ libpng-dev,
+ libvorbis-dev,
+ libx11-dev (>= 6.8.2),
+ libxi-dev,
+ libxmu-dev (>= 6.8.2),
+ libxrandr-dev,
+ libxrender-dev,
+ libxt-dev (>= 6.8.2),
+ libxxf86vm-dev (>= 6.8.2),
+ zlib1g-dev (>= 1.2.1.1)
+Standards-Version: 3.9.8
+Vcs-Git: https://anonscm.debian.org/git/pkg-games/torcs.git
+Vcs-Browser: https://anonscm.debian.org/git/pkg-games/torcs.git
+Homepage: http://torcs.org
+
+Package: torcs
+Architecture: any
+Depends:
+ torcs-data (>= 1.3.7+dfsg),
+ ${misc:Depends},
+ ${shlibs:Depends}
+Description: 3D racing cars simulator game using OpenGL
+ TORCS, The Open Racing Car Simulator, is a car racing simulation game which
+ allows you to drive in races against opponents simulated by the computer.
+ .
+ You can also develop your own computer-controlled driver (also called a robot)
+ in C or C++.
+
+Package: torcs-data
+Architecture: all
+Breaks:
+ torcs-data-cars (<< 1.3.7+dfsg-1),
+ torcs-data-tracks (<< 1.3.7+dfsg-1)
+Replaces:
+ torcs-data-cars (<< 1.3.7+dfsg-1),
+ torcs-data-tracks (<< 1.3.7+dfsg-1)
+Suggests:
+ torcs (>= 1.3.7+dfsg)
+Depends:
+ ${misc:Depends}
+Description: data files for TORCS
+ TORCS, The Open Racing Car Simulator, is a car racing simulation game which
+ allows you to drive in races against opponents simulated by the computer.
+ .
+ This package includes all data files for the game including cars and tracks.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..89d5caa
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,287 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: TORCS
+Upstream-Contact: Bernhard Wymann <berniew at bluechin.ch>
+Source: http://torcs.sourceforge.net
+
+Files: *
+Copyright: 2000, Eric Espié <eric.espie at free.fr>
+           2002, Christophe Guionneau <christophe.guinneau at fnac.net>
+           2005, Bernhard Wymann <berniew at bluechin.ch>
+           2000, Andrea Alfieri <alfiogt at libero.it>
+License: GPL-2+
+
+Files: src/libs/tgfclient/fg_gm.cpp
+Copyright: 1999-2000 Pawel W. Olszta
+           2003, Eric Espi
+           2004, Bernhard Wymann
+License: Expat
+ Permission is hereby granted, free of charge, to any person obtaining a copy
+ of this software and associated documentation files (the "Software"), to deal
+ in the Software without restriction, including without limitation the rights
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ copies of the Software, and to permit persons to whom the Software is
+ furnished to do so, subject to the following conditions: The above copyright
+ notice and this permission notice shall be included in all copies or
+ substantial portions of the Software.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL PAWEL
+ W. OLSZTA BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+Files: src/modules/simu/simuv2/SOLID-2.0/*
+       src/modules/graphic/ssggraph/grloadac.cpp
+Copyright: 1997, 1998 Gino van den Bergen
+           2001, Steve Baker
+License: LGPL-2+
+
+Files: data/cars/models/acura-nsx-sz/*
+       data/tracks/dirt/dirt-1/*
+       data/tracks/dirt/dirt-3/*
+       data/tracks/dirt/dirt-2/*
+       data/tracks/mixed-1/*
+       data/tracks/e-track-4/*
+       data/tracks/dirt-5/*
+       data/tracks/oval/b-speedway/*
+       data/tracks/oval/f-speedway/*
+       data/tracks/oval/c-speedway/*
+       data/tracks/oval/michigan/*
+       data/tracks/oval/e-speedway/*
+       data/tracks/oval/g-speedway/*
+       data/tracks/oval/d-speedway/*
+       data/tracks/road/wheel-1/*
+       data/tracks/road/g-track-2/*
+       data/tracks/road/wheel-2/*
+       data/tracks/road/g-track-3/*
+       data/tracks/road/forza/*
+       data/tracks/road/street-1/*
+       data/tracks/road/e-track-2/*
+       data/tracks/road/e-track-6/*
+       data/tracks/road/brondehach/*
+       data/tracks/road/alpine-2/*
+       data/tracks/road/ole-road-1/*
+       data/tracks/road/e-track-3/*
+       data/tracks/road/spring/*
+       data/tracks/road/alpine-1/*
+       data/tracks/road/ruudskogen/*
+       data/tracks/dirt-6/*
+       data/tracks/e-track-5/*
+       data/tracks/eroad/*
+       data/tracks/dirt-4/*
+       data/tracks/g-track-1/*
+       data/tracks/e-track-1/*
+       data/tracks/a-speedway/*
+       data/tracks/mixed-2/*
+       data/tracks/aalborg/*
+       data/cars/wheels/stock1-1/*
+       data/cars/wheels/trb1-4/*
+       data/cars/wheels/trb1-6/*
+       data/cars/wheels/stock1-3/*
+       data/cars/wheels/trb1-3/*
+       data/cars/wheels/stock1-2/*
+       data/cars/wheels/trb1-2/*
+       data/cars/wheels/openwheel1-1/*
+       data/cars/wheels/trb1-5/*
+       data/cars/wheels/trb1-1/*
+       data/cars/models/baja-bug/*
+       data/cars/models/car1-trb1/*
+       data/cars/models/car1-ow1/*
+       data/cars/models/car8-trb1/*
+       data/cars/models/car2-trb1/*
+       data/cars/models/car6-trb1/*
+       data/cars/models/car7-trb1/*
+       data/cars/models/car1-stock2/*
+       data/cars/models/car3-trb1/*
+       data/cars/models/car1-trb3/*
+       data/cars/models/car5-trb1/*
+       data/cars/models/car1-stock1/*
+       data/cars/models/acura-nsx-sz/*
+       data/cars/models/car4-trb1/*
+Copyright: 2002, Jean-Christophe Durieu
+           2000, ViPeR <viper at mttestdriver.com>
+License: Free-Art-License
+
+Files: doc/tutorials/*
+       doc/faq/*
+       doc/userman/*
+       doc/website/*
+Copyright: 2005 by Eric Espie
+License: GFDL-1.2
+
+Files: debian/*
+Copyright: 2004, Rudy Godoy Guillén <rudy at stone-head.org>
+           2017, Markus Koschany <apo at debian.org>
+License: GPL-2+
+
+License: GPL-2+
+ This program 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 2 of the License or (at your option) any later
+ version.
+ .
+ This program 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 with
+ the Debian GNU/Linux distribution in file /usr/share/common-licenses/GPL-2;
+ if not, write to the Free Software Foundation, Inc., 51 Franklin St,
+ Fifth Floor, Boston, MA 02110-1301, USA.
+ .
+ On Debian systems the complete text of the GNU General Public
+ License version 2 can be found in /usr/share/common-licenses/GPL-2.
+
+License: LGPL-2+
+ On Debian systems the complete text of the GNU Library General Public
+ License version 2 can be found in /usr/share/common-licenses/LGPL-2.
+
+License: GFDL-1.2
+ On Debian systems the complete text of the GNU Free Documentation License
+ version 1.2 can be found in /usr/share/common-licenses/GFDL-1.2.
+
+License: Free-Art-License
+ Preamble
+ .
+ The Free Art License grants the right to freely copy, distribute, and
+ transform creative works without infringing the author’s rights.
+ .
+ The Free Art License recognizes and protects these rights. Their
+ implementation has been reformulated in order to allow everyone to use
+ creations of the human mind in a creative manner, regardless of their types
+ and ways of  expression.
+ .
+ While the public’s access to creations of the human mind usually is restricted
+ by the implementation of copyright law, it is favoured by the Free Art License.
+ This license intends to allow the use of a work’s resources; to establish new
+ conditions for creating in order to increase creation opportunities. The Free
+ Art License grants the right to use a work, and acknowledges the right holder’s
+ and the user’s rights and responsibility.
+ .
+ The invention and development of digital technologies, Internet and Free
+ Software have changed creation methods: creations of the human mind can
+ obviously be distributed, exchanged, and transformed. They allow to produce
+ common works to which everyone can contribute to the benefit of all.
+ .
+ The main rationale for this Free Art License is to promote and protect these
+ creations of the human mind according to the principles of copyleft: freedom
+ to use, copy, distribute, transform, and prohibition of exclusive
+ appropriation.
+ .
+ Definitions
+ .
+ « work » either means the initial work, the subsequent works or the common work as defined hereafter:
+ .
+ « common work » means a work composed of the initial work and all subsequent
+ contributions to it (originals and copies). The initial author is the one who,
+ by choosing this license, defines the conditions under which contributions are
+ made.
+ .
+ « Initial work » means the work created by the initiator of the common work
+ (as defined above), the copies of which can be modified by whoever wants to
+ .
+ « Subsequent works » means the contributions made by authors who participate in
+ the evolution of the common work by exercising the rights to reproduce,
+ distribute, and modify that are granted by the license.
+ .
+ « Originals » (sources or resources of the work) means all copies of either the
+ initial work or any subsequent work mentioning a date and used by their
+ author(s) as references for any subsequent updates, interpretations, copies or
+ reproductions.
+ .
+ « Copy » means any reproduction of an original as defined by this license.
+ .
+ 1. OBJECT
+ The aim of this license is to define the conditions under which one can use this work freely.
+ .
+ 2. SCOPE
+ This work is subject to copyright law. Through this license its author
+ specifies the extent to which you can copy, distribute, and modify it.
+ .
+ 2.1 FREEDOM TO COPY (OR TO MAKE REPRODUCTIONS)
+ You have the right to copy this work for yourself, your friends or any other person, whatever the technique used.
+ .
+ 2.2 FREEDOM TO DISTRIBUTE, TO PERFORM IN PUBLIC
+ You have the right to distribute copies of this work; whether modified or not,
+ whatever the medium and the place, with or without any charge, provided that
+ you: attach this license without any modification to the copies of this work
+ or indicate precisely where the license can be found, specify to the recipient
+ the names of the author(s) of the originals, including yours if you have
+ modified the work, specify to the recipient where to access the originals
+ (either initial or subsequent).  The authors of the originals may, if they
+ wish to, give you the right to distribute the originals under the same
+ conditions as the copies.
+ .
+ 2.3 FREEDOM TO MODIFY
+ You have the right to modify copies of the originals (whether initial or
+ subsequent) provided you comply with the following conditions: all conditions
+ in article 2.2 above, if you distribute modified copies; indicate that the
+ work has been modified and, if it is possible, what kind of modifications have
+ been made; distribute the subsequent work under the same license or any
+ compatible license.  The author(s) of the original work may give you the right
+ to modify it under the same conditions as the copies.
+ .
+ 3. RELATED RIGHTS
+ Activities giving rise to author’s rights and related rights shall not
+ challenge the rights granted by this license.  For example, this is the reason
+ why performances must be subject to the same license or a compatible license.
+ Similarly, integrating the work in a database, a compilation or an anthology
+ shall not prevent anyone from using the work under the same conditions as those
+ defined in this license.
+ .
+ 4. INCORPORATION OF THE WORK
+ Incorporating this work into a larger work that is not subject to the Free Art
+ License shall not challenge the rights granted by this license.  If the work
+ can no longer be accessed apart from the larger work in which it is
+ incorporated, then incorporation shall only be allowed under the condition
+ that the larger work is subject either to the Free Art License or a compatible
+ license.
+ .
+ 5. COMPATIBILITY
+ A license is compatible with the Free Art License provided: it gives the right
+ to copy, distribute, and modify copies of the work including for commercial
+ purposes and without any other restrictions than those required by the respect
+ of the other compatibility criteria; it ensures proper attribution of the work
+ to its authors and access to previous versions of the work when possible; it
+ recognizes the Free Art License as compatible (reciprocity); it requires that
+ changes made to the work be subject to the same license or to a license which
+ also meets these compatibility criteria.
+ .
+ 6. YOUR INTELLECTUAL RIGHTS
+ This license does not aim at denying your author’s rights in your contribution
+ or any related right. By choosing to contribute to the development of this
+ common work, you only agree to grant others the same rights with regard to
+ your contribution as those you were granted by this license. Conferring these
+ rights does not mean you have to give up your intellectual rights.
+ .
+ 7. YOUR RESPONSIBILITIES
+ The freedom to use the work as defined by the Free Art License (right to copy,
+ distribute, modify) implies that everyone is responsible for their own actions.
+ .
+ 8. DURATION OF THE LICENSE
+ This license takes effect as of your acceptance of its terms. The act of
+ copying, distributing, or modifying the work constitutes a tacit agreement.
+ This license will remain in effect for as long as the copyright which is
+ attached to the work. If you do not respect the terms of this license, you
+ automatically lose the rights that it confers.  If the legal status or
+ legislation to which you are subject makes it impossible for you to respect the
+ terms of this license, you may not make use of the rights which it confers.
+ .
+ 9. VARIOUS VERSIONS OF THE LICENSE
+ This license may undergo periodic modifications to incorporate improvements by
+ its authors (instigators of the « Copyleft Attitude »movement) by way of new,
+ numbered versions.  You will always have the choice of accepting the terms
+ contained in the version under which the copy of the work was distributed to
+ you, or alternatively, to use the provisions of one of the subsequent
+ versions.
+ .
+ 10. SUB-LICENSING
+ Sub-licenses are not authorized by this license. Any person wishing to make use
+ of the rights that it confers will be directly bound to the authors of the
+ common work.
+ .
+ 11. LEGAL FRAMEWORK
+ This license is written with respect to both French law and the Berne
+ Convention for the Protection of Literary and Artistic Works.
diff --git a/debian/patches/format-argument.patch b/debian/patches/format-argument.patch
new file mode 100644
index 0000000..f85fe96
--- /dev/null
+++ b/debian/patches/format-argument.patch
@@ -0,0 +1,35 @@
+From: Markus Koschany <apo at debian.org>
+Date: Mon, 1 May 2017 15:59:09 +0200
+Subject: format argument
+
+---
+ src/tools/texmapper/maintexmapper.cpp | 2 +-
+ src/tools/trackgen/objects.cpp        | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/tools/texmapper/maintexmapper.cpp b/src/tools/texmapper/maintexmapper.cpp
+index c501792..fbfff34 100644
+--- a/src/tools/texmapper/maintexmapper.cpp
++++ b/src/tools/texmapper/maintexmapper.cpp
+@@ -103,7 +103,7 @@ void print_mat4(char *title, sgMat4 m)
+ {
+     int		i, j;
+ 
+-    printf(title);
++    printf("%s", title);
+     for (j = 0; j < 4; j ++){
+ 	for (i = 0; i < 4; i ++) {
+ 	    printf("%.6f  ", m[i][j]);
+diff --git a/src/tools/trackgen/objects.cpp b/src/tools/trackgen/objects.cpp
+index 0c19f1a..2b44e93 100644
+--- a/src/tools/trackgen/objects.cpp
++++ b/src/tools/trackgen/objects.cpp
+@@ -304,7 +304,7 @@ ssgSaveLeaf (ssgEntity *ent, FILE *save_fd)
+ 	fprintf (save_fd, "numsurf %d\n", num_tris);
+ 
+ 	for (i = 0; i < num_tris; i++) {
+-		fprintf (save_fd, surf);
++		fprintf (save_fd, "%s", surf);
+ 		fprintf (save_fd, "mat 0\n");
+ 		fprintf (save_fd, "refs 3\n");
+ 		fprintf (save_fd, "%d %g %g\n",
diff --git a/debian/patches/gcc6-isnan.patch b/debian/patches/gcc6-isnan.patch
new file mode 100644
index 0000000..ac3a48f
--- /dev/null
+++ b/debian/patches/gcc6-isnan.patch
@@ -0,0 +1,23 @@
+From: Aurelien Jarno <aurelien at aurel32.net>
+Date: Mon, 1 May 2017 15:53:17 +0200
+Subject: gcc6-isnan
+
+car->ctrl->gear is defined as int, therefore it can never be infinite or
+NaN. Just drop the tests.
+---
+ src/drivers/olethros/geometry.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/drivers/olethros/geometry.cpp b/src/drivers/olethros/geometry.cpp
+index 7b6bc82..846aef7 100644
+--- a/src/drivers/olethros/geometry.cpp
++++ b/src/drivers/olethros/geometry.cpp
+@@ -370,7 +370,7 @@ void EstimateSphere (std::vector<Vector> P, ParametricSphere* sphere)
+ 				}
+ 				delta_total += delta;
+ 			}
+-			if (isnan(r)) {
++			if (std::isnan(r)) {
+ 				for (i=0; i<d; i++) {
+ 					center[i] =  ((*(sphere->C))[i] - mean[i]) / scale;
+ 				}
diff --git a/debian/patches/glibc-default-source.patch b/debian/patches/glibc-default-source.patch
new file mode 100644
index 0000000..beb2cfd
--- /dev/null
+++ b/debian/patches/glibc-default-source.patch
@@ -0,0 +1,23 @@
+From: Aurelien Jarno <aurelien at aurel32.net>
+Date: Mon, 1 May 2017 15:58:31 +0200
+Subject: glibc default source
+
+_SVID_SOURCE and _BSD_SOURCE are deprecated, using _DEFAULT_SOURCE
+instead.
+---
+ Make-config.in | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Make-config.in b/Make-config.in
+index f0e0a12..8041327 100644
+--- a/Make-config.in
++++ b/Make-config.in
+@@ -48,7 +48,7 @@ INSTALL_DATA = @INSTALL_DATA@
+ INSTALL_SCRIPT = @INSTALL_SCRIPT@
+ mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
+ 
+-CFLAGSD = -D_SVID_SOURCE -D_BSD_SOURCE -DSHM -DHAVE_CONFIG_H
++CFLAGSD = -D_DEFAULT_SOURCE -DSHM -DHAVE_CONFIG_H
+ CXXFLAGS =  @CXXFLAGS@ @CPPFLAGS@ ${CFLAGSD}
+ CFLAGS   =  @CFLAGS@ ${CFLAGSD}
+ 
diff --git a/debian/patches/manpage-and-spelling.patch b/debian/patches/manpage-and-spelling.patch
new file mode 100644
index 0000000..77d37da
--- /dev/null
+++ b/debian/patches/manpage-and-spelling.patch
@@ -0,0 +1,160 @@
+From: Markus Koschany <apo at debian.org>
+Date: Thu, 4 May 2017 23:30:15 +0200
+Subject: manpage and spelling
+
+---
+ doc/man/accc.6                        | 4 ++--
+ doc/man/nfs2ac.6                      | 4 ++--
+ doc/man/nfsperf.6                     | 2 +-
+ doc/man/texmapper.6                   | 4 ++--
+ doc/man/trackgen.6                    | 4 ++--
+ src/tools/accc/ac3dgroup.cpp          | 8 ++++----
+ src/tools/texmapper/maintexmapper.cpp | 2 +-
+ 7 files changed, 14 insertions(+), 14 deletions(-)
+
+diff --git a/doc/man/accc.6 b/doc/man/accc.6
+index 19007a8..fece0c7 100644
+--- a/doc/man/accc.6
++++ b/doc/man/accc.6
+@@ -40,7 +40,7 @@ ac3d to ac3d with triangles (used for cars) and extended ac3d file output (norma
+ ac3d to ac3d with triangles no split and extended ac3d file output (normals normals)
+ .TP
+ .B +shad
+-ac3d to ac3d with triangles, create a new ac3d file used for track shading\n   vertical mapping of a single texture
++ac3d to ac3d with triangles, create a new ac3d file used for track shading, vertical mapping of a single texture
+ .TP
+ .B <inputfile>
+ .TP
+@@ -85,5 +85,5 @@ no texture split (for debug)
+ .BR torcs (6)
+ .SH "AUTHOR"
+ .LP
+-This manual page was writen by Rudy Godoy <rudy at kernel-panik.org>,
++This manual page was written by Rudy Godoy <rudy at kernel-panik.org>,
+ for the Debian GNU/Linux system (but may be used by others).
+diff --git a/doc/man/nfs2ac.6 b/doc/man/nfs2ac.6
+index 5fb1ba4..78641aa 100644
+--- a/doc/man/nfs2ac.6
++++ b/doc/man/nfs2ac.6
+@@ -1,7 +1,7 @@
+ .TH "TORCS" "6" "1.1" "Rudy Godoy" "Games"
+ .SH "NAME"
+ .LP
+-nfs2ac
++nfs2ac \- Car model converter from 'Need for Speed' to Ac3d
+ .SH "DESCRIPTION"
+ .TP
+ This manual describes the nfs2ac application that is shipped with the game TORCS.
+@@ -13,6 +13,6 @@ This program does not use arguments.
+ .BR torcs (6)
+ .SH "AUTHOR"
+ .LP
+-This manual page was writen by Rudy Godoy <rudy at kernel-panik.org>,
++This manual page was written by Rudy Godoy <rudy at kernel-panik.org>,
+ for the Debian GNU/Linux system (but may be used by others).
+ 
+diff --git a/doc/man/nfsperf.6 b/doc/man/nfsperf.6
+index a270ca0..469cc42 100644
+--- a/doc/man/nfsperf.6
++++ b/doc/man/nfsperf.6
+@@ -22,6 +22,6 @@ converted parameters
+ .BR torcs (6)
+ .SH "AUTHOR"
+ .LP
+-This manual page was writen by Rudy Godoy <rudy at kernel-panik.org>,
++This manual page was written by Rudy Godoy <rudy at kernel-panik.org>,
+ for the Debian GNU/Linux system (but may be used by others).
+ 
+diff --git a/doc/man/texmapper.6 b/doc/man/texmapper.6
+index 35802f6..d6a72c9 100644
+--- a/doc/man/texmapper.6
++++ b/doc/man/texmapper.6
+@@ -14,7 +14,7 @@ This manual describes the use of Texture Auto Mapper application that is shipped
+ input model file in AC3D format [car.ac]
+ .TP
+ .B -o \fI<output acfile>\fP
+-ouput model file in AC3D format [car-out.ac]
++output model file in AC3D format [car-out.ac]
+ .TP
+ .B -p \fI<parameters>\fP
+ parameters in XML format [texmapper.xml]
+@@ -28,5 +28,5 @@ print this message
+ .BR torcs (6)
+ .SH "AUTHOR"
+ .LP
+-This manual page was writen by Rudy Godoy <rudy at kernel-panik.org>,
++This manual page was written by Rudy Godoy <rudy at kernel-panik.org>,
+ for the Debian GNU/Linux system (but may be used by others).
+diff --git a/doc/man/trackgen.6 b/doc/man/trackgen.6
+index b9c65db..a221d97 100644
+--- a/doc/man/trackgen.6
++++ b/doc/man/trackgen.6
+@@ -22,7 +22,7 @@ draw bump track
+ .B -B
+ Don't use terrain border (relief supplied int clockwise, ext CC)
+ .TP
+-.B -a 
++.B -a
+ draw all (default is track only)
+ .TP
+ .B -s
+@@ -47,5 +47,5 @@ nb of height steps for 4th elevation file [30]
+ .BR torcs (6)
+ .SH "AUTHOR"
+ .LP
+-This manual page was writen by Rudy Godoy <rudy at kernel-panik.org>,
++This manual page was written by Rudy Godoy <rudy at kernel-panik.org>,
+ for the Debian GNU/Linux system (but may be used by others).
+diff --git a/src/tools/accc/ac3dgroup.cpp b/src/tools/accc/ac3dgroup.cpp
+index d84df39..fb56f58 100644
+--- a/src/tools/accc/ac3dgroup.cpp
++++ b/src/tools/accc/ac3dgroup.cpp
+@@ -467,7 +467,7 @@ void loadAndGroup( char *OutputFileName)
+ 			fprintf(ofile,"OBJECT group\n");
+ 			fprintf(ofile,"name \"___%s_gl3\"\n",array_groups[i].tkmn->name);
+ 			fprintf(ofile,"kids %d\n",array_groups[i].numkids3);
+-			printf("writting group: ___%s_gl3\n",array_groups[i].tkmn->name);
++			printf("writing group: ___%s_gl3\n",array_groups[i].tkmn->name);
+ 			tmpob=array_groups[i].kids3;
+ 			while (tmpob!=NULL) {
+ 
+@@ -481,7 +481,7 @@ void loadAndGroup( char *OutputFileName)
+ 			fprintf(ofile,"OBJECT group\n");
+ 			fprintf(ofile,"name \"%%___%s_gl2\"\n",array_groups[i].tkmn->name);
+ 			fprintf(ofile,"kids %d\n",array_groups[i].numkids2);
+-			printf("writting group: ___%s_gl2\n",array_groups[i].tkmn->name);
++			printf("writing group: ___%s_gl2\n",array_groups[i].tkmn->name);
+ 			tmpob=array_groups[i].kids2;
+ 			while (tmpob!=NULL) {
+ 				printOb(tmpob);
+@@ -493,7 +493,7 @@ void loadAndGroup( char *OutputFileName)
+ 			fprintf(ofile,"OBJECT group\n");
+ 			fprintf(ofile,"name \"___%s_gl1\"\n",array_groups[i].tkmn->name);
+ 			fprintf(ofile,"kids %d\n",array_groups[i].numkids1);
+-			printf("writting group: ___%s_gl1\n",array_groups[i].tkmn->name);
++			printf("writing group: ___%s_gl1\n",array_groups[i].tkmn->name);
+ 			tmpob=array_groups[i].kids1;
+ 			while (tmpob!=NULL) {
+ 				printOb(tmpob);
+@@ -506,7 +506,7 @@ void loadAndGroup( char *OutputFileName)
+ 		fprintf(ofile,"OBJECT group\n");
+ 		fprintf(ofile,"name \"___%s_gl0\"\n",array_groups[i].tkmn->name);
+ 		fprintf(ofile,"kids %d\n",array_groups[i].numkids0+1);
+-		printf("writting group: ___%s_gl0\n",array_groups[i].tkmn->name);
++		printf("writing group: ___%s_gl0\n",array_groups[i].tkmn->name);
+ 		tmpob=array_groups[i].kids0;
+ 		while (tmpob!=NULL) {
+ 			printOb(tmpob);
+diff --git a/src/tools/texmapper/maintexmapper.cpp b/src/tools/texmapper/maintexmapper.cpp
+index fbfff34..9cb2dbc 100644
+--- a/src/tools/texmapper/maintexmapper.cpp
++++ b/src/tools/texmapper/maintexmapper.cpp
+@@ -598,7 +598,7 @@ void usage(void)
+     fprintf(stderr, "Usage: texmapper [options]\n");
+     fprintf(stderr, "The options are:\n");
+     fprintf(stderr, "-f <input acfile>     : input model file in AC3D format [car.ac]\n");
+-    fprintf(stderr, "-o <output acfile>    : ouput model file in AC3D format [car-out.ac]\n");
++    fprintf(stderr, "-o <output acfile>    : output model file in AC3D format [car-out.ac]\n");
+     fprintf(stderr, "-p <parameters>       : parameters in XML format [texmapper.xml]\n");
+     fprintf(stderr, "-s <file>             : output skin file [skin.rgb]\n");
+     fprintf(stderr, "--help                : print this message\n");
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..9846366
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,4 @@
+gcc6-isnan.patch
+glibc-default-source.patch
+format-argument.patch
+manpage-and-spelling.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..c5decdf
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,54 @@
+#!/usr/bin/make -f
+PKD   = $(abspath $(dir $(MAKEFILE_LIST)))
+PKG   = $(word 2,$(shell dpkg-parsechangelog -l$(PKD)/changelog | grep ^Source))
+VER   = $(shell dpkg-parsechangelog -l$(PKD)/changelog -SVersion | cut -d- -f1)
+export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+
+%:
+	dh $@ --without autoreconf
+
+override_dh_auto_configure:
+	dh_auto_configure -- \
+		--bindir=\$${prefix}/games \
+		--x-libraries=/usr/lib/
+
+override_dh_install:
+	$(RM) debian/tmp/usr/share/games/torcs/telemetry/telemetry.sh
+	$(RM) debian/tmp/usr/share/games/torcs/tracks/road/ole-road-1/generate.sh
+	$(RM) debian/tmp/usr/share/games/torcs/COPYING
+	dh_install
+	find debian/ -type f -name Makefile -delete
+	find debian/ -type d -empty -delete
+
+override_dh_auto_install:
+	dh_auto_install -- install DESTDIR=$(CURDIR)/debian/tmp
+	dh_auto_install -- datainstall DESTDIR=$(CURDIR)/debian/tmp
+
+override_dh_installchangelogs:
+	# The Changes paragraph inside the README is basically the changelog.
+	dh_installchangelogs README
+
+## http://wiki.debian.org/onlyjob/get-orig-source
+.PHONY: get-orig-source
+get-orig-source: $(PKG)_$(VER).orig.tar.xz $(info I: $(PKG)_$(VER))
+	@
+
+$(PKG)_$(VER).orig.tar.xz:
+	@echo "# Downloading..."
+	uscan --noconf --verbose --rename --destdir=$(CURDIR) --check-dirname-level=0 --force-download --download-current-version $(PKD)
+	$(if $(wildcard $(PKG)-$(VER)),$(error $(PKG)-$(VER) exist, aborting..))
+	@echo "# Extracting..."
+	mkdir $(PKG)-$(VER) \
+	&& tar -xf $(PKG)_*.orig.tar.* --directory $(PKG)-$(VER) --strip-components 1 \
+	|| $(RM) -r $(PKG)-$(VER)
+	@echo "# Cleaning-up..."
+	cd $(PKG)-$(VER) \
+	&& find -depth -type d -name 'windows' -exec $(RM) -r {} \; -printf 'removed %p\n' \
+	&& find -depth -type d -name 'CVS' -exec $(RM) -r {} \; -printf 'removed %p\n' \
+	&& $(RM) -r -v \
+		data/cars/models/pw-* data/cars/models/kc-*
+	@echo "# Packing..."
+	find -L "$(PKG)-$(VER)" -xdev -type f -print | LC_ALL=C sort \
+	| XZ_OPT="-6v" tar -caf "$(PKG)_$(VER).orig.tar.xz" -T- --owner=root --group=root --mode=a+rX \
+	&& $(RM) -r "$(PKG)-$(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/torcs-data.install b/debian/torcs-data.install
new file mode 100644
index 0000000..5bad92b
--- /dev/null
+++ b/debian/torcs-data.install
@@ -0,0 +1 @@
+usr/share/games
diff --git a/debian/torcs-data.links b/debian/torcs-data.links
new file mode 100644
index 0000000..8c3651f
--- /dev/null
+++ b/debian/torcs-data.links
@@ -0,0 +1 @@
+usr/share/games/torcs/Ticon.png usr/share/pixmaps/torcs.png
diff --git a/debian/torcs.desktop b/debian/torcs.desktop
new file mode 100644
index 0000000..7b51fe0
--- /dev/null
+++ b/debian/torcs.desktop
@@ -0,0 +1,13 @@
+[Desktop Entry]
+Version=1.0
+Type=Application
+Name=TORCS
+Comment=3D racing cars simulator game
+Comment[es]=Juego de simulación 3D de carrera de autos
+Comment[de]=Autorennspiel in 3D
+Icon=torcs
+Exec=torcs
+Terminal=false
+StartupNotify=false
+Categories=Game;Simulation;
+Keywords=cars;tracks;road;race;racing;simulator;
diff --git a/debian/torcs.install b/debian/torcs.install
new file mode 100644
index 0000000..4502048
--- /dev/null
+++ b/debian/torcs.install
@@ -0,0 +1,3 @@
+debian/torcs.desktop usr/share/applications
+usr/games
+usr/lib
diff --git a/debian/torcs.manpages b/debian/torcs.manpages
new file mode 100644
index 0000000..e6a7dfa
--- /dev/null
+++ b/debian/torcs.manpages
@@ -0,0 +1,7 @@
+doc/man/accc.6
+doc/man/nfs2ac.6
+doc/man/nfsperf.6
+doc/man/texmapper.6
+doc/man/torcs.6
+doc/man/torcs.es.6
+doc/man/trackgen.6
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..b469bff
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=4
+opts=dversionmangle=s/\+dfsg\d*$// \
+  http://sf.net/torcs/torcs-(\d\S+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/torcs.git



More information about the Pkg-games-commits mailing list