Drop Python 2.
This commit is contained in:
parent
1ba31d4bd0
commit
046a7c2011
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
Name: python-%{pkgname}
|
Name: python-%{pkgname}
|
||||||
Version: 3.1.1
|
Version: 3.1.1
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
Summary: Markdown implementation in Python
|
Summary: Markdown implementation in Python
|
||||||
License: BSD
|
License: BSD
|
||||||
URL: https://python-markdown.github.io/
|
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.
|
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}
|
%package -n python%{python3_pkgversion}-%{pkgname}
|
||||||
Summary: Markdown implementation in Python
|
Summary: Markdown implementation in Python
|
||||||
BuildRequires: python%{python3_pkgversion}-devel
|
BuildRequires: python%{python3_pkgversion}-devel
|
||||||
@ -47,17 +34,10 @@ there are a few known issues.
|
|||||||
%autosetup -p1 -n %{srcname}-%{version}
|
%autosetup -p1 -n %{srcname}-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py2_build
|
|
||||||
%py3_build
|
%py3_build
|
||||||
|
|
||||||
|
|
||||||
%install
|
%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
|
%py3_install
|
||||||
|
|
||||||
# rename binary
|
# rename binary
|
||||||
@ -74,20 +54,9 @@ ln -s markdown_py-%{python3_version} %{buildroot}%{_bindir}/markdown_py
|
|||||||
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%{__python2} ./setup.py test
|
|
||||||
%{__python3} ./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}
|
%files -n python%{python3_pkgversion}-%{pkgname}
|
||||||
# temporarily skip packaging docs - see also
|
# temporarily skip packaging docs - see also
|
||||||
# https://github.com/Python-Markdown/markdown/issues/621
|
# https://github.com/Python-Markdown/markdown/issues/621
|
||||||
@ -100,6 +69,9 @@ ln -s markdown_py-%{python3_version} %{buildroot}%{_bindir}/markdown_py
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%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
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.1-2
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user