15
0

Accepting request 809565 from home:pgajdos:python

submit

OBS-URL: https://build.opensuse.org/request/show/809565
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bashate?expand=0&rev=9
This commit is contained in:
Tomáš Chvátal
2020-05-28 07:32:14 +00:00
committed by Git OBS Bridge
parent 74f5884c66
commit 6c7bf4eb79
2 changed files with 15 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed May 27 09:36:25 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
- %python3_only -> %python_alternative
-------------------------------------------------------------------
Fri Feb 28 22:50:39 UTC 2020 - Dirk Mueller <dmueller@suse.com>

View File

@@ -36,6 +36,8 @@ BuildRequires: fdupes
BuildRequires: python-argparse
Requires: python-Babel >= 0.9.6
Requires: python-pbr
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
%ifpython2
Requires: python-argparse
@@ -62,6 +64,7 @@ and will continue to evolve over time.
%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/bashate
%{python_expand #
rm -rf %{buildroot}%{$python_sitelib}/bashate/tests
sed -i -e '/^#!\//, 1d' %{buildroot}%{$python_sitelib}/bashate/bashate.py
@@ -71,10 +74,16 @@ sed -i -e '/^#!\//, 1d' %{buildroot}%{$python_sitelib}/bashate/bashate.py
%check
%python_exec -m stestr.cli run
%post
%python_install_alternative bashate
%postun
%python_uninstall_alternative bashate
%files %{python_files}
%license LICENSE
%doc AUTHORS README.rst ChangeLog
%python3_only %{_bindir}/bashate
%python_alternative %{_bindir}/bashate
%{python_sitelib}/*
%changelog