Package init

This commit is contained in:
wk333 2024-02-19 15:52:01 +08:00
parent 2baadf9129
commit 7dfe5b23c8
3 changed files with 78 additions and 0 deletions

BIN
meson_python-0.15.0.tar.gz Normal file

Binary file not shown.

74
python-meson-python.spec Normal file
View File

@ -0,0 +1,74 @@
%bcond_without tests
Name: python-meson-python
Summary: Meson Python build backend (PEP 517)
Version: 0.15.0
Release: 1
License: MIT
URL: https://github.com/mesonbuild/meson-python
Source: %{pypi_source meson_python}
BuildArch: noarch
BuildRequires: python3-devel python3-packaging python3-pyproject-metadata
BuildRequires: python3-pip python3-wheel python3-pytest python3-Cython
BuildRequires: git-core meson python3-pytest-mock
%if %{with tests}
BuildRequires: gcc
%endif
%global common_description %{expand:
meson-python is a Python build backend built on top of the Meson build system.
It enables to use Meson for the configuration and build steps of Python
packages. Meson is an open source build system meant to be both extremely fast,
and, even more importantly, as user friendly as possible. meson-python is best
suited for building Python packages containing extension modules implemented in
languages such as C, C++, Cython, Fortran, Pythran, or Rust. Consult the
documentation for more details.}
%description %{common_description}
%package -n python3-meson-python
Summary: %{summary}
# When patchelf is not in the PATH, mesonpy.get_requires_for_build_wheel() adds
# https://pypi.org/project/patchelf/ to the dependencies. We always want to use
# the system patchelf.
BuildRequires: patchelf
Requires: patchelf
%description -n python3-meson-python %{common_description}
%prep
%autosetup -n meson_python-%{version}
# build: used only by skipped PEP 518 test
sed -r -i "s/^ '(build|pytest-cov)/#&/" pyproject.toml
%build
%pyproject_build
%install
%pyproject_install
%check
%if %{with tests}
# PEP 518 tests require network access.
# Note: tests are *not* safe for parallel execution with pytest-xdist.
pytest --ignore=tests/test_pep518.py
%endif
%files -n python3-meson-python
%{python3_sitelib}/*
%license LICENSES/*
%doc CHANGELOG.rst
%doc README.rst
%changelog
* Mon Feb 19 2024 wangkai <13474090681@163.com> - 0.15.0-1
- Package init

4
python-meson-python.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: mesonbuild/meson-python
tag_prefix: ""
separator: "."