[SCM] mate-netspeed Debian package branch, master, updated. 9b430440573dd8a99fb0a41d704dde602246abb8
Mike Gabriel
sunweaver at moszumanska.debian.org
Tue Apr 22 15:13:46 UTC 2014
Gitweb-URL: http://git.debian.org/?p=pkg-mate/mate-netspeed.git;a=commitdiff;h=c13db2c
The following commit has been merged in the master branch:
commit c13db2c47b784ed04d55c6d43cbae6c27545abcf
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date: Tue Apr 22 16:49:38 2014 +0200
Convert package into non-DFSG package. Repack upstream sources via get-orig-source and fix build via 2001_omit-gfdl-licensed-help-files.patch.
---
debian/changelog | 2 +-
.../2001_omit-gfdl-licensed-help-files.patch | 18 ++++++++++++++
debian/patches/series | 1 +
debian/rules | 28 ++++++++++++++++++++--
4 files changed, 46 insertions(+), 3 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 561bd98..30cd37e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,4 +1,4 @@
-mate-netspeed (1.6.1-1) UNRELEASED; urgency=low
+mate-netspeed (1.8.0+dfsg1-1) UNRELEASED; urgency=low
* Initial release. (Closes: #734942).
diff --git a/debian/patches/2001_omit-gfdl-licensed-help-files.patch b/debian/patches/2001_omit-gfdl-licensed-help-files.patch
new file mode 100644
index 0000000..2e1968e
--- /dev/null
+++ b/debian/patches/2001_omit-gfdl-licensed-help-files.patch
@@ -0,0 +1,18 @@
+Description: Don't build non-DFSG (GFDL 1.1 licensed) help files
+Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -1,4 +1,4 @@
+-SUBDIRS = data help icons po src
++SUBDIRS = data icons po src
+
+ ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
+
+--- a/configure.ac
++++ b/configure.ac
+@@ -65,5 +65,4 @@
+ icons/scalable/apps/Makefile
+ src/Makefile
+ po/Makefile.in
+-help/Makefile
+ ])
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..83b110e
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+2001_omit-gfdl-licensed-help-files.patch
diff --git a/debian/rules b/debian/rules
index 5df181c..dc9e71e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,5 +1,11 @@
#!/usr/bin/make -f
+PKD = $(word 1,$(abspath $(dir $(MAKEFILE_LIST))))
+PKG = $(word 2,$(shell dpkg-parsechangelog -l$(PKD)/changelog | grep ^Source))
+UVER = $(shell dpkg-parsechangelog -l$(PKD)/changelog | perl -ne 'print $$1 if m{^Version:\s+(?:\d+:)?(\d.*)(?:\-\d+.*)};')
+DTYPE = +dfsg1
+VER ?= $(subst $(DTYPE),,$(UVER))
+
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/rules/utils.mk
include /usr/share/cdbs/1/class/autotools.mk
@@ -10,5 +16,23 @@ DEB_CONFIGURE_SCRIPT := ./autogen.sh
DEB_CONFIGURE_EXTRA_FLAGS += --disable-scrollkeeper
-get-orig-source:
- uscan --noconf --force-download --rename --download-current-version --destdir=..
+get-orig-source: $(PKG)_$(VER)$(DTYPE).orig.tar.xz $(info I: $(PKG)_$(VER)$(DTYPE))
+ @
+
+$(PKG)_$(VER)$(DTYPE).orig.tar.xz:
+ @echo "# Downloading..."
+ uscan --noconf --verbose --rename --destdir=$(CURDIR) --check-dirname-level=0 --force-download --download-version $(VER) $(PKD)
+ $(if $(wildcard $(PKG)-$(VER)),$(error $(PKG)-$(VER) exist, aborting..))
+ @echo "# Extracting..."
+ mkdir $(PKG)-$(VER) \
+ && tar -xf $(PKG)_$(VER).orig.tar.* --directory $(PKG)-$(VER) --strip-components 1 \
+ || $(RM) -r $(PKG)-$(VER)
+ @echo "# Cleaning-up..."
+ cd $(PKG)-$(VER) \
+ && $(RM) -r -v \
+ help/
+ $(RM) -v $(PKG)_$(VER).orig.tar.*
+ @echo "# Packing..."
+ find -L "$(PKG)-$(VER)" -xdev -type f -print | sort \
+ | XZ_OPT="-6v" tar -caf "$(PKG)_$(VER)$(DTYPE).orig.tar.xz" -T- --owner=root --group=root --mode=a+rX \
+ && $(RM) -r "$(PKG)-$(VER)"
--
mate-netspeed Debian package
More information about the pkg-mate-commits
mailing list