Skip to content

Commit

Permalink
Revert "Remove python3-scikit-build-core+pyproject subpackage"
Browse files Browse the repository at this point in the history
This reverts commit 7e3d62b.
  • Loading branch information
LecrisUT committed Aug 30, 2024
1 parent 7e3d62b commit 55d2379
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 11 deletions.
2 changes: 2 additions & 0 deletions .distro/python-scikit-build-core.rpmlintrc
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
addFilter("python.?-scikit-build-core\+pyproject.* spelling-error \('[Mm]etapackage")
addFilter("python.?-scikit-build-core\+.* no-documentation")
addFilter("python.?-scikit-build-core.* files-duplicate .*__init__.py .*")
28 changes: 17 additions & 11 deletions .distro/python-scikit-build-core.spec
Original file line number Diff line number Diff line change
Expand Up @@ -35,29 +35,35 @@ A next generation Python CMake adapter and Python API for plugins
Summary: %{summary}
Requires: cmake
Recommends: (ninja-build or make)
Recommends: python3-scikit-build-core+pyproject = %{version}-%{release}
Suggests: ninja-build
Suggests: gcc

BuildArch: noarch
%description -n python3-scikit-build-core %_description

# Deprecated extras/optional-dependencies
# Provides python3dist() do not seem to be generated, defining them manually
# Note: the version can be a bit off if the python metadata version is different than RPM.
# It shouldn't be an issue in this package.
%py_provides python3-scikit-build-core+pyproject
Provides: python3dist(scikit-build-core[pyproject]) = %{version}
Provides: python%{python3_version}dist(scikit-build-core[pyproject]) = %{version}
Obsoletes: python3-scikit-build-core+pyproject < 0.11.0-1%{?dist}

%description -n python3-scikit-build-core %_description
# Add %%pyproject_extras_subpkg results manually because BuildArch: noarch is not injected
# https://src.fedoraproject.org/rpms/python-rpm-macros/pull-request/174
# %%pyproject_extras_subpkg -n python3-scikit-build-core pyproject

%package -n python3-scikit-build-core+pyproject
Summary: Metapackage for python3-scikit-build-core: pyproject extras
Requires: python3-scikit-build-core = %{?epoch:%{epoch}:}%{version}-%{release}
BuildArch: noarch
%description -n python3-scikit-build-core+pyproject
This is a metapackage bringing in pyproject extras requires for
python3-scikit-build-core.
It makes sure the dependencies are installed.

%files -n python3-scikit-build-core+pyproject -f %{_pyproject_ghost_distinfo}


%prep
%autosetup -n scikit_build_core-%{version}


%generate_buildrequires
%pyproject_buildrequires %{?with_tests:-x test,test-meta,test-numpy}
%pyproject_buildrequires -x pyproject%{?with_tests:,test,test-meta,test-numpy}


%build
Expand Down

0 comments on commit 55d2379

Please sign in to comment.