forked from pool/python-pyroma
Accepting request 807628 from home:pgajdos:python
submit OBS-URL: https://build.opensuse.org/request/show/807628 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyroma?expand=0&rev=8
This commit is contained in:
committed by
Git OBS Bridge
parent
2658b334cd
commit
5b96da7d0f
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed May 20 07:26:41 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
|
||||||
|
|
||||||
|
- %python3_only -> %python_alternative
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Mar 20 14:10:29 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
|
Fri Mar 20 14:10:29 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
|
||||||
|
|
||||||
|
@@ -33,6 +33,8 @@ BuildRequires: python-rpm-macros
|
|||||||
Requires: python-Pygments
|
Requires: python-Pygments
|
||||||
Requires: python-docutils
|
Requires: python-docutils
|
||||||
Requires: python-setuptools
|
Requires: python-setuptools
|
||||||
|
Requires(post): update-alternatives
|
||||||
|
Requires(postun): update-alternatives
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
@@ -55,16 +57,23 @@ export LANG=en_US.UTF-8
|
|||||||
%install
|
%install
|
||||||
export LANG=en_US.UTF-8
|
export LANG=en_US.UTF-8
|
||||||
%python_install
|
%python_install
|
||||||
|
%python_clone -a %{buildroot}%{_bindir}/pyroma
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
export LANG=en_US.UTF-8
|
export LANG=en_US.UTF-8
|
||||||
%python_exec setup.py test
|
%python_exec setup.py test
|
||||||
|
|
||||||
|
%post
|
||||||
|
%python_install_alternative pyroma
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%python_uninstall_alternative pyroma
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE.txt
|
%license LICENSE.txt
|
||||||
%doc README.rst HISTORY.txt
|
%doc README.rst HISTORY.txt
|
||||||
%python3_only %{_bindir}/pyroma
|
%python_alternative %{_bindir}/pyroma
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user