From d21726c82c02a8a6b0af01adeb6e586d8220293d Mon Sep 17 00:00:00 2001 From: Miro HronĨok Date: Feb 03 2022 17:30:43 +0000 Subject: 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. --- 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