22918dd2a6
- The -l flag can be used to assert at least 1 License-File was detected - The -L flag explicitly disables this check (which remains the default) Co-Authored-By: Maxwell G <maxwell@gtmx.me>
55 lines
1.1 KiB
RPMSpec
55 lines
1.1 KiB
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: https://github.com/takluyver/flit/archive/%{version}/flit-%{version}.tar.gz
|
|
|
|
BuildArch: noarch
|
|
BuildRequires: python3-devel
|
|
BuildRequires: pyproject-rpm-macros
|
|
|
|
%description
|
|
Test a wheel built from a subdirectory.
|
|
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-%{version}
|
|
|
|
|
|
%generate_buildrequires
|
|
cd flit_core
|
|
# this runtime-requires pytoml which is no longer available in Fedora
|
|
%pyproject_buildrequires -R
|
|
cd ..
|
|
|
|
%build
|
|
cd flit_core
|
|
%pyproject_wheel
|
|
cd ..
|
|
|
|
|
|
%install
|
|
%pyproject_install
|
|
# there is no license file marked as License-File, hence not using -l
|
|
%pyproject_save_files flit_core
|
|
|
|
|
|
%check
|
|
# internal check for our macros, we assume there is no license
|
|
grep -F %%license %{pyproject_files} && exit 1 || true
|
|
|
|
|
|
%files -n python3-flit-core -f %{pyproject_files}
|