Move %generate_buildrequires under %prep

Just a personal preference when it comes to spec readability.
This commit is contained in:
Karolina Surma 2023-08-28 11:49:46 +02:00
parent 5b5766d251
commit d5d09cd6e1

View File

@ -21,9 +21,6 @@ BuildRequires: gettext
BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-devel
%generate_buildrequires
%pyproject_buildrequires %{?with_check: -x test}
%description %description
sphinxcontrib-applehelp is a sphinx extension which outputs Apple help books. sphinxcontrib-applehelp is a sphinx extension which outputs Apple help books.
@ -40,6 +37,10 @@ sphinxcontrib-applehelp is a sphinx extension which outputs Apple help books.
find -name '*.mo' -delete find -name '*.mo' -delete
%generate_buildrequires
%pyproject_buildrequires %{?with_check: -x test}
%build %build
for po in $(find -name '*.po'); do for po in $(find -name '*.po'); do
msgfmt --output-file=${po%.po}.mo ${po} msgfmt --output-file=${po%.po}.mo ${po}