From e2bdb39e4a07d0049da7d633dc44b62c46b62c49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Wed, 21 Jul 2021 12:35:12 +0200 Subject: [PATCH] Prepare for future backwards incompatibility of %pyproject_buildrequires Currently, we see: WARNING: Skipping invalid requirement: https://github.com/ActiveState/appdirs/archive/8eacfa312d77aba28d483fbfb6f6fc54099622be.zip Parse error at "'://githu'": Expected stringEnd It will become an error after https://src.fedoraproject.org/rpms/pyproject-rpm-macros/pull-request/189 With this change, it becomes: WARNING: Simplifying 'appdirs@https://github.com/ActiveState/appdirs/archive/8eacfa312d77aba28d483fbfb6f6fc54099622be.zip' to 'appdirs'. --- python-platformdirs.spec | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/python-platformdirs.spec b/python-platformdirs.spec index 5602fee..00e59e7 100644 --- a/python-platformdirs.spec +++ b/python-platformdirs.spec @@ -5,7 +5,7 @@ a "user data dir".} Name: python-%{srcname} Version: 2.0.0 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Python module for determining appropriate platform-specific dirs License: MIT URL: https://github.com/platformdirs/platformdirs @@ -28,6 +28,11 @@ BuildRequires: python3-devel %prep %autosetup -n %{srcname}-%{version} +# from https://github.com/platformdirs/platformdirs/pull/16 +# can be removed with 2.0.3+ +# let the buildrequires generator know what package is this: +sed -Ei 's|\b(https://github\.com/ActiveState/appdirs/archive)|appdirs@\1|' tox.ini + %generate_buildrequires %pyproject_buildrequires -t @@ -52,6 +57,9 @@ BuildRequires: python3-devel %changelog +* Fri Jul 23 2021 Miro HronĨok - 2.0.0-3 +- Let %%pyproject_buildrequires know we need appdirs + * Fri Jul 23 2021 Fedora Release Engineering - 2.0.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild