From 68e029f4c4081f1918c1750e8ed84eb716cc4581 Mon Sep 17 00:00:00 2001 From: tnut Date: Fri, 5 Mar 2010 15:18:19 +0100 Subject: pyfeedparser, correction du dossier --- extra/pyfeedparser/.footprint | 7 +++++++ extra/pyfeedparser/.md5sum | 2 ++ extra/pyfeedparser/Pkgfile | 18 ++++++++++++++++++ extra/pyfeedparser/feedparser_utf8_decoding.patch | 12 ++++++++++++ extra/pyfeeparser/.footprint | 7 ------- extra/pyfeeparser/.md5sum | 2 -- extra/pyfeeparser/Pkgfile | 18 ------------------ extra/pyfeeparser/feedparser_utf8_decoding.patch | 12 ------------ 8 files changed, 39 insertions(+), 39 deletions(-) create mode 100644 extra/pyfeedparser/.footprint create mode 100644 extra/pyfeedparser/.md5sum create mode 100644 extra/pyfeedparser/Pkgfile create mode 100644 extra/pyfeedparser/feedparser_utf8_decoding.patch delete mode 100644 extra/pyfeeparser/.footprint delete mode 100644 extra/pyfeeparser/.md5sum delete mode 100644 extra/pyfeeparser/Pkgfile delete mode 100644 extra/pyfeeparser/feedparser_utf8_decoding.patch diff --git a/extra/pyfeedparser/.footprint b/extra/pyfeedparser/.footprint new file mode 100644 index 000000000..e16bfa4d8 --- /dev/null +++ b/extra/pyfeedparser/.footprint @@ -0,0 +1,7 @@ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/lib/ +drwxr-xr-x root/root usr/lib/python2.6/ +drwxr-xr-x root/root usr/lib/python2.6/site-packages/ +-rw-r--r-- root/root usr/lib/python2.6/site-packages/feedparser-4.1-py2.6.egg-info +-rw-r--r-- root/root usr/lib/python2.6/site-packages/feedparser.py +-rw-r--r-- root/root usr/lib/python2.6/site-packages/feedparser.pyc diff --git a/extra/pyfeedparser/.md5sum b/extra/pyfeedparser/.md5sum new file mode 100644 index 000000000..cf723f2bf --- /dev/null +++ b/extra/pyfeedparser/.md5sum @@ -0,0 +1,2 @@ +7ab1140c1e29d4cd52ab20fa7b1f8640 feedparser-4.1.zip +2ec7ad9aa5ebd1959eadf69cf46fd2b5 feedparser_utf8_decoding.patch diff --git a/extra/pyfeedparser/Pkgfile b/extra/pyfeedparser/Pkgfile new file mode 100644 index 000000000..88f929619 --- /dev/null +++ b/extra/pyfeedparser/Pkgfile @@ -0,0 +1,18 @@ +# Description: Connecteur Python pour Parse RSS +# URL: http://feedparser.sf.net +# Maintainer: NuTyX core team +# Packager: thierryn1 at hispeed dot ch +# Depends on: python libxml2 + +name=pyfeedparser +version=4.1 +release=1 +source=(http://downloads.sourceforge.net/feedparser/feedparser-$version.zip\ + feedparser_utf8_decoding.patch) + +build() { + patch -Np0 -i feedparser_utf8_decoding.patch + + python setup.py build + python setup.py install --prefix=/usr --root=$PKG +} diff --git a/extra/pyfeedparser/feedparser_utf8_decoding.patch b/extra/pyfeedparser/feedparser_utf8_decoding.patch new file mode 100644 index 000000000..c1779c7e9 --- /dev/null +++ b/extra/pyfeedparser/feedparser_utf8_decoding.patch @@ -0,0 +1,12 @@ +--- /var/lib/python-support/python2.5/feedparser.py 2008-01-23 20:10:27.000000000 +0100 ++++ feedparser.py 2008-07-28 11:01:38.000000000 +0200 +@@ -1455,7 +1455,7 @@ + # thanks to Kevin Marks for this breathtaking hack to deal with (valid) high-bit attribute values in UTF-8 feeds + for key, value in attrs: + if type(value) != type(u''): +- value = unicode(value, self.encoding) ++ value = unicode(value, self.encoding, errors='replace') + uattrs.append((unicode(key, self.encoding), value)) + strattrs = u''.join([u' %s="%s"' % (key, value) for key, value in uattrs]).encode(self.encoding) + if tag in self.elements_no_end_tag: + diff --git a/extra/pyfeeparser/.footprint b/extra/pyfeeparser/.footprint deleted file mode 100644 index e16bfa4d8..000000000 --- a/extra/pyfeeparser/.footprint +++ /dev/null @@ -1,7 +0,0 @@ -drwxr-xr-x root/root usr/ -drwxr-xr-x root/root usr/lib/ -drwxr-xr-x root/root usr/lib/python2.6/ -drwxr-xr-x root/root usr/lib/python2.6/site-packages/ --rw-r--r-- root/root usr/lib/python2.6/site-packages/feedparser-4.1-py2.6.egg-info --rw-r--r-- root/root usr/lib/python2.6/site-packages/feedparser.py --rw-r--r-- root/root usr/lib/python2.6/site-packages/feedparser.pyc diff --git a/extra/pyfeeparser/.md5sum b/extra/pyfeeparser/.md5sum deleted file mode 100644 index cf723f2bf..000000000 --- a/extra/pyfeeparser/.md5sum +++ /dev/null @@ -1,2 +0,0 @@ -7ab1140c1e29d4cd52ab20fa7b1f8640 feedparser-4.1.zip -2ec7ad9aa5ebd1959eadf69cf46fd2b5 feedparser_utf8_decoding.patch diff --git a/extra/pyfeeparser/Pkgfile b/extra/pyfeeparser/Pkgfile deleted file mode 100644 index 88f929619..000000000 --- a/extra/pyfeeparser/Pkgfile +++ /dev/null @@ -1,18 +0,0 @@ -# Description: Connecteur Python pour Parse RSS -# URL: http://feedparser.sf.net -# Maintainer: NuTyX core team -# Packager: thierryn1 at hispeed dot ch -# Depends on: python libxml2 - -name=pyfeedparser -version=4.1 -release=1 -source=(http://downloads.sourceforge.net/feedparser/feedparser-$version.zip\ - feedparser_utf8_decoding.patch) - -build() { - patch -Np0 -i feedparser_utf8_decoding.patch - - python setup.py build - python setup.py install --prefix=/usr --root=$PKG -} diff --git a/extra/pyfeeparser/feedparser_utf8_decoding.patch b/extra/pyfeeparser/feedparser_utf8_decoding.patch deleted file mode 100644 index c1779c7e9..000000000 --- a/extra/pyfeeparser/feedparser_utf8_decoding.patch +++ /dev/null @@ -1,12 +0,0 @@ ---- /var/lib/python-support/python2.5/feedparser.py 2008-01-23 20:10:27.000000000 +0100 -+++ feedparser.py 2008-07-28 11:01:38.000000000 +0200 -@@ -1455,7 +1455,7 @@ - # thanks to Kevin Marks for this breathtaking hack to deal with (valid) high-bit attribute values in UTF-8 feeds - for key, value in attrs: - if type(value) != type(u''): -- value = unicode(value, self.encoding) -+ value = unicode(value, self.encoding, errors='replace') - uattrs.append((unicode(key, self.encoding), value)) - strattrs = u''.join([u' %s="%s"' % (key, value) for key, value in uattrs]).encode(self.encoding) - if tag in self.elements_no_end_tag: - -- cgit v1.2.3-70-g09d2