Adapt to pyproject-rpm-macros 0-40+

epel9
Miro Hrončok 4 years ago
parent 335ff21dac
commit f13ff81fb3

@ -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 <mhroncok@redhat.com> - 3.2.0-2
- Adapt to pyproject-rpm-macros 0-40+
* Tue Mar 30 2021 Karolina Surma <ksurma@redhat.com> - 3.2.0-1
- Update to 3.2.0
Resolves: rhbz#1940399

Loading…
Cancel
Save