15
0
forked from pool/python-PTable

Accepting request 864700 from home:jayvdb:branches:devel:languages:python

- Use python_alternative, fixing multi Python 3 builds

OBS-URL: https://build.opensuse.org/request/show/864700
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PTable?expand=0&rev=4
This commit is contained in:
2021-01-20 14:10:39 +00:00
committed by Git OBS Bridge
parent bf5b511a45
commit ca855d0dc1
2 changed files with 13 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jan 20 12:09:31 UTC 2021 - John Vandenberg <jayvdb@gmail.com>
- Use python_alternative, fixing multi Python 3 builds
-------------------------------------------------------------------
Sat May 9 12:50:20 UTC 2020 - andy great <andythe_great@pm.me>

View File

@@ -43,17 +43,24 @@ sed -i '1{/^#!/d}' prettytable/prettytable.py
%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/ptable
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# No tests available in package, github has no tags
%post
%python_install_alternative ptable
%postun
%python_uninstall_alternative ptable
%files %{python_files}
%doc CHANGELOG README.rst
%license COPYING
%dir %{python_sitelib}/prettytable/
%dir %{python_sitelib}/prettytable/__pycache__/
%python3_only %{_bindir}/ptable
%python_alternative %{_bindir}/ptable
%{python_sitelib}/PTable-%{version}-py%{python_version}.egg-info/
%{python_sitelib}/prettytable/*.py
%pycache_only %{python_sitelib}/prettytable/__pycache__/*.pyc