Skip to content

Commit

Permalink
Correct license reference for pyproject-metadata
Browse files Browse the repository at this point in the history
Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
  • Loading branch information
LecrisUT committed Oct 22, 2024
1 parent f733716 commit db4160b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .distro/python-scikit-build-core.spec
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ Version: 0.0.0
Release: %autorelease
Summary: Build backend for CMake based projects

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

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

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

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


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


%files -n python3-scikit-build-core -f %{pyproject_files}
%license LICENSE
%license LICENSE LICENSE-pyproject-metadata
%doc README.md


Expand Down

0 comments on commit db4160b

Please sign in to comment.