[Python-modules-commits] r7236 - in packages/sqlalchemy/trunk/debian (5 files)

piotr at users.alioth.debian.org piotr at users.alioth.debian.org
Tue Dec 30 22:49:05 UTC 2008


    Date: Tuesday, December 30, 2008 @ 22:49:04
  Author: piotr
Revision: 7236

* New upstream snapshot
  + disable_ez_setup patch removed (no longer needed)
  + generate documentation using Sphinx
* Add get-orig-source rule

Added:
  packages/sqlalchemy/trunk/debian/python-sqlalchemy-doc.dirs
Modified:
  packages/sqlalchemy/trunk/debian/changelog
  packages/sqlalchemy/trunk/debian/control
  packages/sqlalchemy/trunk/debian/rules
Deleted:
  packages/sqlalchemy/trunk/debian/patches/

Modified: packages/sqlalchemy/trunk/debian/changelog
===================================================================
--- packages/sqlalchemy/trunk/debian/changelog	2008-12-29 17:48:25 UTC (rev 7235)
+++ packages/sqlalchemy/trunk/debian/changelog	2008-12-30 22:49:04 UTC (rev 7236)
@@ -1,3 +1,12 @@
+sqlalchemy (0.5.0~rc4+svn5557-1) UNRELEASED; urgency=low
+
+  * New upstream snapshot
+    + disable_ez_setup patch removed (no longer needed)
+    + generate documentation using Sphinx
+  * Add get-orig-source rule
+
+ -- Piotr Ożarowski <piotr at debian.org>  Tue, 30 Dec 2008 17:12:10 +0100
+
 sqlalchemy (0.5.0~rc4-1) experimental; urgency=low
 
   * New upstream release

Modified: packages/sqlalchemy/trunk/debian/control
===================================================================
--- packages/sqlalchemy/trunk/debian/control	2008-12-29 17:48:25 UTC (rev 7235)
+++ packages/sqlalchemy/trunk/debian/control	2008-12-30 22:49:04 UTC (rev 7236)
@@ -3,9 +3,9 @@
 Priority: optional
 Maintainer: Piotr Ożarowski <piotr at debian.org>
 Uploaders: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
-Build-Depends: debhelper (>= 5.0.38), quilt (>= 0.40)
+Build-Depends: debhelper (>= 5.0.38)
 Build-Depends-Indep: python-all-dev (>= 2.3.5-11), python-support (>= 0.6.4),
- python-setuptools (>= 0.6b3-1~)
+ python-setuptools (>= 0.6b3-1~), python-sphinx (>= 0.6)
 Standards-Version: 3.8.0
 Homepage: http://www.sqlalchemy.org/
 Vcs-Svn: svn://svn.debian.org/python-modules/packages/sqlalchemy/trunk

Added: packages/sqlalchemy/trunk/debian/python-sqlalchemy-doc.dirs
===================================================================
--- packages/sqlalchemy/trunk/debian/python-sqlalchemy-doc.dirs	                        (rev 0)
+++ packages/sqlalchemy/trunk/debian/python-sqlalchemy-doc.dirs	2008-12-30 22:49:04 UTC (rev 7236)
@@ -0,0 +1 @@
+/usr/share/doc/python-sqlalchemy-doc/docs

Modified: packages/sqlalchemy/trunk/debian/rules
===================================================================
--- packages/sqlalchemy/trunk/debian/rules	2008-12-29 17:48:25 UTC (rev 7235)
+++ packages/sqlalchemy/trunk/debian/rules	2008-12-30 22:49:04 UTC (rev 7236)
@@ -6,23 +6,32 @@
 
 PYVERS=$(shell pyversions -vr)
 
-include /usr/share/quilt/quilt.make
 
-
-clean: unpatch
+clean:
 	dh_testdir
 	dh_testroot
-	-rm -rf $(CURDIR)/lib/${m_name}.egg-info $(CURDIR)/build/
+	rm -rf $(CURDIR)/lib/${m_name}.egg-info $(CURDIR)/build/
 	find . -name '*\.py[co]' -delete
-	dh_clean build-*
+	dh_clean build-* $(PYVERS:%=install-python%)
 
-build: patch
+build: build-docs
 
-install: $(PYVERS:%=install-python%)
+build-docs:
+	dh_testdir
+	dh_installdirs
+	PYTHONPATH=. sphinx-build -N -q -E -b html doc/build/ \
+	 $(CURDIR)/debian/${p_name}-doc/usr/share/doc/${p_name}-doc/docs/
+	rm -rf $(CURDIR)/debian/${p_name}-doc/usr/share/doc/${p_name}-doc/docs/.doctrees
+	dh_link /usr/share/javascript/jquery/jquery.js \
+		/usr/share/doc/${p_name}-doc/docs/_static/jquery.js
+	touch $@
+
+install: build $(PYVERS:%=install-python%)
 install-python%:
 	python$* setup.py install \
 		--single-version-externally-managed \
 		--root $(CURDIR)/debian/${p_name}
+	touch $@
 
 binary-indep: build install
 	dh_testdir -i
@@ -44,4 +53,15 @@
 
 binary: binary-indep binary-arch
 
-.PHONY: build clean binary-indep binary-arch binary install
+get-orig-source:
+	REV=$(shell dpkg-parsechangelog | sed -rne 's,^Version: .*svn([^-]+).*,\1,p'); \
+	VER=$(shell dpkg-parsechangelog | sed -rne 's,^Version: ([^-]+).*,\1,p'); \
+	if [ x$$REV = x ]; then \
+	 uscan --force-download --rename --download-version=$$VER --destdir=.; \
+	else \
+	 svn -q export -r $$REV http://svn.sqlalchemy.org/sqlalchemy/trunk sqlalchemy-r$$REV && \
+         tar -zcf ./sqlalchemy_$$VER.orig.tar.gz sqlalchemy-r$$REV; \
+	 rm -rf sqlalchemy-r$$REV; \
+	fi
+
+.PHONY: build clean binary-indep binary-arch binary install get-orig-source




More information about the Python-modules-commits mailing list