From 3f5f8e46c167d0d45991378794d0229de3776e12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hunor=20Csomort=C3=A1ni?= Date: Thu, 13 Jan 2022 14:17:20 +0100 Subject: [PATCH] docs: Don't BuildRequire these macros in Fedora and EPEL 9 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `python3-devel` already requires `pyproject-rpm-macros` in Fedora and EPEL 9. Update the usage docs to reflect this. Related: rhbz#1950291 Signed-off-by: Hunor Csomortáni --- README.md | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index ac8c5cc..f749bf9 100644 --- a/README.md +++ b/README.md @@ -23,15 +23,17 @@ These macros replace `%py3_build` and `%py3_install`, which only work with `setu Usage ----- -To use these macros, first BuildRequire them: +To use these macros, first BuildRequire the devel package for the Python you +are building against. In Fedora, that's `python3-devel`. + BuildRequires: python3-devel + +The macros will be pulled in as a dependency on Fedora and EPEL 9+. +In other distributions you need to BuildRequire the macros as well: + + BuildRequires: python3-devel BuildRequires: pyproject-rpm-macros -Also BuildRequire the devel package for the Python you are building against. -In Fedora, that's `python3-devel`. -(In the future, we plan to make `python3-devel` itself require -`pyproject-rpm-macros`.) - Next, you need to generate more build dependencies (of your projects and the macros themselves) by running `%pyproject_buildrequires` in the `%generate_buildrequires` section: