[teeworlds] 02/05: Use Files-Excluded copyright field for repacking source tarball.

Felix Geyer fgeyer at moszumanska.debian.org
Mon Apr 25 17:20:38 UTC 2016


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

fgeyer pushed a commit to branch master
in repository teeworlds.

commit b03cbd48b3d54ba3b34bc08d67161cfde06c9333
Author: Felix Geyer <fgeyer at debian.org>
Date:   Mon Apr 25 19:11:42 2016 +0200

    Use Files-Excluded copyright field for repacking source tarball.
---
 debian/changelog |  1 +
 debian/copyright | 63 +++++++++++++++++++++++++++++++++-----------------------
 debian/rules     | 19 -----------------
 debian/watch     |  4 ++--
 4 files changed, 40 insertions(+), 47 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 411533c..5df3423 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,7 @@ teeworlds (0.6.2+dfsg-3) UNRELEASED; urgency=low
     (Closes: #709939)
   * Drop Debian menu entry.
   * Enable all hardening build flags.
+  * Use Files-Excluded copyright field for repacking source tarball.
 
  -- Felix Geyer <fgeyer at debian.org>  Sun, 23 Nov 2014 17:07:58 +0100
 
diff --git a/debian/copyright b/debian/copyright
index ecc643e..229aa3d 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -1,27 +1,38 @@
-This package was debianized by Jack Coulter <jscinoz at gmail.com> on
-Sun, 13 Apr 2008 18:48:12 +1000.
-
-It was downloaded from http://www.teeworlds.com/
-
-
-Copyright: 
-
-Copyright (C) 2007-2011 Magnus Auvinen
-
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: teeworlds
+Source: https://www.teeworlds.com/
+Files-Excluded:
+ data/fonts/DejaVuSans.ttf
+ data/fonts/LICENSE
+ other/freetype/include
+ other/freetype/lib32
+ other/freetype/lib64
+ other/sdl/include
+ other/sdl/lib32
+ other/sdl/lib64
+ src/engine/external
+ datasrc/__pycache__
+ objs/base
+ objs/engine
+ objs/game
+ src/game/generated/*.cpp
+ src/game/generated/*.h
+
+Files: *
+Copyright: 2007-2011 Magnus Auvinen
 License:
-
-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.
+ 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.
diff --git a/debian/rules b/debian/rules
index bed29ba..01752d7 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,8 +7,6 @@ CFLAGS := $(shell dpkg-buildflags --get CFLAGS)
 CPPFLAGS := $(shell dpkg-buildflags --get CPPFLAGS)
 LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS) -Wl,--as-needed
 
-upstreamversion := $(shell dpkg-parsechangelog | sed -n 's/^Version: *\([^-]\+\)-.\+/\1/p')
-
 %:
 	dh $@
 
@@ -44,20 +42,3 @@ override_dh_fixperms:
 ifneq (,$(filter teeworlds-data, $(shell dh_listpackages)))
 	find debian/teeworlds-data -type f -exec chmod 644 {} \;
 endif
-
-dfsg-free:
-	rm -r docs/tool
-	rm -r other/freetype/include
-	rm -r other/freetype/lib32
-	rm -r other/freetype/lib64
-	rm -r other/sdl/include
-	rm -r other/sdl/lib32
-	rm -r other/sdl/lib64
-	rm -r src/engine/external
-	rm data/fonts/DejaVuSans.ttf
-	rm data/fonts/LICENSE
-	
-	cd ..; mv $(CURDIR) teeworlds-$(upstreamversion); \
-	    tar --exclude debian \
-	        -czf teeworlds_$(upstreamversion).orig.tar.gz \
-	        teeworlds-$(upstreamversion)
diff --git a/debian/watch b/debian/watch
index 826f5f1..f33037d 100644
--- a/debian/watch
+++ b/debian/watch
@@ -1,4 +1,4 @@
 version=3
 
-opts=dversionmangle=s/\+dfsg$// \
-  http://www.teeworlds.com/?page=downloads (?:.*)/teeworlds-([\d.]+)-(?:src|source).tar.gz
+opts=dversionmangle=s/\+dfsg$//,repacksuffix=+dfsg \
+  https://www.teeworlds.com/?page=downloads (?:.*)/teeworlds-([\d.]+)-(?:src|source).tar.gz

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



More information about the Pkg-games-commits mailing list