Commits

sixstone committed c00a035

Debianise the package

  • Participants
  • Parent commits cadf505

Comments (0)

Files changed (9)

 The author of django-dbgettext Simon Meers <simon@simonmeers.com>
+
+Patched by Enrique J. Hernández <ejhernandez@zentyal.com>
+PYTHON=`which python`
+DESTDIR=/
+BUILDIR=$(CURDIR)/debian/python-django-dbgettext
+PROJECT=python-django-dbgettext
+VERSION=0.1.1
+
+builddeb:
+	# build the source package in the parent directory
+	# then rename it to project_version.orig.tar.gz
+	$(PYTHON) setup.py sdist $(COMPILE) --dist-dir=../ --prune
+	rename -f 's/$(PROJECT)-(.*)\.tar\.gz/$(PROJECT)_$$1\.orig\.tar\.gz/' ../*
+	# build the package
+	dpkg-buildpackage -rfakeroot
+
+clean:
+	$(PYTHON) setup.py clean
+	$(MAKE) -f $(CURDIR)/debian/rules clean
+	rm -rf build/ MANIFEST
+	find . -name '*.pyc' -delete

File debian/changelog

+python-django-dbgettext (0.1.1) lenny; urgency=low
+
+  * Initial release. 
+
+ -- Enrique J. Hernandez Blasco <quique@zentyal.com>  Tue, 13 Sep 2011 10:16:00 +0200

File debian/compat

+5

File debian/control

+Source: python-django-dbgettext
+Section: web
+Priority: optional
+Maintainer: Enrique J. Hernández Blasco (quique@zentyal.com)
+Build-Depends: debhelper (>=7.0), python-support (>= 0.6), cdbs (>= 0.4.49)
+Standards-Version: 3.8.4
+
+Package: python-django-dbgettext
+Architecture: all
+Homepage: https://bitbucket.org/sixstone/django-dbgettext-django-1.2
+XB-Python-Version: ${python:Versions}
+Depends: ${misc:Depends}, ${python:Depends}
+Description: Translate Django models by extracting data for gettext
+ Translate Django models by extracting data for gettext

File debian/copyright

+Copyright (c) 2009, Simon Meers
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are
+met:
+
+    * Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+    * Redistributions in binary form must reproduce the above
+      copyright notice, this list of conditions and the following
+      disclaimer in the documentation and/or other materials provided
+      with the distribution.
+    * Neither the name of the author nor the names of other
+      contributors may be used to endorse or promote products derived
+      from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

File debian/pycompat

+2

File debian/rules

+#!/usr/bin/make -f
+# -*- makefile -*-
+
+DEB_PYTHON_SYSTEM := pysupport
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/python-distutils.mk
+
+clean::
+	rm -rf build build-stamp configure-stamp build/ MANIFEST
+	dh_clean
 from distutils.core import setup
 
 setup(name='django-dbgettext',
-      version='0.1',
+      version='0.1.1',
       description='Translate Django models by extracting data for gettext',
       author='Simon Meers',
       author_email='simon@simonmeers.com',