From d21726c82c02a8a6b0af01adeb6e586d8220293d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Thu, 3 Feb 2022 18:29:07 +0100 Subject: [PATCH] Generate build-time deps dynamically %pyproject_* macros might get different deps in the future, specifying the deps manually is not future-proof. This will also get us runtime deps, so we can run import checks or tests (in the future). We still list Cython, as upstream does not advertise the need for it anywhere. --- python-gssapi.spec | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python-gssapi.spec b/python-gssapi.spec index 156cc3f..c0da6df 100644 --- a/python-gssapi.spec +++ b/python-gssapi.spec @@ -12,10 +12,7 @@ Source0: https://github.com/pythongssapi/%{name}/releases/download/v%{ver BuildRequires: krb5-devel >= 1.19 BuildRequires: gcc BuildRequires: python3-devel -BuildRequires: python3-setuptools BuildRequires: python3-Cython -BuildRequires: python3-pip -BuildRequires: python3-wheel # For autosetup BuildRequires: git-core @@ -37,6 +34,9 @@ Requires: krb5-libs >= 1.19 %prep %autosetup -S git -n %{name}-%{version} +%generate_buildrequires +%pyproject_buildrequires + %build %pyproject_wheel