Drop versioned binaries.
This commit is contained in:
parent
046a7c2011
commit
0a7322d2c0
@ -3,7 +3,7 @@
|
||||
|
||||
Name: python-%{pkgname}
|
||||
Version: 3.1.1
|
||||
Release: 3%{?dist}
|
||||
Release: 4%{?dist}
|
||||
Summary: Markdown implementation in Python
|
||||
License: BSD
|
||||
URL: https://python-markdown.github.io/
|
||||
@ -40,18 +40,11 @@ there are a few known issues.
|
||||
%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
|
||||
PYTHONPATH=%{buildroot}%{python3_sitelib} \
|
||||
%{buildroot}%{_bindir}/markdown_py-%{python3_version} \
|
||||
%{buildroot}%{_bindir}/markdown_py \
|
||||
LICENSE.md > LICENSE.html
|
||||
|
||||
# 3.X binary is called by default
|
||||
ln -s markdown_py-%{python3_version} %{buildroot}%{_bindir}/markdown_py
|
||||
|
||||
|
||||
%check
|
||||
%{__python3} ./setup.py test
|
||||
@ -64,11 +57,12 @@ ln -s markdown_py-%{python3_version} %{buildroot}%{_bindir}/markdown_py
|
||||
%license LICENSE.*
|
||||
%{python3_sitelib}/*
|
||||
%{_bindir}/markdown_py
|
||||
%{_bindir}/markdown_py-3
|
||||
%{_bindir}/markdown_py-%{python3_version}
|
||||
|
||||
|
||||
%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
|
||||
- Drop Python 2.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user