## START: Set by rpmautospec ## (rpmautospec version 0.8.4) ## 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 Name: python-ml-dtypes Version: 0.5.4 Release: %autorelease Summary: ml_dtypes is a stand-alone implementation of several NumPy dtype extensions used in machine learning. License: Apache-2.0 and MPL-2.0 URL: https://github.com/jax-ml/ml_dtypes Source0: https://github.com/jax-ml/ml_dtypes/archive/v%{version}/ml_dtypes-%{version}.tar.gz BuildRequires: python3-devel BuildRequires: python3dist(absl-py) BuildRequires: python3dist(pytest) BuildRequires: eigen3-devel BuildRequires: g++ %global _description %{expand: ml_dtypes is a stand-alone implementation of several NumPy dtype extensions used in machine learning libraries, including: bfloat16, 8-bit floating point representations, Microscaling (MX) sub-byte floating point representations, and Narrow integer encodings.} %description %_description %package -n python3-ml-dtypes Summary: %{summary} %description -n python3-ml-dtypes %_description %prep %autosetup -p1 -n ml_dtypes-%{version} sed -i 's/"setuptools.*",/"setuptools >= 80.9",/g' pyproject.toml %generate_buildrequires %pyproject_buildrequires %build export CFLAGS="%{optflags} -I/usr/include/eigen3" export CXXFLAGS="%{optflags} -I/usr/include/eigen3" %pyproject_wheel %install %pyproject_install %pyproject_save_files ml_dtypes %check %pyproject_check_import %pytest %{_builddir}/ml_dtypes-%{version}/ml_dtypes/tests/ \ -k "not testArange_float8_e4m3b11fnuz" %files -n python3-ml-dtypes -f %{pyproject_files} %changelog ## START: Generated by rpmautospec * Tue Jun 09 2026 Diego Herrera - 0.5.4-3 - Use pyp2spec instead of pyp2rpm * Tue Jun 09 2026 Diego Herrera - 0.5.4-2 - First review round * Fri May 29 2026 Diego Herrera - 0.5.4-1 - Initial package ## END: Generated by rpmautospec