From f13ff81fb34715fd800c0177c2d2a5374aa75130 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Sat, 29 May 2021 22:05:25 +0200 Subject: [PATCH] Adapt to pyproject-rpm-macros 0-40+ --- python-flit.spec | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/python-flit.spec b/python-flit.spec index 703ebc7..35cdc39 100644 --- a/python-flit.spec +++ b/python-flit.spec @@ -5,7 +5,7 @@ Name: python-%{srcname} Version: 3.2.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Simplified packaging of Python modules # ./flit/log.py under ASL 2.0 license @@ -20,7 +20,7 @@ Source1: https://pypi.org/pypi?%3Aaction=list_classifiers#/classifiers.lst BuildArch: noarch BuildRequires: python3-devel -BuildRequires: pyproject-rpm-macros +BuildRequires: pyproject-rpm-macros >= 0-40 BuildRequires: python3-pip # Runtime deps needed to build self @@ -93,12 +93,11 @@ export FLIT_NO_NETWORK=1 # first, build flit_core with self cd flit_core %pyproject_wheel -# Move %%{_pyproject_wheeldir}/flit_core wheel to the main dir -mv %{_pyproject_wheeldir} .. cd - # build of the main flit (needs flit_core) -PYTHONPATH=$PWD:$PWD/flit_core %pyproject_wheel +export PYTHONPATH=$PWD:$PWD/flit_core +%pyproject_wheel %install %pyproject_install @@ -136,6 +135,9 @@ export XDG_CACHE_HOME=$PWD/fake_cache %changelog +* Sat May 29 2021 Miro HronĨok - 3.2.0-2 +- Adapt to pyproject-rpm-macros 0-40+ + * Tue Mar 30 2021 Karolina Surma - 3.2.0-1 - Update to 3.2.0 Resolves: rhbz#1940399