Accepting request 808794 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/808794 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-HTTPolice?expand=0&rev=5
This commit is contained in:
commit
7f85b3a9a2
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon May 25 10:59:19 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
|
||||
|
||||
- %python3_only -> %python_alternative
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Mar 10 08:56:26 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
|
@ -40,6 +40,8 @@ Requires: python-bitstring >= 3.1.4
|
||||
Requires: python-defusedxml >= 0.5.0
|
||||
Requires: python-dominate >= 2.2.0
|
||||
Requires: python-lxml >= 4.1.0
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
@ -59,16 +61,23 @@ export LANG=en_US.UTF-8
|
||||
%install
|
||||
export LANG=en_US.UTF-8
|
||||
%python_install
|
||||
%python_clone -a %{buildroot}%{_bindir}/httpolice
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
export LANG=en_US.UTF-8
|
||||
%pytest
|
||||
|
||||
%post
|
||||
%python_install_alternative httpolice
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative httpolice
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE.txt
|
||||
%doc CHANGELOG.rst README.rst
|
||||
%python3_only %{_bindir}/httpolice
|
||||
%python_alternative %{_bindir}/httpolice
|
||||
%{python_sitelib}/*
|
||||
|
||||
%changelog
|
||||
|
Loading…
x
Reference in New Issue
Block a user