|
|
d774d7 |
#
|
|
|
d774d7 |
# spec file for package python-meson-python
|
|
|
d774d7 |
#
|
|
|
d774d7 |
# Copyright (c) 2022 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 |
|
|
|
d774d7 |
Name: python-meson-python
|
|
|
78ee01 |
Version: 0.10.0
|
|
|
d774d7 |
Release: 0
|
|
|
d774d7 |
Summary: Meson Python build backend (PEP 517)
|
|
|
d774d7 |
License: MIT
|
|
|
d774d7 |
URL: https://github.com/FFY00/meson-python
|
|
|
d774d7 |
Source: 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
|
|
|
d774d7 |
Patch1: mesonpy-trim-deps.patch
|
|
|
46a8ca |
# PATCH-FIX-UPSTREAM https://github.com/FFY00/meson-python/commit/f51fcafb20e20a8a724a2b65f49670a74fe7d8f2 TST: update the test for install_subdir for fix in meson 0.63.3
|
|
|
46a8ca |
Patch2: meson-subdir-fix.patch
|
|
|
d774d7 |
BuildRequires: %{python_module base >= 3.7}
|
|
|
d774d7 |
BuildRequires: %{python_module pip}
|
|
|
78ee01 |
BuildRequires: %{python_module pyproject-metadata >= 0.6.1}
|
|
|
d774d7 |
BuildRequires: %{python_module tomli >= 1.0.0}
|
|
|
d774d7 |
BuildRequires: %{python_module typing-extensions >= 3.7.4 if %python-base < 3.8}
|
|
|
d774d7 |
BuildRequires: %{python_module wheel}
|
|
|
d774d7 |
BuildRequires: fdupes
|
|
|
78ee01 |
BuildRequires: meson >= 0.63.0
|
|
|
d774d7 |
BuildRequires: ninja
|
|
|
d774d7 |
BuildRequires: python-rpm-macros
|
|
|
78ee01 |
Requires: meson >= 0.62.0
|
|
|
d774d7 |
Requires: ninja
|
|
|
d774d7 |
Requires: python-pyproject-metadata >= 0.5.0
|
|
|
d774d7 |
Requires: python-tomli >= 1.0.0
|
|
|
d774d7 |
BuildArch: noarch
|
|
|
d774d7 |
%if 0%{python_version_nodots} < 38
|
|
|
d774d7 |
Requires: python-typing-extensions >= 3.7.4
|
|
|
d774d7 |
%endif
|
|
|
d774d7 |
# SECTION test
|
|
|
d774d7 |
BuildRequires: %{python_module GitPython}
|
|
|
78ee01 |
BuildRequires: %{python_module Cython}
|
|
|
d774d7 |
BuildRequires: %{python_module devel}
|
|
|
d774d7 |
BuildRequires: %{python_module pytest-mock}
|
|
|
d774d7 |
BuildRequires: %{python_module pytest}
|
|
|
d774d7 |
BuildRequires: patchelf
|
|
|
d774d7 |
# /SECTION
|
|
|
d774d7 |
%python_subpackages
|
|
|
d774d7 |
|
|
|
d774d7 |
%description
|
|
|
d774d7 |
Python build backend (PEP 517) for Meson projects.
|
|
|
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
|
|
|
d774d7 |
export MESONPY_FORCE_LOCAL_LIB=1
|
|
|
78ee01 |
# can test test_spam only once gh#FFY00/meson-python#169
|
|
|
78ee01 |
%python_expand $python_ignore="--ignore tests/docs/examples/test_spam.py"
|
|
|
78ee01 |
unset python310_ignore
|
|
|
78ee01 |
%pytest ${$python_ignore}
|
|
|
d774d7 |
|
|
|
d774d7 |
%files %{python_files}
|
|
|
d774d7 |
%license LICENSE
|
|
|
d774d7 |
%doc README.md
|
|
|
d774d7 |
%{python_sitelib}/mesonpy
|
|
|
d774d7 |
%{python_sitelib}/meson_python-%{version}*-info
|
|
|
d774d7 |
|
|
|
d774d7 |
%changelog
|