forked from pool/python-falcon
Compare commits
8 Commits
Author | SHA256 | Date | |
---|---|---|---|
828e29922b | |||
322d819fee | |||
03cdd46458 | |||
823c2f6e8e | |||
ec693d0a80 | |||
47f9b5d457 | |||
5edd96e9d9 | |||
c74f12e20f |
@@ -1,13 +1,3 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Aug 19 12:18:37 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
- Convert to libalternatives on SLE-16-based and newer systems
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jul 8 13:19:46 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
- Convert to libalternatives
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Mar 25 15:51:05 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
|
@@ -21,21 +21,17 @@
|
||||
%else
|
||||
%bcond_with doc
|
||||
%endif
|
||||
%if 0%{?suse_version} > 1500
|
||||
%bcond_without libalternatives
|
||||
%else
|
||||
%bcond_with libalternatives
|
||||
%endif
|
||||
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-falcon
|
||||
Version: 4.0.2
|
||||
Release: 0
|
||||
Summary: A web framework for building APIs and app backends
|
||||
License: Apache-2.0
|
||||
URL: https://falconframework.org
|
||||
URL: http://falconframework.org
|
||||
Source: https://files.pythonhosted.org/packages/source/f/falcon/falcon-%{version}.tar.gz
|
||||
# PATCH-FIX-UPSTREAM https://github.com/falconry/falcon/pull/2406 chore(tests/asgi): migrate to the new websockets async client
|
||||
Patch0: websockets.patch
|
||||
Patch: websockets.patch
|
||||
BuildRequires: %{python_module PyYAML}
|
||||
BuildRequires: %{python_module Sphinx}
|
||||
BuildRequires: %{python_module base >= 3.8}
|
||||
@@ -49,20 +45,8 @@ BuildRequires: %{python_module sphinx-tabs}
|
||||
BuildRequires: %{python_module sphinxcontrib-copybutton}
|
||||
BuildRequires: %{python_module websockets}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
%if %{with libalternatives}
|
||||
BuildRequires: alts
|
||||
Requires: alts
|
||||
%else
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
%endif
|
||||
Suggests: %{name}-doc
|
||||
BuildArch: noarch
|
||||
# TODO: Cython support
|
||||
#BuildRequires: %%{python_module Cython}
|
||||
#Requires: python-Cython
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module aiofiles}
|
||||
BuildRequires: %{python_module cbor2}
|
||||
@@ -80,6 +64,13 @@ BuildRequires: %{python_module websockets >= 13.1 if (%python-base without pyth
|
||||
BuildRequires: %{python_module pydata-sphinx-theme}
|
||||
%endif
|
||||
# /SECTION
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
#Requires: python-Cython
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
Suggests: %{name}-doc
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
%package -n %{name}-doc
|
||||
@@ -119,7 +110,6 @@ popd
|
||||
%python_clone -a %{buildroot}%{_bindir}/falcon-bench
|
||||
%python_clone -a %{buildroot}%{_bindir}/falcon-inspect-app
|
||||
%python_clone -a %{buildroot}%{_bindir}/falcon-print-routes
|
||||
%python_group_libalternatives falcon-bench falcon-inspect-app falcon-print-routes
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%if %{with doc}
|
||||
@@ -132,11 +122,8 @@ cp -ar docs/_build/html examples %{buildroot}%{_defaultdocdir}/%{name}-doc/
|
||||
export LANG=en_US.UTF8
|
||||
%pytest
|
||||
|
||||
%pre
|
||||
%python_libalternatives_reset_alternative falcon-bench
|
||||
|
||||
%post
|
||||
%python_install_alternative falcon-bench falcon-inspect-app falcon-print-routes
|
||||
%{python_install_alternative falcon-bench falcon-inspect-app falcon-print-routes}
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative falcon-bench
|
||||
|
Reference in New Issue
Block a user