15
0

Accepting request 808752 from home:pgajdos:python

submit

OBS-URL: https://build.opensuse.org/request/show/808752
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-HTTPolice?expand=0&rev=9
This commit is contained in:
Tomáš Chvátal
2020-05-25 13:34:36 +00:00
committed by Git OBS Bridge
parent 660fb737da
commit 6444fb0d05
2 changed files with 15 additions and 1 deletions

View File

@@ -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>

View File

@@ -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