Adapt to pyproject-rpm-macros 0-40+
This commit is contained in:
parent
335ff21dac
commit
f13ff81fb3
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
Name: python-%{srcname}
|
Name: python-%{srcname}
|
||||||
Version: 3.2.0
|
Version: 3.2.0
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: Simplified packaging of Python modules
|
Summary: Simplified packaging of Python modules
|
||||||
|
|
||||||
# ./flit/log.py under ASL 2.0 license
|
# ./flit/log.py under ASL 2.0 license
|
||||||
@ -20,7 +20,7 @@ Source1: https://pypi.org/pypi?%3Aaction=list_classifiers#/classifiers.lst
|
|||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: pyproject-rpm-macros
|
BuildRequires: pyproject-rpm-macros >= 0-40
|
||||||
BuildRequires: python3-pip
|
BuildRequires: python3-pip
|
||||||
|
|
||||||
# Runtime deps needed to build self
|
# Runtime deps needed to build self
|
||||||
@ -93,12 +93,11 @@ export FLIT_NO_NETWORK=1
|
|||||||
# first, build flit_core with self
|
# first, build flit_core with self
|
||||||
cd flit_core
|
cd flit_core
|
||||||
%pyproject_wheel
|
%pyproject_wheel
|
||||||
# Move %%{_pyproject_wheeldir}/flit_core wheel to the main dir
|
|
||||||
mv %{_pyproject_wheeldir} ..
|
|
||||||
cd -
|
cd -
|
||||||
|
|
||||||
# build of the main flit (needs flit_core)
|
# build of the main flit (needs flit_core)
|
||||||
PYTHONPATH=$PWD:$PWD/flit_core %pyproject_wheel
|
export PYTHONPATH=$PWD:$PWD/flit_core
|
||||||
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%pyproject_install
|
%pyproject_install
|
||||||
@ -136,6 +135,9 @@ export XDG_CACHE_HOME=$PWD/fake_cache
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%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
|
* Tue Mar 30 2021 Karolina Surma <ksurma@redhat.com> - 3.2.0-1
|
||||||
- Update to 3.2.0
|
- Update to 3.2.0
|
||||||
Resolves: rhbz#1940399
|
Resolves: rhbz#1940399
|
||||||
|
Loading…
Reference in New Issue
Block a user