Skip to content

Commit 373921c

Browse files
LecrisUThenryiii
authored andcommitted
Correct license reference for pyproject-metadata
Signed-off-by: Cristian Le <[email protected]>
1 parent a51012c commit 373921c

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.distro/python-scikit-build-core.spec

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ Version: 0.0.0
1313
Release: %autorelease
1414
Summary: Build backend for CMake based projects
1515

16-
License: Apache-2.0
16+
# The main project is licensed under Apache-2.0, but it has a vendored project
17+
# src/scikit_build_core/_vendor/pyproject_metadata: MIT
18+
# https://github.com/scikit-build/scikit-build-core/issues/933
19+
License: Apache-2.0 AND MIT
1720
URL: https://github.com/scikit-build/scikit-build-core
1821
Source: %{pypi_source scikit_build_core}
1922

@@ -38,6 +41,7 @@ Recommends: (ninja-build or make)
3841
Recommends: python3-scikit-build-core+pyproject = %{version}-%{release}
3942
Suggests: ninja-build
4043
Suggests: gcc
44+
Provides: bundled(python3dist(pyproject-metadata))
4145
BuildArch: noarch
4246
%description -n python3-scikit-build-core %_description
4347

@@ -63,6 +67,8 @@ It makes sure the dependencies are installed.
6367

6468
%prep
6569
%autosetup -n scikit_build_core-%{version}
70+
# Rename the bundled license so that it can be installed together
71+
cp -p src/scikit_build_core/_vendor/pyproject_metadata/LICENSE LICENSE-pyproject-metadata
6672

6773

6874
%generate_buildrequires
@@ -87,7 +93,7 @@ It makes sure the dependencies are installed.
8793

8894

8995
%files -n python3-scikit-build-core -f %{pyproject_files}
90-
%license LICENSE
96+
%license LICENSE LICENSE-pyproject-metadata
9197
%doc README.md
9298

9399

0 commit comments

Comments
 (0)