forked from pool/python-waitress
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:
parent
3fd53f8a61
commit
5458ad9d6d
@ -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>
|
||||
|
||||
|
@ -32,6 +32,8 @@ Source2: fetch-intersphinx-inventories.sh
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
BuildArch: noarch
|
||||
# SECTION documentation requirements
|
||||
BuildRequires: python3-Sphinx
|
||||
@ -67,6 +69,7 @@ python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%python_clone -a %{buildroot}%{_bindir}/waitress-serve
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
@ -74,10 +77,16 @@ python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo
|
||||
rm waitress/tests/test_adjustments.py
|
||||
%python_exec setup.py test
|
||||
|
||||
%post
|
||||
%python_install_alternative waitress-serve
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative waitress-serve
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE.txt
|
||||
%doc COPYRIGHT.txt README.rst
|
||||
%python3_only %{_bindir}/waitress-serve
|
||||
%python_alternative %{_bindir}/waitress-serve
|
||||
%{python_sitelib}/*
|
||||
|
||||
%files %{python_files doc}
|
||||
|
Loading…
Reference in New Issue
Block a user