Drop versioned binaries.

This commit is contained in:
Thomas Moschny 2019-08-13 18:39:07 +02:00
parent 046a7c2011
commit 0a7322d2c0

View File

@ -3,7 +3,7 @@
Name: python-%{pkgname} Name: python-%{pkgname}
Version: 3.1.1 Version: 3.1.1
Release: 3%{?dist} Release: 4%{?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/
@ -40,18 +40,11 @@ there are a few known issues.
%install %install
%py3_install %py3_install
# rename binary
mv %{buildroot}%{_bindir}/markdown_py{,-%{python3_version}}
ln -s markdown_py-%{python3_version} %{buildroot}%{_bindir}/markdown_py-3
# process license file # process license file
PYTHONPATH=%{buildroot}%{python3_sitelib} \ PYTHONPATH=%{buildroot}%{python3_sitelib} \
%{buildroot}%{_bindir}/markdown_py-%{python3_version} \ %{buildroot}%{_bindir}/markdown_py \
LICENSE.md > LICENSE.html LICENSE.md > LICENSE.html
# 3.X binary is called by default
ln -s markdown_py-%{python3_version} %{buildroot}%{_bindir}/markdown_py
%check %check
%{__python3} ./setup.py test %{__python3} ./setup.py test
@ -64,11 +57,12 @@ ln -s markdown_py-%{python3_version} %{buildroot}%{_bindir}/markdown_py
%license LICENSE.* %license LICENSE.*
%{python3_sitelib}/* %{python3_sitelib}/*
%{_bindir}/markdown_py %{_bindir}/markdown_py
%{_bindir}/markdown_py-3
%{_bindir}/markdown_py-%{python3_version}
%changelog %changelog
* Tue Aug 13 2019 Thomas Moschny <thomas.moschny@gmx.de> - 3.1.1-4
- Drop versioned binaries.
* Tue Aug 13 2019 Gwyn Ciesla <gwync@protonmail.com> - 3.1.1-3 * Tue Aug 13 2019 Gwyn Ciesla <gwync@protonmail.com> - 3.1.1-3
- Drop Python 2. - Drop Python 2.