Accepting request 809234 from home:pgajdos:python
submit OBS-URL: https://build.opensuse.org/request/show/809234 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-distro?expand=0&rev=21
This commit is contained in:
parent
4d1aada789
commit
1c4c90584e
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue May 26 07:22:40 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
|
||||||
|
|
||||||
|
- %python3_only -> %python_alternative
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Apr 2 04:18:04 UTC 2020 - Steve Kowalik <steven.kowalik@suse.com>
|
Thu Apr 2 04:18:04 UTC 2020 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
@ -30,6 +30,8 @@ Source: https://files.pythonhosted.org/packages/source/d/distro/distro-%
|
|||||||
Patch0: assert_locale.patch
|
Patch0: assert_locale.patch
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
|
Requires(post): update-alternatives
|
||||||
|
Requires(postun): update-alternatives
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
# SECTION test
|
# SECTION test
|
||||||
%if %{with test}
|
%if %{with test}
|
||||||
@ -53,6 +55,7 @@ It is a renewed alternative implementation for Python's original platform.linux_
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%python_install
|
||||||
|
%python_clone -a %{buildroot}%{_bindir}/distro
|
||||||
|
|
||||||
%if %{with test}
|
%if %{with test}
|
||||||
%check
|
%check
|
||||||
@ -60,9 +63,15 @@ It is a renewed alternative implementation for Python's original platform.linux_
|
|||||||
LANG=en_US.utf8 %python_exec setup.py pytest
|
LANG=en_US.utf8 %python_exec setup.py pytest
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%post
|
||||||
|
%python_install_alternative distro
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%python_uninstall_alternative distro
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc CHANGELOG.md README.md
|
%doc CHANGELOG.md README.md
|
||||||
%python3_only %{_bindir}/distro
|
%python_alternative %{_bindir}/distro
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
%%license LICENSE
|
%%license LICENSE
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user