Drop Python 2.

This commit is contained in:
Gwyn Ciesla 2019-08-13 11:26:10 -05:00
parent 1ba31d4bd0
commit 046a7c2011

View File

@ -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 Grubers 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 <gwync@protonmail.com> - 3.1.1-3
- Drop Python 2.
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild