[freecol] 02/125: [svn-inject] Applying Debian modifications to trunk
Markus Koschany
apo-guest at moszumanska.debian.org
Sun Dec 20 19:39:01 UTC 2015
This is an automated email from the git hooks/post-receive script.
apo-guest pushed a commit to branch master
in repository freecol.
commit ee3b97ddb80114a8ba76cc05a5818d7607079af7
Author: Vincent Fourmond <fourmond at debian.org>
Date: Tue Oct 2 18:12:55 2007 +0000
[svn-inject] Applying Debian modifications to trunk
---
debian/README.Debian | 6 +++
debian/changelog | 7 ++++
debian/compat | 1 +
debian/control | 17 +++++++++
debian/copyright | 58 +++++++++++++++++++++++++++++
debian/dirs | 2 +
debian/freecol-dist-targz.diff | 31 +++++++++++++++
debian/install | 3 ++
debian/manpages | 1 +
debian/menu | 2 +
debian/patches/00list | 3 ++
debian/patches/10-fix-jar-path.dpatch | 29 +++++++++++++++
debian/patches/15-fix-jar-manifest.dpatch | 16 ++++++++
debian/patches/20-freecol-executable.dpatch | 28 ++++++++++++++
debian/rules | 52 ++++++++++++++++++++++++++
debian/watch | 22 +++++++++++
16 files changed, 278 insertions(+)
diff --git a/debian/README.Debian b/debian/README.Debian
new file mode 100644
index 0000000..1b9bac7
--- /dev/null
+++ b/debian/README.Debian
@@ -0,0 +1,6 @@
+freecol for Debian
+------------------
+
+<possible notes regarding this package - if none, delete this file>
+
+ -- Vincent Fourmond <fourmond at debian.org> Mon, 01 Oct 2007 23:58:51 +0200
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..1c58fca
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,7 @@
+freecol (0.7.2-1) UNRELEASED; urgency=low
+
+ * Initial release (Closes: #444199)
+ * DO NOT UPLOAD THIS PACKAGE, there are still license issues.
+
+ -- Vincent Fourmond <fourmond at debian.org> Tue, 02 Oct 2007 20:08:07 +0200
+
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..7ed6ff8
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+5
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..4c269f6
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,17 @@
+Source: freecol
+Section: contrib/games
+Priority: optional
+Maintainer: Vincent Fourmond <fourmond at debian.org>
+Build-Depends: debhelper (>= 5), dpatch, ant
+Build-Depends-Indep: libhiglayout-java, libwoodstox-java,
+ sun-java6-jdk | sun-java5-jdk
+Standards-Version: 3.7.2
+
+Package: freecol
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: an open version of Colonization
+ freecol is a game in the spirit of Civilization but taking place in a
+ colonial background. Colonize a new world, build towns, trade or fight
+ with natives and other European civilizations, trade with your
+ homeland until you're ready to fight for your independance !
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..4e7aea2
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,58 @@
+This package was debianized by Vincent Fourmond <fourmond at debian.org> on
+Mon, 01 Oct 2007 23:58:51 +0200.
+
+The original tarball was made downloading the freecol-0.7.2-src.tar.gz
+tarball on http://www.freecol.org/download.html, applying the
+freecol-dist-targz.diff and then using the ant target
+tarDistBundle. Hopefully, this will get included upstream so I won't
+have to bother later on.
+
+Upstream Authors:
+
+ The FreeCol Team <freecol-developers at lists.sourceforge.net>
+
+Copyright:
+
+ Copyright (C) 2003-2007 The FreeCol Team
+
+ A number of images are fidel copies of objects in the public
+ domain and are thus not copyrightable (see for instance
+ http://en.wikipedia.org/wiki/Bridgeman_Art_Library_v._Corel_Corp
+ for more information).
+
+ The font data/fonts/ShadowedBlack.ttf is
+ Copyright Paul Lloyd <Paul.Lloyd at uwa.edu.au>
+
+ packaging/gentoo/freecol-0.3.0.ebuild is
+ Copyright 1999-2004 Gentoo Foundation
+
+License:
+
+ All files except those not copyrightable and
+ data/fonts/ShadowedBlack.ttf are provided under the following
+ conditions:
+
+ 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 2 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 package; 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 can be found in `/usr/share/common-licenses/GPL'.
+
+ATTENTION !!!
+
+The license for the data/fonts/ShadowedBlack.ttf is not clear yet.
+
+
+The Debian packaging is (C) 2007, Vincent Fourmond <fourmond at debian.org> and
+is licensed under the GPL, see above.
diff --git a/debian/dirs b/debian/dirs
new file mode 100644
index 0000000..ca882bb
--- /dev/null
+++ b/debian/dirs
@@ -0,0 +1,2 @@
+usr/bin
+usr/sbin
diff --git a/debian/freecol-dist-targz.diff b/debian/freecol-dist-targz.diff
new file mode 100644
index 0000000..a53fd6f
--- /dev/null
+++ b/debian/freecol-dist-targz.diff
@@ -0,0 +1,31 @@
+Index: build.xml
+===================================================================
+--- build.xml (revision 3092)
++++ build.xml (working copy)
+@@ -246,6 +246,26 @@
+ </tar>
+ </target>
+
++ <!-- A target that builds a 'source' package in the Debian
++ of the term,, stripped of all potential legal/building
++ problems, such as jars without sources and already built jars,
++ as those cause problems and are unnecessary for a distribution.
++ -->
++ <target name="tarDistBundle" unless="skip.dist.source" depends="initDist,prepareSourceFiles">
++ <tar destfile="${freecol.release.dir}/${freecol.release.name}-dist-src.tar.gz" compression="gzip">
++ <tarfileset dir="${freecol.release.dir}/source/${freecol.name}"
++ prefix="${freecol.release.name}"
++ includes="**"
++ excludes="build/**, test/lib/**" />
++ <tarfileset dir="${basedir}" includes="data/**"
++ prefix="${freecol.release.name}"
++ excludes="**/.svn/**, data/fonts/Plakat-Fraktur.ttf"
++ />
++
++ <!-- We remove test/lib because there is junit.jar there -->
++ </tar>
++ </target>
++
+ <target name="zipSourceBundle" unless="skip.dist.source" depends="initDist,prepareSourceFiles">
+ <zip destfile="${freecol.release.dir}/${freecol.release.name}-src.zip">
+ <fileset dir="${freecol.release.dir}/base" includes="${freecol.name}/**"/>
diff --git a/debian/install b/debian/install
new file mode 100644
index 0000000..1c55b65
--- /dev/null
+++ b/debian/install
@@ -0,0 +1,3 @@
+data/* usr/share/games/freecol
+freecol*.jar usr/share/java
+src/freecol usr/games
diff --git a/debian/manpages b/debian/manpages
new file mode 100644
index 0000000..2186e50
--- /dev/null
+++ b/debian/manpages
@@ -0,0 +1 @@
+packaging/debian/freecol.6
\ No newline at end of file
diff --git a/debian/menu b/debian/menu
new file mode 100644
index 0000000..fb738be
--- /dev/null
+++ b/debian/menu
@@ -0,0 +1,2 @@
+?package(freecol):needs="X11|text|vc|wm" section="Applications/see-menu-manual"\
+ title="freecol" command="/usr/bin/freecol"
diff --git a/debian/patches/00list b/debian/patches/00list
new file mode 100644
index 0000000..64a31f4
--- /dev/null
+++ b/debian/patches/00list
@@ -0,0 +1,3 @@
+10-fix-jar-path
+15-fix-jar-manifest
+20-freecol-executable
\ No newline at end of file
diff --git a/debian/patches/10-fix-jar-path.dpatch b/debian/patches/10-fix-jar-path.dpatch
new file mode 100755
index 0000000..239807d
--- /dev/null
+++ b/debian/patches/10-fix-jar-path.dpatch
@@ -0,0 +1,29 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 10-fix-jar-path.dpatch by <fourmond at debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Fix the path of the library jars to match those of the debian
+## DP: packages
+
+ at DPATCH@
+diff -urNad freecol-0.7.3~svn20071001~/build.xml freecol-0.7.3~svn20071001/build.xml
+--- freecol-0.7.3~svn20071001~/build.xml 2007-10-02 17:21:33.000000000 +0200
++++ freecol-0.7.3~svn20071001/build.xml 2007-10-02 17:24:21.000000000 +0200
+@@ -65,7 +65,7 @@
+ <mkdir dir="${freecol.build.dir}"/>
+ <javac srcdir="${freecol.src.dir}"
+ destdir="${freecol.build.dir}"
+- classpath="${basedir}/jars/higlayout.jar:${basedir}/jars/jsr173_1.0_api.jar:${basedir}/jars/wstx-lgpl-4.0pr1.jar"
++ classpath="/usr/share/java/higlayout.jar:/usr/share/java/wstx-lgpl.jar"
+ debug="on"
+ optimize="on"
+ deprecation="off"
+@@ -116,7 +116,7 @@
+
+ <!-- Compiles the source files and creates a JAR-file. -->
+ <target name="package" depends="init,build" description="Compiles the source files and creates a JAR-file.">
+- <jar jarfile="${freecol.jar.file}"
++ <jar jarfile="freecol.jar"
+ basedir="${freecol.build.dir}"
+ manifest="${basedir}/src/MANIFEST.MF"
+ includes="net/**, org/**"
diff --git a/debian/patches/15-fix-jar-manifest.dpatch b/debian/patches/15-fix-jar-manifest.dpatch
new file mode 100755
index 0000000..279e6c4
--- /dev/null
+++ b/debian/patches/15-fix-jar-manifest.dpatch
@@ -0,0 +1,16 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 15-fix-jar-manifest.dpatch by <fourmond at debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+ at DPATCH@
+diff -urNad freecol-0.7.3~svn20071001~/src/MANIFEST.MF freecol-0.7.3~svn20071001/src/MANIFEST.MF
+--- freecol-0.7.3~svn20071001~/src/MANIFEST.MF 2007-10-01 21:40:52.000000000 +0200
++++ freecol-0.7.3~svn20071001/src/MANIFEST.MF 2007-10-02 18:15:37.000000000 +0200
+@@ -1,4 +1,4 @@
+ Manifest-Version: 1.0
+ Created-By: FreeCol Team
+ Main-Class: net.sf.freecol.FreeCol
+-Class-Path: jars/higlayout.jar jars/jsr173_1.0_api.jar jars/wstx-lgpl-4.0pr1.jar
++Class-Path: /usr/share/java/higlayout.jar /usr/share/java/wstx-lgpl.jar
diff --git a/debian/patches/20-freecol-executable.dpatch b/debian/patches/20-freecol-executable.dpatch
new file mode 100755
index 0000000..dfd2af9
--- /dev/null
+++ b/debian/patches/20-freecol-executable.dpatch
@@ -0,0 +1,28 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 20-freecol-executable.dpatch by <fourmond at debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+ at DPATCH@
+diff -urNad freecol-0.7.3~svn20071001~/src/freecol freecol-0.7.3~svn20071001/src/freecol
+--- freecol-0.7.3~svn20071001~/src/freecol 1970-01-01 01:00:00.000000000 +0100
++++ freecol-0.7.3~svn20071001/src/freecol 2007-10-02 18:11:49.000000000 +0200
+@@ -0,0 +1,17 @@
++#!/bin/sh
++
++# Script 'greatly inspired' from the one of jabref
++
++# Unless there already is a JAVA_HOME, we detect the presence
++# of either sun 5 or sun 6
++
++if [ -z "$JAVA_HOME" ]
++then
++t=/usr/lib/jvm/java-5-sun && test -d $t && JAVA_HOME=$t
++t=/usr/lib/jvm/java-6-sun && test -d $t && JAVA_HOME=$t
++JAVA=${JAVA_HOME}/jre/bin/java
++fi
++
++export JAVA=${JAVA:=java}
++exec $JAVA -Xmx128M -jar /usr/share/java/freecol.jar --freecol-data \
++ /usr/share/games/freecol "$@"
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..9992d06
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,52 @@
+#!/usr/bin/make -f
+# Sample debian/rules that uses debhelper.
+# This file is public domain software, originally written by Joey Hess.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+include /usr/share/dpatch/dpatch.make
+
+SOURCE_VERSION = $(shell dpkg-parsechangelog | egrep '^Version' | egrep -o '[0-9][^-]+')
+
+build: build-stamp
+build-stamp: patch
+ dh_testdir
+ ant package
+# Then according to current Java policy, we move the freecol.jar file
+# to a versioned one.
+ [ -e freecol-$(SOURCE_VERSION).jar ] || mv freecol.jar freecol-$(SOURCE_VERSION).jar
+ [ -e freecol.jar ] || ln -s freecol-$(SOURCE_VERSION).jar freecol.jar
+ touch build-stamp
+
+clean: clean-patched unpatch
+clean-patched:
+ dh_testdir
+ dh_testroot
+ rm -f build-stamp freecol*.jar
+ ant clean
+ dh_clean
+
+# Build architecture-independent files here.
+binary-indep: build
+# We have nothing to do by default.
+ dh_testdir
+ dh_testroot
+ dh_install
+ dh_installchangelogs
+ dh_installdocs
+ dh_installman
+ dh_link
+ dh_compress
+ dh_fixperms
+ dh_perl -d -V
+ dh_installdeb
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+# Build architecture-dependent files here.
+binary-arch: build
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..f7ab0fd
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,22 @@
+# Example watch control file for uscan
+# Rename this file to "watch" and then you can run the "uscan" command
+# to check for upstream updates and more.
+# See uscan(1) for format
+
+# Compulsory line, this is a version 3 file
+version=3
+
+# Uncomment to examine a Webpage
+# <Webpage URL> <string match>
+#http://www.example.com/downloads.php freecol-(.*)\.tar\.gz
+
+# Uncomment to examine a Webserver directory
+#http://www.example.com/pub/freecol-(.*)\.tar\.gz
+
+# Uncommment to examine a FTP server
+#ftp://ftp.example.com/pub/freecol-(.*)\.tar\.gz debian uupdate
+
+# Uncomment to find new files on sourceforge, for devscripts >= 2.9
+# http://sf.net/freecol/freecol-(.*)\.tar\.gz
+
+
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/freecol.git
More information about the Pkg-games-commits
mailing list