1
0

Accepting request 806790 from home:pgajdos:python

submit

OBS-URL: https://build.opensuse.org/request/show/806790
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-waitress?expand=0&rev=42
This commit is contained in:
Tomáš Chvátal 2020-05-18 08:11:58 +00:00 committed by Git OBS Bridge
parent 3fd53f8a61
commit 5458ad9d6d
2 changed files with 15 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon May 18 07:25:32 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
- %python3_only -> %python_alternative
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Feb 6 17:29:20 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com> Thu Feb 6 17:29:20 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>

View File

@ -32,6 +32,8 @@ Source2: fetch-intersphinx-inventories.sh
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch BuildArch: noarch
# SECTION documentation requirements # SECTION documentation requirements
BuildRequires: python3-Sphinx BuildRequires: python3-Sphinx
@ -67,6 +69,7 @@ python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo
%install %install
%python_install %python_install
%python_clone -a %{buildroot}%{_bindir}/waitress-serve
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
@ -74,10 +77,16 @@ python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo
rm waitress/tests/test_adjustments.py rm waitress/tests/test_adjustments.py
%python_exec setup.py test %python_exec setup.py test
%post
%python_install_alternative waitress-serve
%postun
%python_uninstall_alternative waitress-serve
%files %{python_files} %files %{python_files}
%license LICENSE.txt %license LICENSE.txt
%doc COPYRIGHT.txt README.rst %doc COPYRIGHT.txt README.rst
%python3_only %{_bindir}/waitress-serve %python_alternative %{_bindir}/waitress-serve
%{python_sitelib}/* %{python_sitelib}/*
%files %{python_files doc} %files %{python_files doc}