From 046a7c2011537b4c0e30f045d6320e8856423b7e Mon Sep 17 00:00:00 2001 From: Gwyn Ciesla Date: Tue, 13 Aug 2019 11:26:10 -0500 Subject: [PATCH] Drop Python 2. --- python-markdown.spec | 36 ++++-------------------------------- 1 file changed, 4 insertions(+), 32 deletions(-) diff --git a/python-markdown.spec b/python-markdown.spec index 412c173..027d629 100644 --- a/python-markdown.spec +++ b/python-markdown.spec @@ -3,7 +3,7 @@ Name: python-%{pkgname} Version: 3.1.1 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Markdown implementation in Python License: BSD URL: https://python-markdown.github.io/ @@ -16,19 +16,6 @@ almost completely compliant with the reference implementation, though there are a few very minor differences. -%package -n python2-%{pkgname} -Summary: Markdown implementation in Python -BuildRequires: python2-devel -BuildRequires: python2-yaml -BuildRequires: python2-tidy -%{?python_provide:%python_provide python2-%{pkgname}} - -%description -n python2-%{pkgname} -This is a Python implementation of John Gruber’s Markdown. It is -almost completely compliant with the reference implementation, though -there are a few very minor differences. - - %package -n python%{python3_pkgversion}-%{pkgname} Summary: Markdown implementation in Python BuildRequires: python%{python3_pkgversion}-devel @@ -47,17 +34,10 @@ there are a few known issues. %autosetup -p1 -n %{srcname}-%{version} %build -%py2_build %py3_build %install -%py2_install - -# rename binary -mv %{buildroot}%{_bindir}/markdown_py{,-%{python2_version}} -ln -s markdown_py-%{python2_version} %{buildroot}%{_bindir}/markdown_py-2 - %py3_install # rename binary @@ -74,20 +54,9 @@ ln -s markdown_py-%{python3_version} %{buildroot}%{_bindir}/markdown_py %check -%{__python2} ./setup.py test %{__python3} ./setup.py test -%files -n python2-%{pkgname} -# temporarily skip packaging docs - see also -# https://github.com/Python-Markdown/markdown/issues/621 -#doc python2/build/docs/* -%license LICENSE.* -%{python2_sitelib}/* -%{_bindir}/markdown_py-2 -%{_bindir}/markdown_py-%{python2_version} - - %files -n python%{python3_pkgversion}-%{pkgname} # temporarily skip packaging docs - see also # https://github.com/Python-Markdown/markdown/issues/621 @@ -100,6 +69,9 @@ ln -s markdown_py-%{python3_version} %{buildroot}%{_bindir}/markdown_py %changelog +* Tue Aug 13 2019 Gwyn Ciesla - 3.1.1-3 +- Drop Python 2. + * Fri Jul 26 2019 Fedora Release Engineering - 3.1.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild