[Python-modules-commits] r24632 - in packages/pywapi/trunk/debian (changelog control rules)

asb at users.alioth.debian.org asb at users.alioth.debian.org
Sun Jun 2 20:07:42 UTC 2013


    Date: Sunday, June 2, 2013 @ 20:07:40
  Author: asb
Revision: 24632

* New upstream snapshot.
 - Fixes Python3 compatibility issues (Closes: #710312).
* Add dependency on python{3}-unidecode.
* Add get-orig-source target to debian/rules.

Modified:
  packages/pywapi/trunk/debian/changelog
  packages/pywapi/trunk/debian/control
  packages/pywapi/trunk/debian/rules

Modified: packages/pywapi/trunk/debian/changelog
===================================================================
--- packages/pywapi/trunk/debian/changelog	2013-06-02 17:07:35 UTC (rev 24631)
+++ packages/pywapi/trunk/debian/changelog	2013-06-02 20:07:40 UTC (rev 24632)
@@ -1,8 +1,12 @@
-pywapi (0.3.2-2) UNRELEASED; urgency=low
+pywapi (0.3.3~svn147-1) unstable; urgency=low
 
+  * New upstream snapshot.
+   - Fixes Python3 compatibility issues (Closes: #710312).
   * Add Joshua Tasker to debian/copyright.
+  * Add dependency on python{3}-unidecode.
+  * Add get-orig-source target to debian/rules.
 
- -- Andrew Starr-Bochicchio <asb at debian.org>  Wed, 29 May 2013 12:54:38 -0400
+ -- Andrew Starr-Bochicchio <asb at debian.org>  Sun, 02 Jun 2013 16:07:25 -0400
 
 pywapi (0.3.2-1) unstable; urgency=low
 

Modified: packages/pywapi/trunk/debian/control
===================================================================
--- packages/pywapi/trunk/debian/control	2013-06-02 17:07:35 UTC (rev 24631)
+++ packages/pywapi/trunk/debian/control	2013-06-02 20:07:40 UTC (rev 24632)
@@ -14,7 +14,7 @@
 
 Package: python-pywapi
 Architecture: all
-Depends: ${misc:Depends}, ${python:Depends}
+Depends: ${misc:Depends}, ${python:Depends}, python-unidecode
 Description: Python wrapper around different weather APIs
  The module provides a Python wrapper around the Yahoo! Weather, Weather.com
  and National Oceanic and Atmospheric Administration (NOAA) APIs. Fetch weather
@@ -24,7 +24,7 @@
 
 Package: python3-pywapi
 Architecture: all
-Depends: ${misc:Depends}, ${python3:Depends}
+Depends: ${misc:Depends}, ${python3:Depends}, python3-unidecode
 Description: Python wrapper around different weather APIs (Python 3)
  The module provides a Python wrapper around the Yahoo! Weather, Weather.com
  and National Oceanic and Atmospheric Administration (NOAA) APIs. Fetch weather

Modified: packages/pywapi/trunk/debian/rules
===================================================================
--- packages/pywapi/trunk/debian/rules	2013-06-02 17:07:35 UTC (rev 24631)
+++ packages/pywapi/trunk/debian/rules	2013-06-02 20:07:40 UTC (rev 24632)
@@ -1,5 +1,10 @@
 #!/usr/bin/make -f
 
+PACKAGE = pywapi
+SRC_VERSION := $(shell dpkg-parsechangelog | sed -ne 's/^Version: \(\([0-9]\+\):\)\?\(.*\)-.*/\3/p')
+SVN_REVISION := $(shell echo $(SRC_VERSION) | awk -F"~" '{ print $$2 }' | sed 's/svn//' )
+TARBALL = $(PACKAGE)_$(SRC_VERSION).orig.tar.gz
+
 PYTHON2=$(shell pyversions -vr)
 PYTHON3=$(shell py3versions -vr)
 
@@ -28,3 +33,15 @@
 
 override_dh_installexamples:
 	dh_installexamples --all examples/*
+
+# Adapted from http://wiki.debian.org/SandroTosi/Svn_get-orig-source
+get-orig-source:
+	rm -rf get-orig-source $(TARBALL)
+	mkdir get-orig-source
+	svn export -r $(SVN_REVISION) http://python-weather-api.googlecode.com/svn/trunk \
+	get-orig-source/$(PACKAGE)-$(SRC_VERSION).orig
+	GZIP='--best --no-name' tar czf $(TARBALL) -C get-orig-source $(PACKAGE)-$(SRC_VERSION).orig
+	rm -rf get-orig-source
+	echo "  "$(TARBALL)" created; move it to the right destination to build the package"
+
+.PHONY: get-orig-source




More information about the Python-modules-commits mailing list