[Python-modules-commits] r19920 - in packages/python-icalendar/trunk/debian (rules watch)

paultag-guest at users.alioth.debian.org paultag-guest at users.alioth.debian.org
Sat Jan 7 23:37:22 UTC 2012


    Date: Saturday, January 7, 2012 @ 23:37:21
  Author: paultag-guest
Revision: 19920

Small changes for the DFSG repack

Modified:
  packages/python-icalendar/trunk/debian/rules
  packages/python-icalendar/trunk/debian/watch

Modified: packages/python-icalendar/trunk/debian/rules
===================================================================
--- packages/python-icalendar/trunk/debian/rules	2012-01-07 23:06:23 UTC (rev 19919)
+++ packages/python-icalendar/trunk/debian/rules	2012-01-07 23:37:21 UTC (rev 19920)
@@ -4,10 +4,17 @@
 PACKAGE_DOCDIR=debian/$(PACKAGE_NAME)/usr/share/doc/$(PACKAGE_NAME)
 PACKAGE_LICENSE=/usr/share/common-licenses/GPL-2
 
+DFSG_NONFREE_FILES=./docs/rfc5545/ src/doctest.py
+
+DEB_UPSTREAM_VERSION_UNMANGLED=$(shell dpkg-parsechangelog | \
+	grep ^Version:\  | awk '{print $$2}' | sed 's/\~.*//g')
+DEB_UPSTREAM_VERSION=$(shell dpkg-parsechangelog | grep ^Version:\ | \
+	awk '{print $$2}' | sed 's/-.*//g' )
+
 %:
 	dh $@ --with python2
 
-clean:
+override_dh_auto_clean:
 	dh_auto_clean
 	rm -rvf docs/_build src/*.egg-info
 
@@ -29,3 +36,18 @@
 
 override_dh_compress:
 	dh_compress -X.html
+
+get-orig-source:
+	uscan --noconf --force-download --rename --download-current-version --destdir=.
+	mkdir repack $(PACKAGE_NAME)-$(DEB_UPSTREAM_VERSION)
+	tar -xvf $(DEB_UPSTREAM_VERSION_UNMANGLED) -C ./repack 
+	mv repack/*/* $(PACKAGE_NAME)-$(DEB_UPSTREAM_VERSION)
+	rm -fv $(DEB_UPSTREAM_VERSION_UNMANGLED)
+	rm -rfv $(DFSG_NONFREE_FILES)
+		
+	GZIP=--best tar -cz --owner root --group root --mode a+rX \
+		-f $(PACKAGE_NAME)_$(DEB_UPSTREAM_VERSION).orig.tar.gz \
+		$(PACKAGE_NAME)-$(DEB_UPSTREAM_VERSION)
+	
+	rm -rfv repack $(PACKAGE_NAME)-$(DEB_UPSTREAM_VERSION)
+

Modified: packages/python-icalendar/trunk/debian/watch
===================================================================
--- packages/python-icalendar/trunk/debian/watch	2012-01-07 23:06:23 UTC (rev 19919)
+++ packages/python-icalendar/trunk/debian/watch	2012-01-07 23:37:21 UTC (rev 19920)
@@ -1,2 +1,3 @@
 version=3
+opts=dversionmangle=s/\~dfsg\d*// \
 https://github.com/collective/icalendar/tags .*/tarball/(\d[\d\.]+)




More information about the Python-modules-commits mailing list