From dc6efa9735467e5c29b507891ab313ba73f5650bdf9da47796597bc321a3484c Mon Sep 17 00:00:00 2001 From: Pascal Bleser Date: Mon, 12 Dec 2011 09:01:44 +0000 Subject: [PATCH 1/2] remove %debug_package OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Genshi?expand=0&rev=3 From f632b1073df0d04b96eeed664498cee7d2854baaa4b5974a10daae1e0e612d9c Mon Sep 17 00:00:00 2001 From: Todd R Date: Tue, 22 Oct 2013 14:57:03 +0000 Subject: [PATCH 2/2] Accepting request 204327 from home:TheBlackCat:branches:devel:languages:python Update to 0.7 OBS-URL: https://build.opensuse.org/request/show/204327 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Genshi?expand=0&rev=4 --- Genshi-0.6.tar.bz2 | 3 --- Genshi-0.7.tar.gz | 3 +++ python-Genshi.changes | 40 ++++++++++++++++++++++++++++++++++++++++ python-Genshi.spec | 36 +++++++++++++++++------------------- 4 files changed, 60 insertions(+), 22 deletions(-) delete mode 100644 Genshi-0.6.tar.bz2 create mode 100644 Genshi-0.7.tar.gz diff --git a/Genshi-0.6.tar.bz2 b/Genshi-0.6.tar.bz2 deleted file mode 100644 index 5a99a8e..0000000 --- a/Genshi-0.6.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:61a430cd52069ce77d28f4b4c845041e68fee757fb80b82637de9e6b579d08b2 -size 344043 diff --git a/Genshi-0.7.tar.gz b/Genshi-0.7.tar.gz new file mode 100644 index 0000000..a1ede07 --- /dev/null +++ b/Genshi-0.7.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1d154402e68bc444a55bcac101f96cb4e59373100cc7a2da07fbf3e5cc5d7352 +size 491579 diff --git a/python-Genshi.changes b/python-Genshi.changes index 2b523cb..3c011a4 100644 --- a/python-Genshi.changes +++ b/python-Genshi.changes @@ -1,3 +1,43 @@ +------------------------------------------------------------------- +Tue Oct 22 14:31:18 UTC 2013 - toddrme2178@gmail.com + +- Update to 0.7 + * Add support for Python 3.1, 3.2 and 3.3 (via 2to3) and for PyPy. The + majority of the coding was done in a sprint run by the Cape Town Python + Users Group with financial assistance from the Python Software Foundation. + * Default input and output encodings changed from UTF-8 to None (i.e. unicode + strings). + * Skip Mako benchmarks if Mako isn't installed (rather than failing + completely). +- Update to 0.6.1 + * Security fix to enhance sanitizing of CSS in style attributes. Genshi's + `HTMLSanitizer` disallows style attributes by default (this remains + unchanged) and warns against such attacks in its documentation, but + the provided CSS santizing is now less lacking (see #455). + * Fix for error in how `HTMLFormFiller` would handle `textarea` elements if + no value was not supplied form them. + * The `HTMLFormFiller` now correctly handles check boxes and radio buttons + with an empty `value` attribute. + * Template `Context` objects now have a `.copy` method. + * Added a simple `tox.ini` file for using tox to test against multiple + verions of Python. + * Fix for bug in `QName` comparison (see #413). + * Fix for bug in handling of trailing events in match template matches + (see #399). + * Fix i18n namespace declaration in documentation (see #400). + * Fix for bug in caching of events in serializers by no longer caching + `(TEXT, Markup)` events (see #429). + * Fix handling of `None` by `Markup.escape` in `_speedups.c` (see #439). + * Fix handling of internal state by match templates (relevant when multiple + templates match the same part of the stream, see #370). + * Fix handling of multiple events between or on either side of start and end + tags in translated messages (see #404). + * Fix test failures caused by changes in HTMLParser in Python 2.7 (see #501). + * Fix infinite loop in interplotation lexing that was introduced by a change + in Python 2.7's tokenizer (see #540). + * Fix handling of processing instructions without data (see #368). + * Updated MANIFEST.in so as not to rely on build from Subersion 1.6. + ------------------------------------------------------------------- Thu Sep 1 14:29:31 UTC 2011 - saschpe@suse.de diff --git a/python-Genshi.spec b/python-Genshi.spec index e81faec..b1ee9fc 100644 --- a/python-Genshi.spec +++ b/python-Genshi.spec @@ -1,7 +1,7 @@ # # spec file for package python-Genshi # -# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,30 +16,27 @@ # - Name: python-Genshi -Version: 0.6 +Version: 0.7 Release: 1 Url: http://genshi.edgewall.org/ Summary: A toolkit for generation of output for the web License: BSD-3-Clause Group: Development/Languages/Python -Source: Genshi-%{version}.tar.bz2 +Source: http://ftp.edgewall.com/pub/genshi/Genshi-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: python-devel -BuildRequires: python-distribute +BuildRequires: python-Babel +BuildRequires: python-setuptools +BuildRequires: python-xml Requires: python-xml Requires: python-Babel -%if 0%{?suse_version} -%py_requires -%if 0%{?suse_version} > 1110 -BuildArch: noarch -%endif -%endif Provides: python-genshi = %{version} -#TODO: Change back to '<' after next version update: -Obsoletes: python-genshi <= %{version} -%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} +Obsoletes: python-genshi < %{version} +%if 0%{?suse_version} <= 1110 +%{!?python_sitearch: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(True)")} +%{py_requires} +%endif %description Genshi is a Python library that provides an integrated set of @@ -71,13 +68,14 @@ python setup.py build %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%files +%defattr(-,root,root,-) +%doc COPYING ChangeLog README.txt +%{python_sitearch}/genshi/ +%{python_sitearch}/Genshi-%{version}-py*.egg-info + %files doc %defattr(-,root,root,-) %doc doc examples -%files -%defattr(-,root,root,-) -%doc COPYING ChangeLog README.txt -%{python_sitelib}/* - %changelog