Accepting request 655395 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/655395 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bleach?expand=0&rev=5
This commit is contained in:
@@ -1,3 +1,13 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Dec 5 01:56:44 UTC 2018 - Jan Engelhardt <jengelh@inai.de>
|
||||
|
||||
- Trim rhetorics and bias from descriptions.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Dec 4 12:46:11 UTC 2018 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- Remove superfluous devel dependency for noarch package
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Mar 20 08:38:36 UTC 2018 - kbabioch@suse.com
|
||||
|
||||
|
@@ -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/
|
||||
#
|
||||
|
||||
|
||||
@@ -21,12 +21,11 @@
|
||||
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
|
||||
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}
|
||||
@@ -38,30 +37,22 @@ 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
|
||||
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}
|
||||
@@ -72,16 +63,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
|
||||
|
Reference in New Issue
Block a user