[Python-apps-commits] r6367 - in packages/sqlparse/trunk/debian (control copyright rules)

jollyroger-guest at users.alioth.debian.org jollyroger-guest at users.alioth.debian.org
Tue Dec 7 14:13:01 UTC 2010


    Date: Tuesday, December 7, 2010 @ 14:12:21
  Author: jollyroger-guest
Revision: 6367

Fix lintian errors, write a reasonable rules file.

Modified:
  packages/sqlparse/trunk/debian/control
  packages/sqlparse/trunk/debian/copyright
  packages/sqlparse/trunk/debian/rules

Modified: packages/sqlparse/trunk/debian/control
===================================================================
--- packages/sqlparse/trunk/debian/control	2010-12-07 00:31:26 UTC (rev 6366)
+++ packages/sqlparse/trunk/debian/control	2010-12-07 14:12:21 UTC (rev 6367)
@@ -1,15 +1,15 @@
 Source: sqlparse
 Section: python
-Priority: extra
+Priority: optional
 Maintainer: Python Applications Packaging Team <python-apps-team at lists.alioth.debian.org>
-Build-Depends: debhelper (>= 7.0.50~)
+Build-Depends: debhelper (>= 7.0.50~), python
 Standards-Version: 3.8.4
 Homepage: http://code.google.com/p/python-sqlparse/
-Vcs-Hg: https://python-sqlparse.googlecode.com/hg/
-Vcs-Browser: http://code.google.com/p/python-sqlparse/source/browse/
+Vcs-Svn: svn://svn.debian.org/python-apps/packages/sqlparse/trunk
+Vcs-Browser: http://svn.debian.org/viewsvn/python-apps/packages/sqlparse/trunk/
 
 Package: python-sqlparse
 Architecture: all
-Depends: ${misc:Depends}
+Depends: ${misc:Depends}, ${python:Depends}
 Description: A non-validating SQL parser for Python.
  It provides support for parsing, splitting and formatting SQL statements. 

Modified: packages/sqlparse/trunk/debian/copyright
===================================================================
--- packages/sqlparse/trunk/debian/copyright	2010-12-07 00:31:26 UTC (rev 6366)
+++ packages/sqlparse/trunk/debian/copyright	2010-12-07 14:12:21 UTC (rev 6367)
@@ -40,14 +40,8 @@
     OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 
-On Debian systems, the complete text of the BSD License can be
-found in "/usr/share/common-licenses/BSD".
-
 The Debian packaging is:
 
     Copyright (C) 2010 Andriy Senkovych <jolly_roger at itblog.org.ua>
 
-and is licensed under the BSD License, see "/usr/share/common-licenses/BSD".
-
-# Please also look if there are files or directories which have a
-# different copyright/license attached and list them here.
+and is licensed under the GPL License, see "/usr/share/common-licenses/GPL".

Modified: packages/sqlparse/trunk/debian/rules
===================================================================
--- packages/sqlparse/trunk/debian/rules	2010-12-07 00:31:26 UTC (rev 6366)
+++ packages/sqlparse/trunk/debian/rules	2010-12-07 14:12:21 UTC (rev 6367)
@@ -1,13 +1,54 @@
 #!/usr/bin/make -f
-# -*- makefile -*-
-# Sample debian/rules that uses debhelper.
-# This file was originally written by Joey Hess and Craig Small.
-# As a special exception, when this file is copied by dh-make into a
-# dh-make output file, you may use that output file without restriction.
-# This special exception was added by Craig Small in version 0.37 of dh-make.
 
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
-%:
-	dh $@ 
+package_name = python-sqlparse
+install_dir = debian/${package_name}
+
+build: build-stamp
+
+build-stamp:
+	dh_testdir
+	python setup.py build
+	touch build-stamp
+
+clean:
+	dh_testdir
+	rm -rf build-stamp build
+	find . -name '*.py[co]' | xargs rm -f
+	dh_clean
+
+build:
+	dh_testdir
+	python tests/run_tests.py
+	python setup.py build
+
+install: build
+	dh_testroot
+	dh_prep
+	dh_installdirs
+	python setup.py install \
+		--root=$(install_dir) \
+		--install-layout=deb \
+		--no-compile
+	dh_installdocs
+	dh_installchangelogs
+	dh_installman
+	dh_installinfo
+	dh_python2
+	dh_compress
+	dh_fixperms
+	dh_installdeb
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary-indep: build install
+
+binary-arch:
+
+
+binary: binary-indep binary-arch
+
+.PHONY: build clean binary-indep binary install




More information about the Python-apps-commits mailing list