--- python-feedvalidator-0~svn1022.orig/debian/README.source +++ python-feedvalidator-0~svn1022/debian/README.source @@ -0,0 +1,20 @@ +Source README +============= + +The upstream source can be downloaded with the following command: + + ./debian/rules get-orig-source + +You will need the following packages installed: + + subversion + +You can patch the upstream source with the following command: + + ./debian/rules patch + +You can add or edit patches using the following command: + + cdbs-edit-patch + + -- Noah Slater , Wed, 14 Jan 2009 16:43:24 +0000 --- python-feedvalidator-0~svn1022.orig/debian/changelog +++ python-feedvalidator-0~svn1022/debian/changelog @@ -0,0 +1,32 @@ +python-feedvalidator (0~svn1022-3) unstable; urgency=low + + [ Jakub Wilk ] + * Use canonical URIs for Vcs-* fields. + * Put Debian Python Modules Team in Uploaders (in place of Python + Applications Packaging Team). + + [ Piotr Ożarowski ] + * Replace dh_pysupport with dh_python2 + + -- Jakub Wilk Wed, 05 Jun 2013 00:33:29 +0200 + +python-feedvalidator (0~svn1022-2) unstable; urgency=medium + + * Team upload. + + [ Noah Slater ] + * Updated debian/control, updated Vcs-Browser. + * Updated debian/control, updated Build-Depends on debhelper to 7.2.11. + + [ Jakub Wilk ] + * Upstream support for multiple languages is broken. Always use “en” as + language (closes: #588983). + * Bump standards version to 3.9.0, no changes needed. + + -- Jakub Wilk Sun, 18 Jul 2010 11:03:32 +0200 + +python-feedvalidator (0~svn1022-1) unstable; urgency=low + + * Initial release. Closes: #495940 + + -- Noah Slater Fri, 22 Aug 2008 15:26:19 +0100 --- python-feedvalidator-0~svn1022.orig/debian/compat +++ python-feedvalidator-0~svn1022/debian/compat @@ -0,0 +1 @@ +5 --- python-feedvalidator-0~svn1022.orig/debian/control +++ python-feedvalidator-0~svn1022/debian/control @@ -0,0 +1,20 @@ +Source: python-feedvalidator +Section: python +Priority: optional +Maintainer: Noah Slater +Uploaders: Debian Python Modules Team +Standards-Version: 3.9.0 +Build-Depends: cdbs (>= 0.4.42), dh-python, debhelper (>= 7.2.11) +Build-Depends-Indep: help2man, python +Homepage: http://feedvalidator.org/ +Vcs-Svn: svn://anonscm.debian.org/python-modules/packages/python-feedvalidator/trunk/ +Vcs-Browser: http://anonscm.debian.org/viewvc/python-modules/packages/python-feedvalidator/trunk/ +X-Python-Version: >= 2.3 + +Package: python-feedvalidator +Architecture: all +Depends: ${python:Depends}, ${misc:Depends}, python-libxml2, python-rdflib +Description: library and tool for validating syndication feeds + An advanced syndication feed validator that works with RSS, Atom and KML. + . + Usable as a Python library or command line tool. --- python-feedvalidator-0~svn1022.orig/debian/copyright +++ python-feedvalidator-0~svn1022/debian/copyright @@ -0,0 +1,87 @@ +Format-Specification: http://wiki.debian.org/Proposals/CopyrightFormat?action=recall&rev=180 +Upstream-Name: Feed Validator +Upstream-Maintainer: Sam Ruby +Upstream-Source: http://feedvalidator.googlecode.com/svn/trunk/feedvalidator + +Files: * +Copyright: Copyright 2006, Sam Ruby + Copyright 2006, Mark Pilgrim + Copyright 2006, Joseph Walton + Copyright 2006, Phil Ringnalda +License: MIT + 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. + +Files: debian/* +Copyright: Copyright 2009, Noah Slater +License: GAP + Copying and distribution of this package, with or without modification, are + permitted in any medium without royalty provided the copyright notice and this + notice are preserved. + +Files: feedvalidator/timeoutsocket.py +Copyright: Copyright 2001, Timothy O'Malley +License: MIT + Permission to use, copy, modify, and distribute this software + and its documentation for any purpose and without fee is hereby + granted, provided that the above copyright notice appear in all + copies and that both that copyright notice and this permission + notice appear in supporting documentation, and that the name of + Timothy O'Malley not be used in advertising or publicity + pertaining to distribution of the software without specific, written + prior permission. + + Timothy O'Malley DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS + SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY + AND FITNESS, IN NO EVENT SHALL Timothy O'Malley BE LIABLE FOR + ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, + WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS + ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR + PERFORMANCE OF THIS SOFTWARE. + +Files: rdflib/* +Copyright: Copyright 2005, Daniel Krech +License: BSD + 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 Daniel Krech 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. --- python-feedvalidator-0~svn1022.orig/debian/dirs +++ python-feedvalidator-0~svn1022/debian/dirs @@ -0,0 +1,2 @@ +usr/bin +usr/lib/python2.7/dist-packages/ --- python-feedvalidator-0~svn1022.orig/debian/manpages +++ python-feedvalidator-0~svn1022/debian/manpages @@ -0,0 +1 @@ +feedvalidator.1 --- python-feedvalidator-0~svn1022.orig/debian/patches/command-options.patch +++ python-feedvalidator-0~svn1022/debian/patches/command-options.patch @@ -0,0 +1,74 @@ +diff -Nur -x '*.orig' -x '*~' python-feedvalidator-0~svn1022-dfsg/demo.py python-feedvalidator-0~svn1022-dfsg.new/demo.py +--- python-feedvalidator-0~svn1022-dfsg/demo.py 2008-03-12 18:22:48.000000000 +0000 ++++ python-feedvalidator-0~svn1022-dfsg.new/demo.py 2008-08-22 14:45:03.000000000 +0100 +@@ -6,6 +6,7 @@ + __version__ = "$Revision: 988 $" + __copyright__ = "Copyright (c) 2002 Sam Ruby and Mark Pilgrim" + ++import getopt + import feedvalidator + import sys + import os +@@ -13,7 +14,7 @@ + import urllib2 + import urlparse + +-if __name__ == '__main__': ++def run(): + # arg 1 is URL to validate + link = sys.argv[1:] and sys.argv[1] or 'http://www.intertwingly.net/blog/index.atom' + link = urlparse.urljoin('file:' + urllib.pathname2url(os.getcwd()) + '/', link) +@@ -50,3 +51,53 @@ + sys.exit(1) + else: + print "No errors or warnings" ++ ++def main(): ++ short_opts = "hV" ++ long_opts = ["help", "version"] ++ try: ++ opts, args = getopt.getopt(sys.argv[1:], short_opts, long_opts) ++ except getopt.GetoptError, error: ++ sys.stderr.write("error: %s\n\n" % error) ++ sys.stderr.write("Try `%s --help` for more information.\n" % sys.argv[0]) ++ sys.exit(1) ++ for opt, value in opts: ++ if opt in ("-h", "--help"): ++ sys.stdout.write("""Usage: feedvalidator [OPTION] [FEED] [LEVEL] ++ ++Validate a feed as RSS, Atom or KML. The feed can be a local or remote URI. ++ ++The optional level argument can be one of the following: ++ ++ A basic level only ++ AA mimic the online validator (default) ++ AAA experimental, these rules will change or disappear in future versions ++ ++The exit status is 0 for success or 1 for failure. ++ ++Options: ++ ++ -h, --help display a short help message and exit ++ -V, --version display version information and exit ++ ++Report bugs using the `reportbug` command. ++""" ++) ++ sys.exit(0) ++ if opt in ("-V", "--version"): ++ sys.stdout.write("""feedvalidator - Feed Validator @version@ ++ ++Copyright 2002, Sam Ruby and Mark Pilgrim ++ ++Licensed under an MIT variant free software license. ++ ++Written by Sam Ruby and Mark Pilgrim. ++""") ++ sys.exit(0) ++ run() ++ ++if __name__ == "__main__": ++ try: ++ main() ++ except KeyboardInterrupt: ++ pass --- python-feedvalidator-0~svn1022.orig/debian/patches/disable-i18n.patch +++ python-feedvalidator-0~svn1022/debian/patches/disable-i18n.patch @@ -0,0 +1,18 @@ +Description: Upstream support for multiple languages is broken. Always use "en" + as language. +Bug: http://code.google.com/p/feedvalidator/issues/detail?id=10 +Bug-Debian: http://bugs.debian.org/588983 +Forwarded: not-needed + +--- a/feedvalidator/formatter/base.py ++++ b/feedvalidator/formatter/base.py +@@ -8,7 +8,8 @@ + + from UserList import UserList + import os +-LANGUAGE = os.environ.get('LANGUAGE', 'en') ++# FIXME: upstream support for i18n is broken; hardcode "en" ++LANGUAGE = 'en' + lang = __import__('feedvalidator.i18n.%s' % LANGUAGE, globals(), locals(), LANGUAGE) + + from feedvalidator.logging import Info, Warning, Error --- python-feedvalidator-0~svn1022.orig/debian/rules +++ python-feedvalidator-0~svn1022/debian/rules @@ -0,0 +1,45 @@ +#!/usr/bin/make -f + +# Copyright 2009, Noah Slater + +# Copying and distribution of this file, with or without modification, are +# permitted in any medium without royalty provided the copyright notice and this +# notice are preserved. + +include /usr/share/cdbs/1/rules/buildcore.mk +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/rules/simple-patchsys.mk + +DEB_ORIG_URI = http://feedvalidator.googlecode.com/svn/trunk/feedvalidator/src +DEB_ORIG_DIRECTORY = $(DEB_SOURCE_PACKAGE)-$(DEB_UPSTREAM_VERSION) +DEB_ORIG_FILENAME = $(DEB_SOURCE_PACKAGE)_$(DEB_UPSTREAM_VERSION).orig.tar.gz +DEB_REPOS_VERSION = $(shell echo $(DEB_UPSTREAM_VERSION) | sed -r "s/.*~svn//") + +# @@ workaround for #486848 +binary-arch binary-indep: build + +clean:: + rm -rf feedvalidator.1 + +cleanbuilddir:: + sed -i -e "s/$(DEB_UPSTREAM_VERSION)/@version@/" demo.py + +post-patches:: + sed -i -e "s/@version@/$(DEB_UPSTREAM_VERSION)/" demo.py + +common-install-prehook-impl:: + cp -R feedvalidator \ + debian/python-feedvalidator/usr/lib/python2.7/dist-packages/ + PYTHONPATH=debian/python-feedvalidator/usr/lib/python2.7/dist-packages/ \ + help2man -N -n "a tool for validating syndication feeds" ./demo.py > feedvalidator.1 + cp demo.py debian/python-feedvalidator/usr/bin/feedvalidator + +binary-install/python-feedvalidator:: + dh_python2 -ppython-feedvalidator + +# @@ only works from source directory, see #494141 +.PHONY: get-orig-source +get-orig-source: + svn export -r $(DEB_REPOS_VERSION) $(DEB_ORIG_URI) $(DEB_ORIG_DIRECTORY) + tar -czf $(DEB_ORIG_FILENAME) $(DEB_ORIG_DIRECTORY) + rm -fr $(DEB_ORIG_DIRECTORY) --- python-feedvalidator-0~svn1022.orig/debian/source/format +++ python-feedvalidator-0~svn1022/debian/source/format @@ -0,0 +1 @@ +1.0