[med-svn] r12857 - trunk/packages/ginkgocadx/trunk/debian

Dmitry Smirnov onlyjob-guest at alioth.debian.org
Mon Jan 28 08:52:19 UTC 2013


Author: onlyjob-guest
Date: 2013-01-28 08:52:19 +0000 (Mon, 28 Jan 2013)
New Revision: 12857

Modified:
   trunk/packages/ginkgocadx/trunk/debian/changelog
   trunk/packages/ginkgocadx/trunk/debian/rules
   trunk/packages/ginkgocadx/trunk/debian/watch
Log:
get-orig-source

Modified: trunk/packages/ginkgocadx/trunk/debian/changelog
===================================================================
--- trunk/packages/ginkgocadx/trunk/debian/changelog	2013-01-28 08:52:01 UTC (rev 12856)
+++ trunk/packages/ginkgocadx/trunk/debian/changelog	2013-01-28 08:52:19 UTC (rev 12857)
@@ -15,6 +15,7 @@
     - fixwhatis.patch is dropped (applied-upstream).
   * updated lintian-overrides.
   * dropped obsolete "DM-Upload-Allowed: yes".
+  * added "get-orig-source" target to recompress orig.tar.
 
  -- Dmitry Smirnov <onlyjob at member.fsf.org>  Mon, 28 Jan 2013 04:56:27 +1100
 

Modified: trunk/packages/ginkgocadx/trunk/debian/rules
===================================================================
--- trunk/packages/ginkgocadx/trunk/debian/rules	2013-01-28 08:52:01 UTC (rev 12856)
+++ trunk/packages/ginkgocadx/trunk/debian/rules	2013-01-28 08:52:19 UTC (rev 12857)
@@ -8,7 +8,10 @@
 # minimise needless linking
 export DEB_LDFLAGS_MAINT_APPEND= -Wl,--as-needed
 
-pkg=ginkgocadx
+PKD  = $(abspath $(dir $(MAKEFILE_LIST)))
+PKG  = $(word 2,$(shell dpkg-parsechangelog -l$(PKD)/changelog | grep ^Source))
+VER ?= $(shell dpkg-parsechangelog -l$(PKD)/changelog | perl -ne 'print $$1 if m{Version:\s*([\d\.]+)}')
+
 DH=--buildsystem=cmake --sourcedirectory=src --parallel
 %:
 	dh $@ $(DH)
@@ -22,7 +25,7 @@
 	dh_auto_install $(DH) --destdir=$(CURDIR)/debian/tmp
 	
 	## Hack around useless rpath definitions
-	#/usr/bin/chrpath -r /usr/lib/ginkgocadx debian/$(pkg)/usr/bin/$(pkg)
+	#/usr/bin/chrpath -r /usr/lib/ginkgocadx debian/$(PKG)/usr/bin/$(PKG)
 
 override_dh_installchangelogs:
 	dh_installchangelogs changelog_opensource.txt
@@ -34,5 +37,24 @@
 override_dh_builddeb:
 	dh_builddeb -- -Zxz
 
-get-orig-source:
-	uscan --verbose --force-download --repack
+#DTYPE := +dfsg
+.PHONY: get-orig-source
+get-orig-source: $(PKG)_$(VER)$(DTYPE).orig.tar.xz
+	@
+
+$(PKG)_$(VER)$(DTYPE).orig.tar.xz:
+	@echo "# Downloading..."
+	uscan --noconf --verbose --rename --destdir=$(CURDIR) --check-dirname-level=0 --force-download --download-version $(VER) $(PKD)
+	@echo "# Extracting..."
+	mkdir $(PKG)-$(VER) \
+	&& tar -xf $(PKG)_$(VER).orig.tar.* --directory $(PKG)-$(VER) --strip-components 2 \
+	|| $(RM) -r $(PKG)-$(VER)
+	#@echo "# Clean-up..."
+	#cd $(PKG)-$(VER) \
+	#&& $(RM) -r -v src/ginkgocadx/*.ico
+	@echo "# Correcting permissions..."
+	chmod a-x $(PKG)-$(VER)/src/cadxcore/resources/conformance.xml
+	find $(PKG)-$(VER) -type f -executable -exec chmod a-x '{}' \;
+	@echo "# Packing..."
+	tar -caf "$(PKG)_$(VER)$(DTYPE).orig.tar.xz" "$(PKG)-$(VER)" \
+	&& $(RM) -r "$(PKG)-$(VER)"

Modified: trunk/packages/ginkgocadx/trunk/debian/watch
===================================================================
--- trunk/packages/ginkgocadx/trunk/debian/watch	2013-01-28 08:52:01 UTC (rev 12856)
+++ trunk/packages/ginkgocadx/trunk/debian/watch	2013-01-28 08:52:19 UTC (rev 12857)
@@ -1,3 +1,6 @@
+## Use "debian/rules get-orig-source" to get recompressed orig.tar
+## with corrected permissions.
+
 version=3
 
 ## Redirector http://qa.debian.org/watch/sf.php/ginkgocadx




More information about the debian-med-commit mailing list