2020-10-05 22:30:45 +00:00
|
|
|
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/
|
2021-05-27 13:16:16 +00:00
|
|
|
Source0: https://github.com/takluyver/flit/archive/%{version}/flit-%{version}.tar.gz
|
2020-10-05 22:30:45 +00:00
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: pyproject-rpm-macros
|
|
|
|
|
|
|
|
%description
|
2021-05-27 13:16:16 +00:00
|
|
|
Test a wheel built from a subdirectory.
|
2020-10-05 22:30:45 +00:00
|
|
|
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
|
2021-05-27 13:16:16 +00:00
|
|
|
%autosetup -p1 -n flit-%{version}
|
2020-10-05 22:30:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
2021-05-27 13:16:16 +00:00
|
|
|
cd flit_core
|
2022-01-14 15:26:40 +00:00
|
|
|
# this runtime-requires pytoml which is no longer available in Fedora
|
|
|
|
%pyproject_buildrequires -R
|
2021-05-27 13:16:16 +00:00
|
|
|
cd ..
|
2020-10-05 22:30:45 +00:00
|
|
|
|
|
|
|
%build
|
2021-05-27 13:16:16 +00:00
|
|
|
cd flit_core
|
2020-10-05 22:30:45 +00:00
|
|
|
%pyproject_wheel
|
2021-05-27 13:16:16 +00:00
|
|
|
cd ..
|
2020-10-05 22:30:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%pyproject_install
|
|
|
|
%pyproject_save_files flit_core
|
|
|
|
|
|
|
|
|
|
|
|
%files -n python3-flit-core -f %{pyproject_files}
|