From e93c0910e79f7d156192e5e52f5df0ecc5b0c315 Mon Sep 17 00:00:00 2001 From: Per Andersson Date: Fri, 7 Sep 2012 03:27:36 +0200 Subject: Initial packaging --- debian/changelog | 5 +++++ debian/clean | 1 + debian/compat | 1 + debian/control | 30 ++++++++++++++++++++++++++ debian/copyright | 51 +++++++++++++++++++++++++++++++++++++++++++++ debian/pydist-overrides | 1 + debian/python-bleach.docs | 1 + debian/rules | 4 ++++ debian/source/format | 1 + debian/source/local-options | 1 + debian/watch | 2 ++ 11 files changed, 98 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/clean create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/pydist-overrides create mode 100644 debian/python-bleach.docs create mode 100755 debian/rules create mode 100644 debian/source/format create mode 100644 debian/source/local-options create mode 100644 debian/watch diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..edb192e --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +python-bleach (1.1.5-1) unstable; urgency=low + + * Initial release (Closes: #686902) + + -- Per Andersson Fri, 07 Sep 2012 03:27:14 +0200 diff --git a/debian/clean b/debian/clean new file mode 100644 index 0000000..b8a1de3 --- /dev/null +++ b/debian/clean @@ -0,0 +1 @@ +bleach.egg-info/* 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..932e10d --- /dev/null +++ b/debian/control @@ -0,0 +1,30 @@ +Source: python-bleach +Section: python +Priority: optional +Maintainer: Per Andersson +Standards-Version: 3.9.3 +Build-Depends: + debhelper (>= 7.0.50), + python (>= 2.6.6-9), + python-setuptools +Homepage: http://github.com/jsocol/bleach/ +Vcs-Git: git://git.debian.org/collab-maint/python-bleach.git +Vcs-Browser: http://git.debian.org/?p=collab-maint/python-bleach.git;a=summary + +Package: python-bleach +Architecture: all +Depends: ${misc:Depends}, ${python:Depends} +Description: whitelist-based HTML-sanitizing library + Bleach is an HTML sanitizing library that escapes or strips markup and + attributes based on a white list. Bleach can also linkify text safely, + applying filters that Django's urlize filter cannot, and optionally setting + rel attributes, even on links already in the text. + . + Bleach is intended for sanitizing text from untrusted sources. If you find + yourself jumping through hoops to allow your site administrators to do lots of + things, you're probably outside the use cases. Either trust those users, or + don't. + . + Because it relies on html5lib, Bleach is as good as modern browsers at dealing + with weird, quirky HTML fragments. And any of Bleach's methods will fix + unbalanced or mis-nested tags. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..36ff473 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,51 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Bleach +Source: http://github.com/jsocol/bleach/ + +Files: * +Copyright: 2012-2012 James Socol +License: + Copyright (c) 2010, Mozilla Foundation + All rights reserved. + . + Redistribution and use in source and binary forms, with or without modification, + are permitted provided that the following conditions are met: + . + 1. Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + . + 2. 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. + . + 3. Neither the name of bleach nor the names of its 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. + +Files: debian/* +Copyright: 2012 Per Andersson +License: WTFPLv2 + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + Version 2, December 2004 + . + Copyright (C) 2004 Sam Hocevar + . + Everyone is permitted to copy and distribute verbatim or modified + copies of this license document, and changing it is allowed as long + as the name is changed. + . + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + . + 0. You just DO WHAT THE FUCK YOU WANT TO. diff --git a/debian/pydist-overrides b/debian/pydist-overrides new file mode 100644 index 0000000..3738da5 --- /dev/null +++ b/debian/pydist-overrides @@ -0,0 +1 @@ +html5lib python-html5lib diff --git a/debian/python-bleach.docs b/debian/python-bleach.docs new file mode 100644 index 0000000..a1320b1 --- /dev/null +++ b/debian/python-bleach.docs @@ -0,0 +1 @@ +README.rst diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..4647c9c --- /dev/null +++ b/debian/rules @@ -0,0 +1,4 @@ +#!/usr/bin/make -f + +%: + dh $@ --with python2 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/source/local-options b/debian/source/local-options new file mode 100644 index 0000000..4aceb10 --- /dev/null +++ b/debian/source/local-options @@ -0,0 +1 @@ +unapply-patches diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..471601a --- /dev/null +++ b/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://githubredir.debian.net/github/jsocol/bleach (.*).tar.gz -- cgit v1.2.3