[Pkg-javascript-commits] [leaflet] 34/40: Repackage upstream tarball to strip potentially source-less minified file. Thanks to lintian.

Jonas Smedegaard dr at jones.dk
Thu Oct 16 16:33:09 UTC 2014


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

js pushed a commit to branch master
in repository leaflet.

commit cf0123ac75d38e828dd30a010d7c2a2601a881bd
Author: Jonas Smedegaard <dr at jones.dk>
Date:   Thu Oct 16 18:17:56 2014 +0200

    Repackage upstream tarball to strip potentially source-less minified file. Thanks to lintian.
---
 debian/copyright | 3 +++
 debian/rules     | 4 ++++
 debian/watch     | 1 +
 3 files changed, 8 insertions(+)

diff --git a/debian/copyright b/debian/copyright
index e1e7da2..3b269cd 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -2,6 +2,9 @@ Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
 Upstream-Name: Leaflet
 Upstream-Contact: https://github.com/Leaflet/Leaflet/issues
 Source: https://github.com/Leaflet/Leaflet/
+ Repackaged, excluding potentially source-less minified file
+Files-Excluded:
+ dist/leaflet.js
 
 Files: *
 Copyright: 2010-2011, CloudMade
diff --git a/debian/rules b/debian/rules
index b24e611..b30e07c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -28,6 +28,10 @@ CDBS_BUILD_DEPENDS +=, node-uglify (>= 2), node-jake
 
 DEB_UPSTREAM_URL = https://github.com/Leaflet/Leaflet/archive
 DEB_UPSTREAM_TARBALL_BASENAME = v$(DEB_UPSTREAM_TARBALL_VERSION)
+DEB_UPSTREAM_TARBALL_SRCDIR = Leaflet-$(DEB_UPSTREAM_TARBALL_VERSION)
+
+# Strip potentially source-less minified file
+DEB_UPSTREAM_REPACKAGE_EXCLUDES += dist/leaflet.js
 
 # Skip checking some images (in addition to the defaults)
 DEB_COPYRIGHT_CHECK_IGNORE_REGEX = ^(dist/images/(layers|marker-icon-2x)\.png|debian/(changelog|copyright(|_hints|_newhints)))$
diff --git a/debian/watch b/debian/watch
index 85e3c3b..5081fbc 100644
--- a/debian/watch
+++ b/debian/watch
@@ -1,2 +1,3 @@
 version=3
+opts=dversionmangle=s/\~dfsg.*// \
 https://github.com/Leaflet/Leaflet/tags .*/archive/v?(\d[\d\.]+).tar.gz

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



More information about the Pkg-javascript-commits mailing list