|
|
d774d7 |
#
|
|
|
d774d7 |
# spec file for package python-meson-python
|
|
|
d774d7 |
#
|
|
|
5add09 |
# Copyright (c) 2024 SUSE LLC
|
|
|
d774d7 |
#
|
|
|
d774d7 |
# All modifications and additions to the file contributed by third parties
|
|
|
d774d7 |
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
d774d7 |
# upon. The license for this file, and modifications and additions to the
|
|
|
d774d7 |
# file, is the same license as for the pristine package itself (unless the
|
|
|
d774d7 |
# license for the pristine package is not an Open Source License, in which
|
|
|
d774d7 |
# case the license is the MIT License). An "Open Source License" is a
|
|
|
d774d7 |
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
d774d7 |
# published by the Open Source Initiative.
|
|
|
d774d7 |
|
|
|
d774d7 |
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
d774d7 |
#
|
|
|
d774d7 |
|
|
|
d774d7 |
|
|
|
bb5ce2 |
%{?sle15_python_module_pythons}
|
|
|
d774d7 |
Name: python-meson-python
|
|
|
5add09 |
Version: 0.15.0
|
|
|
d774d7 |
Release: 0
|
|
|
d774d7 |
Summary: Meson Python build backend (PEP 517)
|
|
|
d774d7 |
License: MIT
|
|
|
8fdadd |
URL: https://github.com/mesonbuild/meson-python
|
|
|
8fdadd |
Source0: https://files.pythonhosted.org/packages/source/m/meson_python/meson_python-%{version}.tar.gz
|
|
|
d774d7 |
# PATCH-FEATURE-OPENSUSE mesonpy-trim-deps.patch code@bnavigator.de
|
|
|
8fdadd |
Patch11: mesonpy-trim-deps.patch
|
|
|
d774d7 |
BuildRequires: %{python_module base >= 3.7}
|
|
|
d774d7 |
BuildRequires: %{python_module pip}
|
|
|
b5fe25 |
BuildRequires: %{python_module pyproject-metadata >= 0.7.1}
|
|
|
8fdadd |
BuildRequires: %{python_module tomli >= 1.0.0 if %python-base < 3.11}
|
|
|
d774d7 |
BuildRequires: fdupes
|
|
|
5add09 |
BuildRequires: meson >= 1.2.3
|
|
|
d774d7 |
BuildRequires: ninja
|
|
|
d774d7 |
BuildRequires: python-rpm-macros
|
|
|
94669e |
%if 0%{python_version_nodots} >= 312
|
|
|
5add09 |
Requires: meson >= 1.2.3
|
|
|
5add09 |
%else
|
|
|
5add09 |
Requires: meson >= 0.63.3
|
|
|
94669e |
%endif
|
|
|
5add09 |
Requires: python-pyproject-metadata >= 0.7.1
|
|
|
8fdadd |
%if 0%{python_version_nodots} < 311
|
|
|
d774d7 |
Requires: python-tomli >= 1.0.0
|
|
|
8fdadd |
%endif
|
|
|
d774d7 |
# SECTION test
|
|
|
d774d7 |
BuildRequires: %{python_module GitPython}
|
|
|
78ee01 |
BuildRequires: %{python_module Cython}
|
|
|
8fdadd |
BuildRequires: %{python_module build}
|
|
|
d774d7 |
BuildRequires: %{python_module devel}
|
|
|
d774d7 |
BuildRequires: %{python_module pytest-mock}
|
|
|
d774d7 |
BuildRequires: %{python_module pytest}
|
|
|
8fdadd |
BuildRequires: %{python_module wheel}
|
|
|
d774d7 |
BuildRequires: patchelf
|
|
|
d774d7 |
# /SECTION
|
|
|
8fdadd |
BuildArch: noarch
|
|
|
d774d7 |
%python_subpackages
|
|
|
d774d7 |
|
|
|
d774d7 |
%description
|
|
|
5add09 |
meson-python is a Python build backend built on top of the Meson build system.
|
|
|
5add09 |
It enables using Meson for the configuration and build steps of Python packages.
|
|
|
5add09 |
meson-python is best suited for building Python packages containing extension
|
|
|
5add09 |
modules implemented in languages such as C, C++, Cython, Fortran, Pythran, or Rust.
|
|
|
d774d7 |
|
|
|
d774d7 |
%prep
|
|
|
d774d7 |
%autosetup -p1 -n meson_python-%{version}
|
|
|
d774d7 |
|
|
|
d774d7 |
%build
|
|
|
d774d7 |
%pyproject_wheel
|
|
|
d774d7 |
|
|
|
d774d7 |
%install
|
|
|
d774d7 |
%pyproject_install
|
|
|
d774d7 |
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
d774d7 |
|
|
|
d774d7 |
%check
|
|
|
5add09 |
# test suite path issues
|
|
|
5add09 |
donttest="test_vendored_meson"
|
|
|
5add09 |
%pytest -k "not ($donttest)"
|
|
|
d774d7 |
|
|
|
d774d7 |
%files %{python_files}
|
|
|
d774d7 |
%license LICENSE
|
|
|
b5fe25 |
%doc README.rst
|
|
|
d774d7 |
%{python_sitelib}/mesonpy
|
|
|
d774d7 |
%{python_sitelib}/meson_python-%{version}*-info
|
|
|
d774d7 |
|
|
|
d774d7 |
%changelog
|