89b6866906
The content of this branch was automatically imported from Fedora ELN with the following as its source: https://src.fedoraproject.org/rpms/pyproject-rpm-macros#6a44fe2d7a819cdcb55159d19c6878419871b41f
48 lines
913 B
RPMSpec
48 lines
913 B
RPMSpec
Name: python-flit-core
|
|
Version: 3.0.0
|
|
Release: 0%{?dist}
|
|
Summary: Distribution-building parts of Flit
|
|
|
|
License: BSD
|
|
URL: https://pypi.org/project/flit-core/
|
|
Source0: %{pypi_source flit_core}
|
|
|
|
BuildArch: noarch
|
|
BuildRequires: python3-devel
|
|
BuildRequires: pyproject-rpm-macros
|
|
|
|
%description
|
|
Test a build with pyproject.toml backend-path = .
|
|
flit-core builds with flit-core.
|
|
|
|
|
|
%package -n python3-flit-core
|
|
Summary: %{summary}
|
|
|
|
%description -n python3-flit-core
|
|
...
|
|
|
|
|
|
%prep
|
|
%autosetup -p1 -n flit_core-%{version}
|
|
|
|
|
|
%generate_buildrequires
|
|
%pyproject_buildrequires
|
|
|
|
|
|
%build
|
|
%if 0%{?fedora} < 33 && 0%{?rhel} < 9
|
|
# the old pip version cannot handle backend-path properly, let's help it:
|
|
export PYTHONPATH=$PWD
|
|
%endif
|
|
%pyproject_wheel
|
|
|
|
|
|
%install
|
|
%pyproject_install
|
|
%pyproject_save_files flit_core
|
|
|
|
|
|
%files -n python3-flit-core -f %{pyproject_files}
|