%define pypi_name mistune Name: python-%{pypi_name} Version: 0.7.2 %define subrel 1 Release: %mkrel 1 Group: Development/Python Summary: Markdown parser License: BSD URL: https://github.com/lepture/mistune Source0: https://pypi.python.org/packages/2.7/m/%{pypi_name}/%{pypi_name}-%{version}.tar.gz # MGA#22276 - these patches were modified. # python-mistune new security issues CVE-2017-15612 and CVE-2017-16876 Patch1: https://patch-diff.githubusercontent.com/raw/lepture/mistune/pull/140.patch Patch2: https://github.com/lepture/mistune/commit/5f06d724bc05580e7f203db2d4a4905fc1127f98.patch BuildArch: noarch BuildRequires: pythonegg(2)(setuptools) BuildRequires: pythonegg(3)(setuptools) %description The fastest markdown parser in pure Python. %package -n python3-%{pypi_name} Summary: Markdown parser %description -n python3-%{pypi_name} The fastest markdown parser in pure Python. %prep %setup -q -n %{pypi_name}-%{version} %patch1 -p1 %patch2 -p1 -b .O %build %py2_build %py3_build %install %py2_install %py3_install %files %doc README.rst CHANGES.rst %license LICENSE %{python2_sitelib}/ %files -n python3-%{pypi_name} %doc README.rst CHANGES.rst %license LICENSE %{python3_sitelib}/ %changelog * Thu Dec 28 2017 shlomif <shlomif> 0.7.2-1.1.mga6 + Revision: 1186274 - fix mga#22276 * Sat Apr 16 2016 philippem <philippem> 0.7.2-1.mga6 + Revision: 1003087 - imported package python-mistune