aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/changelog79
-rw-r--r--debian/compat1
-rw-r--r--debian/control23
-rw-r--r--debian/copyright62
-rw-r--r--debian/docs1
-rw-r--r--debian/patches/fix_calc_tag_weight19
-rw-r--r--debian/patches/series1
-rw-r--r--debian/python-django-tagging.doc-base13
-rw-r--r--debian/pyversions1
-rwxr-xr-xdebian/rules12
-rw-r--r--debian/source/format1
-rw-r--r--debian/watch3
12 files changed, 216 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..1254c7b
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,79 @@
+python-django-tagging (0.3.1-1) unstable; urgency=low
+
+ * New upstream release.
+ * Change build-depends on python-all-dev to python-all.
+ * Switch to source format 3.0 (quilt).
+ * Drop useless README.source.
+ * Register documentation with doc-base.
+
+ -- Raphaël Hertzog <hertzog@debian.org> Wed, 27 Jan 2010 15:47:04 +0100
+
+python-django-tagging (0.3-1) unstable; urgency=low
+
+ * New upstream release. Closes: #549612
+ * Update watch file to match new scheme.
+ * Update Standards-Version to 3.8.3, no changes needed.
+ * Add a README.source pointing to quilt's README.source.
+
+ -- Raphaël Hertzog <hertzog@debian.org> Mon, 05 Oct 2009 23:52:09 +0200
+
+python-django-tagging (0.2.1+svn154-2) unstable; urgency=low
+
+ * Apply patch to fix weight of tag when using logarithmic distribution.
+ Closes: #525770
+
+ -- Raphael Hertzog <hertzog@debian.org> Fri, 08 May 2009 12:30:16 +0200
+
+python-django-tagging (0.2.1+svn154-1) unstable; urgency=low
+
+ [ Sandro Tosi ]
+ * debian/control
+ - switch Vcs-Browser field to viewsvn
+
+ [ Raphael Hertzog ]
+ * New SVN snapshot. Upload to unstable now that Django 1.0 is there.
+ * Drop debian/patches/01_remove_django_builddeps as setup.py got fixed
+ upstream.
+ * Standards-Version bumped to 3.8.1, no changes needed.
+ * Switch to debhelper 7 and drop CDBS.
+ * Drop useless debian/pycompat file.
+ * Drop duplicate Priority field.
+ * Add ${misc:Depends} variable in Depends.
+
+ -- Raphael Hertzog <hertzog@debian.org> Fri, 13 Mar 2009 14:14:50 +0100
+
+python-django-tagging (0.2.1+svn147-1) experimental; urgency=low
+
+ * SVN snapshot to ensure compatibility with upcoming Django 1.0 release.
+ * debian/control: Depend on python-django >= 1.0~beta1.
+ * debian/patches/01_remove_django_builddeps: Added patch to remove
+ build-dep on python-django and the need to install the package
+ from within $PYTHON_PATH.
+ * debian/control: Updated policy version.
+
+ -- David Spreen <netzwurm@debian.org> Thu, 21 Aug 2008 18:07:31 -0700
+
+python-django-tagging (0.2.1-1) experimental; urgency=low
+
+ [ Raphael Hertzog ]
+ * New upstream release.
+ * Update the Vcs-Browser URL to match the python-modules standard.
+ * Updated Standards-Version to 3.7.3.
+ * Moved some build dependencies to Build-Depends-Indep as they are only
+ needed during build.
+ * Updated the dependency on python-django to make sure 0.96.1 doesn't
+ satisfy it accidentally.
+
+ [ Sandro Tosi ]
+ * debian/control
+ - uniforming Vcs-Browser field
+
+ -- Raphael Hertzog <hertzog@debian.org> Sun, 02 Mar 2008 12:01:32 +0100
+
+python-django-tagging (0.1+svn102-1) experimental; urgency=low
+
+ * Initial release.
+ * Upload to experimental because it requires the development version
+ of python-django.
+
+ -- Raphael Hertzog <hertzog@debian.org> Thu, 04 Oct 2007 12:44:38 +0200
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..7f8f011
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+7
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..315f909
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,23 @@
+Source: python-django-tagging
+Section: python
+Priority: optional
+Maintainer: Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>
+Uploaders: Raphaël Hertzog <hertzog@debian.org>, David Spreen <netzwurm@debian.org>
+Standards-Version: 3.8.3
+Build-Depends: debhelper (>= 7.0.50), python
+Build-Depends-Indep: python-support, python-docutils
+Vcs-Svn: svn://svn.debian.org/python-modules/packages/python-django-tagging/trunk/
+Vcs-Browser: http://svn.debian.org/viewsvn/python-modules/packages/python-django-tagging/trunk/
+Homepage: http://code.google.com/p/django-tagging/
+
+Package: python-django-tagging
+Architecture: all
+Depends: ${python:Depends}, ${misc:Depends}, python-django (>= 1.0)
+Description: A generic tagging application for Django projects
+ This is a generic tagging application for Django, which allows
+ association of a number of tags with any Model instance and makes
+ retrieval of tags simple.
+ .
+ Models can be expanded with a new TagField; web templates
+ can easily include tag clouds and dedicated views are available
+ to browse objects by tag.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..7f2d729
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,62 @@
+This package was debianized by Raphael Hertzog <hertzog@debian.org>.
+
+It was downloaded from http://code.google.com/p/django-tagging/
+
+Upstream Author: Jonathan Buchanan <jonathan.buchanan@gmail.com>
+
+Copyright:
+----------
+
+This copyright notice applies to django-tagging itself:
+
+ Copyright (c) 2007, Jonathan Buchanan
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
+ this software and associated documentation files (the "Software"), to deal in
+ the Software without restriction, including without limitation the rights to
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
+ of the Software, and to permit persons to whom the Software is furnished to do
+ so, subject to the following conditions:
+
+ The above copyright notice and this permission notice shall be included in all
+ copies or substantial portions of the Software.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+This copyright notice applies to "Cab" (http://code.google.com/p/cab/) which
+was used as base for creating django-tagging:
+
+ Copyright (c) 2007, James Bennett
+ 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.
+
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..bf4cbd5
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1 @@
+docs/*.txt
diff --git a/debian/patches/fix_calc_tag_weight b/debian/patches/fix_calc_tag_weight
new file mode 100644
index 0000000..1b65164
--- /dev/null
+++ b/debian/patches/fix_calc_tag_weight
@@ -0,0 +1,19 @@
+Description: Fix tag_weight when using logarithmic distribution
+ When logarithmic distribution is used _calculate_tag_weight may
+ return weight greater than maximum threshold. Because of this the attribute
+ font_size of the most frequently used tag may be left unset.
+Upstream: http://code.google.com/p/django-tagging/issues/detail?id=91
+Debian: #525770
+
+--- django-tagging.old/tagging/utils.py (revision 132)
++++ django-tagging/tagging/utils.py (working copy)
+@@ -230,7 +230,7 @@
+ if distribution == LINEAR or max_weight == 1:
+ return weight
+ elif distribution == LOGARITHMIC:
+- return math.log(weight) * max_weight / math.log(max_weight)
++ return min((max_weight, math.log(weight) * max_weight / math.log(max_weight)))
+ raise ValueError(_('Invalid distribution algorithm specified: %s.') % distribution)
+
+ def calculate_cloud(tags, steps=4, distribution=LOGARITHMIC):
+
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..4753ab0
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+fix_calc_tag_weight
diff --git a/debian/python-django-tagging.doc-base b/debian/python-django-tagging.doc-base
new file mode 100644
index 0000000..c34dbc6
--- /dev/null
+++ b/debian/python-django-tagging.doc-base
@@ -0,0 +1,13 @@
+Document: django-tagging-overview
+Title: Django Tagging Documentation
+Abstract: This is the documentation of Django Tagging, a generic tagging
+ application for Django projects, which allows association of a number of
+ tags with any Django model instance and makes retrieval of tags simple.
+Section: Programming/Python
+
+Format: HTML
+Index: /usr/share/doc/python-django-tagging/overview.html
+Files: /usr/share/doc/python-django-tagging/overview.html
+
+Format: Text
+Files: /usr/share/doc/python-django-tagging/overview.txt.gz
diff --git a/debian/pyversions b/debian/pyversions
new file mode 100644
index 0000000..57a7586
--- /dev/null
+++ b/debian/pyversions
@@ -0,0 +1 @@
+2.3-
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..78edc06
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,12 @@
+#!/usr/bin/make -f
+
+PKG = $(shell dh_listpackages)
+
+%:
+ dh $@
+
+override_dh_installdocs:
+ dh_installdocs
+ # Generate documentation
+ rst2html <docs/overview.txt >debian/$(PKG)/usr/share/doc/$(PKG)/overview.html
+
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..7c08702
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+http://code.google.com/p/django-tagging/downloads/list \
+.*/files/django-tagging-(\d.*)\.tar\.gz