From 2846e60ac2dd4df4992bd0b167fa1c000cd4e04b834b3f195df8b0ec77f45660 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 4 Dec 2018 13:16:55 +0000 Subject: [PATCH 1/3] Remove superfluous devel dependency for noarch package OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bleach?expand=0&rev=20 --- python-bleach.changes | 5 +++++ python-bleach.spec | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/python-bleach.changes b/python-bleach.changes index e9e07b1..9df099b 100644 --- a/python-bleach.changes +++ b/python-bleach.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Dec 4 12:46:11 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + ------------------------------------------------------------------- Tue Mar 20 08:38:36 UTC 2018 - kbabioch@suse.com diff --git a/python-bleach.spec b/python-bleach.spec index ff7ea6a..b53936d 100644 --- a/python-bleach.spec +++ b/python-bleach.spec @@ -13,7 +13,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -26,7 +26,6 @@ License: Apache-2.0 Group: Development/Languages/Python Url: http://github.com/jsocol/bleach Source: https://files.pythonhosted.org/packages/source/b/bleach/bleach-%{version}.tar.gz -BuildRequires: %{python_module devel} BuildRequires: %{python_module html5lib >= 0.99999999} BuildRequires: %{python_module pytest-runner} BuildRequires: %{python_module pytest} From 3c2753cf754423700c23cf78663b10589d8f2d589724dd3c4e198a88d1ccde71 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 4 Dec 2018 17:10:21 +0000 Subject: [PATCH 2/3] Clean up the SPEC file OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bleach?expand=0&rev=21 --- python-bleach.spec | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/python-bleach.spec b/python-bleach.spec index b53936d..8567b4b 100644 --- a/python-bleach.spec +++ b/python-bleach.spec @@ -24,7 +24,7 @@ Release: 0 Summary: An easy whitelist-based HTML-sanitizing tool License: Apache-2.0 Group: Development/Languages/Python -Url: http://github.com/jsocol/bleach +URL: http://github.com/jsocol/bleach Source: https://files.pythonhosted.org/packages/source/b/bleach/bleach-%{version}.tar.gz BuildRequires: %{python_module html5lib >= 0.99999999} BuildRequires: %{python_module pytest-runner} @@ -37,9 +37,7 @@ BuildRequires: python-rpm-macros Requires: python-html5lib >= 0.99999999 Requires: python-six Requires: python-webencodings -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch - %python_subpackages %description @@ -71,16 +69,16 @@ http://bleach.readthedocs.org/ %install %python_install -%python_expand %fdupes %{buildroot}%{$python_sitelib} +%python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib} +%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix} } %files %{python_files} -%defattr(-,root,root,-) -%doc CHANGES LICENSE README.rst +%license LICENSE +%doc CHANGES README.rst %{python_sitelib}/* %changelog From 64204dd675023b17d14c5618dfc782f104ccd1ebdbd1ea258b5ebd912f2e26a3 Mon Sep 17 00:00:00 2001 From: Todd R Date: Wed, 5 Dec 2018 19:22:46 +0000 Subject: [PATCH 3/3] Accepting request 654136 from home:jengelh:branches:devel:languages:python - Trim rhetorics and bias from descriptions. OBS-URL: https://build.opensuse.org/request/show/654136 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bleach?expand=0&rev=22 --- python-bleach.changes | 5 +++++ python-bleach.spec | 16 +++++----------- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/python-bleach.changes b/python-bleach.changes index 9df099b..ac7c7fb 100644 --- a/python-bleach.changes +++ b/python-bleach.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Dec 5 01:56:44 UTC 2018 - Jan Engelhardt + +- Trim rhetorics and bias from descriptions. + ------------------------------------------------------------------- Tue Dec 4 12:46:11 UTC 2018 - Matej Cepl diff --git a/python-bleach.spec b/python-bleach.spec index 8567b4b..6524db0 100644 --- a/python-bleach.spec +++ b/python-bleach.spec @@ -21,7 +21,7 @@ Name: python-bleach Version: 2.1.3 Release: 0 -Summary: An easy whitelist-based HTML-sanitizing tool +Summary: A whitelist-based HTML-sanitizing tool License: Apache-2.0 Group: Development/Languages/Python URL: http://github.com/jsocol/bleach @@ -41,24 +41,18 @@ BuildArch: noarch %python_subpackages %description -Bleach is an HTML sanitizing library that escapes or strips markup and +Bleach is an HTML sanitation 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. +Bleach is intended for sanitizing text from *untrusted* sources. 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 +with weird, quirky HTML fragments. Bleach's methods will fix unbalanced or mis-nested tags. -The version on GitHub_ is the most up-to-date and contains the latest bug -fixes. You can find full documentation on `ReadTheDocs`. - -http://bleach.readthedocs.org/ +Documentation is at http://bleach.readthedocs.org/ . %prep %setup -q -n bleach-%{version}