forked from pool/python-PTable
Accepting request 865006 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/865006 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-PTable?expand=0&rev=2
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user