[SCM] mate-system-monitor Debian package branch, master, updated. 53714f877fd73682cea447f8387d97a765f3e627
Mike Gabriel
sunweaver at moszumanska.debian.org
Tue Feb 18 09:42:33 UTC 2014
Gitweb-URL: http://git.debian.org/?p=pkg-mate/mate-system-monitor.git;a=commitdiff;h=fc8048f
The following commit has been merged in the master branch:
commit fc8048f285266469c26dd815361ca275ec6011c4
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date: Tue Feb 18 10:41:56 2014 +0100
debian/rules: repack source tarball with non-DFSG files removed
---
debian/mate-system-monitor-common.install | 1 -
debian/rules | 31 ++++++++++++++++++++++++++++---
debian/watch | 1 +
3 files changed, 29 insertions(+), 4 deletions(-)
diff --git a/debian/mate-system-monitor-common.install b/debian/mate-system-monitor-common.install
index 3a5bba0..64aabe0 100644
--- a/debian/mate-system-monitor-common.install
+++ b/debian/mate-system-monitor-common.install
@@ -1,4 +1,3 @@
usr/share/locale/
usr/share/MateConf/
usr/share/pixmaps/
-usr/share/help/
diff --git a/debian/rules b/debian/rules
index 16bd9ef..0d9b770 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,7 +1,13 @@
#!/usr/bin/make -f
+PKD = $(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))
+
%:
- dh $@
+ dh $@ --with autoreconf
override_dh_install:
dh_install --list-missing
@@ -17,5 +23,24 @@ override_dh_auto_configure:
override_dh_strip:
dh_strip --dbg-package=mate-system-monitor-dbg
-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) \
+ && find . -depth -type d -name 'windows' -exec $(RM) -r {} \; -printf 'removed %p
' \
+ && $(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)"
diff --git a/debian/watch b/debian/watch
index ab6ed6d..e299a8d 100644
--- a/debian/watch
+++ b/debian/watch
@@ -1,2 +1,3 @@
version=3
+opts=dversionmangle=s/\+dfsg1// \
http://pub.mate-desktop.org/releases/(\d\.(2|4|6|8|0))/mate-system-monitor-(.*)\.tar\.xz
--
mate-system-monitor Debian package
More information about the pkg-mate-commits
mailing list