From b35864171cc5f410e9b7ed59cfcfe5ca725b7df8 Mon Sep 17 00:00:00 2001 From: Benjamin A. Beasley Date: Jul 27 2021 17:26:18 +0000 Subject: Move %generate_buildrequires after %prep to make the spec file easier to follow --- diff --git a/python-fastapi.spec b/python-fastapi.spec index 7c96a2f..181d23d 100644 --- a/python-fastapi.spec +++ b/python-fastapi.spec @@ -241,12 +241,6 @@ FastAPI 是一个用于构建 API 的现代、快速(高性能)的 web 框� %description -l zh %{common_description_zh} -%generate_buildrequires -# Tests under tests/test_tutorial may require dependencies that are only in the -# dev extra. -%pyproject_buildrequires -x all,test,dev%{?with_html_docs:,doc} - - %pyproject_extras_subpkg -n python3-%{srcname} all @@ -375,6 +369,12 @@ find docs -type f -name 'termynal.*' | sed -r -i 's/\bmaterial\b/mkdocs/' docs/*/mkdocs.yml +%generate_buildrequires +# Tests under tests/test_tutorial may require dependencies that are only in the +# dev extra. +%pyproject_buildrequires -x all,test,dev%{?with_html_docs:,doc} + + %build %pyproject_wheel %if %{with html_docs}