## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 3; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %bcond tests %[!(0%{?rhel} >= 10)] Name: python-meson-python Summary: Meson Python build backend (PEP 517) Version: 0.16.0 Release: %autorelease # SPDX License: MIT URL: https://github.com/mesonbuild/meson-python Source: %{pypi_source meson_python} # TST: adapt to changes in pyproject-metadata 0.8.0 # https://github.com/mesonbuild/meson-python/commit/225a26d8c854987897448b17478166570c7be777 Patch: %{url}/commit/225a26d8c854987897448b17478166570c7be777.patch # MAINT: adjust typing annotations to pyproject-metadata 0.8.0 # https://github.com/mesonbuild/meson-python/commit/6aa97735de80943a61aecea59963bdb685d7c324 Patch: %{url}/commit/6aa97735de80943a61aecea59963bdb685d7c324.patch BuildArch: noarch BuildRequires: python3-devel %if %{with tests} BuildRequires: gcc BuildRequires: git-core %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: /usr/bin/patchelf Requires: /usr/bin/patchelf # https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_provides_for_importable_modules %py_provides python3-mesonpy %description -n python3-meson-python %{common_description} %prep %autosetup -n meson_python-%{version} -p1 # build: used only by skipped PEP 518 test # pytest-cov: https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_linters sed -r -i "s/^ '(build|pytest-cov)/#&/" pyproject.toml %generate_buildrequires %pyproject_buildrequires -w %{?with_tests:-x test} %build %pyproject_wheel %install %pyproject_install %pyproject_save_files mesonpy %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 %else %pyproject_check_import %endif %files -n python3-meson-python -f %{pyproject_files} # LICENSE duplicates LICENSES/MIT.txt. Currently, neither is automatically # installed into the dist-info metadata directory. %license LICENSES/* %doc CHANGELOG.rst %doc README.rst %changelog ## START: Generated by rpmautospec * Thu May 09 2024 Lukáš Zaoral - 0.16.0-3 - disable test-suite on RHEL to remove dependencies on unwanted test-only packages. * Sat Apr 20 2024 Benjamin A. Beasley - 0.16.0-2 - Patch for pyproject-metadata 0.8.0 * Wed Apr 17 2024 Benjamin A. Beasley - 0.16.0-1 - Update to 0.16.0 (close RHBZ#2275469) * Fri Jan 26 2024 Fedora Release Engineering - 0.15.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 0.15.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Dec 01 2023 Yaakov Selkowitz - 0.15.0-2 - Drop unused python-build dependency * Wed Nov 01 2023 Benjamin A. Beasley - 0.15.0-1 - Update to 0.15.0 (close RHBZ#2246309) * Tue Sep 05 2023 Benjamin A. Beasley - 0.14.0-1 - Update to 0.14.0 (close RHBZ#2237380) * Fri Jul 21 2023 Fedora Release Engineering - 0.13.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Fri Jul 07 2023 Benjamin A. Beasley - 0.13.2-2 - Use new (rpm 4.17.1+) bcond style * Wed Jun 28 2023 Benjamin A. Beasley - 0.13.2-1 - Update to 0.13.2 (close RHBZ#2218115) * Thu Jun 15 2023 Python Maint - 0.13.1-4 - Rebuilt for Python 3.12 * Sun Apr 30 2023 Benjamin A. Beasley - 0.13.1-3 - Depend on the system patchelf - This avoids generating dependencies on python3dist(patchelf). * Sun Apr 30 2023 Benjamin A. Beasley - 0.13.1-2 - Let the dist-git branches diverge; drop the spec-file conditionals * Sun Apr 30 2023 Benjamin A. Beasley - 0.13.1-1 - Initial package (close RHBZ#2192109) ## END: Generated by rpmautospec