From be6bfe6f901c389fdd467ec297cb728d28f6c13f Mon Sep 17 00:00:00 2001 From: Randy Barlow Date: Sep 03 2019 16:27:20 +0000 Subject: Drop python2-bleach (#1746757) Signed-off-by: Randy Barlow --- diff --git a/python-bleach.spec b/python-bleach.spec index a83d259..e4f0a31 100644 --- a/python-bleach.spec +++ b/python-bleach.spec @@ -2,7 +2,7 @@ Name: python-%{modname} Version: 3.1.0 -Release: 3%{?dist} +Release: 4%{?dist} Summary: An easy whitelist-based HTML-sanitizing tool License: ASL 2.0 @@ -17,22 +17,6 @@ attributes based on a white list. %description %{_description} -%package -n python2-%{modname} -Summary: %{summary} -%{?python_provide:%python_provide python2-%{modname}} -BuildRequires: python2-devel -BuildRequires: python2-setuptools -BuildRequires: python2-pytest -BuildRequires: python2-pytest-runner -BuildRequires: python2-six -BuildRequires: python2-html5lib -Requires: python2-six -Requires: python2-html5lib - -%description -n python2-%{modname} %{_description} - -Python 2 version. - %package -n python3-%{modname} Summary: An easy whitelist-based HTML-sanitizing tool %{?python_provide:%python_provide python3-%{modname}} @@ -62,21 +46,12 @@ sed -i "s/bleach._vendor.html5lib/html5lib/g" bleach/html5lib_shim.py %build -%py2_build %py3_build %install -%py2_install %py3_install %check -! find %{buildroot}%{python2_sitelib}/bleach/ -type d | grep vendor - -if [ $? -ne 0 ]; then - echo "Detected vendored libraries; please remove them." - /usr/bin/false -fi; - ! find %{buildroot}%{python3_sitelib}/bleach/ -type d | grep vendor if [ $? -ne 0 ]; then @@ -84,15 +59,8 @@ if [ $? -ne 0 ]; then /usr/bin/false fi; -%{__python2} setup.py test %{__python3} setup.py test -%files -n python2-%{modname} -%license LICENSE -%doc README.rst -%{python2_sitelib}/%{modname}-*.egg-info/ -%{python2_sitelib}/%{modname}/ - %files -n python3-%{modname} %license LICENSE %doc README.rst @@ -100,6 +68,9 @@ fi; %{python3_sitelib}/%{modname}/ %changelog +* Tue Sep 03 2019 Randy Barlow - 3.1.0-4 +- Drop python2-bleach (#1746757). + * Fri Aug 16 2019 Miro HronĨok - 3.1.0-3 - Rebuilt for Python 3.8