15
0
forked from pool/python-pecan

Accepting request 923428 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/923428
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pecan?expand=0&rev=28
This commit is contained in:
2021-10-25 13:16:51 +00:00
committed by Git OBS Bridge
2 changed files with 27 additions and 1 deletions
+10
View File
@@ -1,3 +1,13 @@
-------------------------------------------------------------------
Tue Oct 5 14:24:02 UTC 2021 - Stefan Schubert <schubi@suse.de>
- Added BuildRequires: alts
-------------------------------------------------------------------
Fri Oct 1 09:26:15 UTC 2021 - Stefan Schubert <schubi@suse.de>
- Use libalternatives instead of update-alternatives.
-------------------------------------------------------------------
Thu May 27 06:49:51 UTC 2021 - pgajdos@suse.com
+17 -1
View File
@@ -16,6 +16,12 @@
#
%if 0%{?suse_version} > 1500
%bcond_without libalternatives
%else
%bcond_with libalternatives
%endif
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-pecan
@@ -44,15 +50,20 @@ BuildRequires: uwsgi
# we need sqlite module
BuildRequires: %{pythons}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: python-rpm-macros >= 20210929
Requires: python-Mako >= 0.4.0
Requires: python-WebOb >= 1.8
Requires: python-WebTest >= 1.3.1
Requires: python-logutils >= 0.3
Requires: python-setuptools
Requires: python-six
%if %{with libalternatives}
Requires: alts
BuildRequires: alts
%else
Requires(post): update-alternatives
Requires(postun):update-alternatives
%endif
BuildArch: noarch
%if 0%{?suse_version}
Suggests: python-Genshi
@@ -84,6 +95,11 @@ sed -ie "/^pep8$/d" test-requirements.txt
%check
%pyunittest discover -v
%pre
# If libalternatives is used: Removing old update-alternatives entries.
%python_libalternatives_reset_alternative pecan
%python_libalternatives_reset_alternative gunicorn_pecan
%post
%python_install_alternative pecan
%python_install_alternative gunicorn_pecan