From 6444fb0d05f71c11aa7393d4e4a6b41b635bdceac24b047661d39dd24e31e75c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 25 May 2020 13:34:36 +0000 Subject: [PATCH] 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 --- python-HTTPolice.changes | 5 +++++ python-HTTPolice.spec | 11 ++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/python-HTTPolice.changes b/python-HTTPolice.changes index 8844bcd..5be5b2f 100644 --- a/python-HTTPolice.changes +++ b/python-HTTPolice.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon May 25 10:59:19 UTC 2020 - Petr Gajdos + +- %python3_only -> %python_alternative + ------------------------------------------------------------------- Tue Mar 10 08:56:26 UTC 2020 - Tomáš Chvátal diff --git a/python-HTTPolice.spec b/python-HTTPolice.spec index df30389..646ad92 100644 --- a/python-HTTPolice.spec +++ b/python-HTTPolice.spec @@ -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