## START: Set by rpmautospec ## (rpmautospec version 0.8.4) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; 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 # Created by pyp2rpm-3.3.10 %global pypi_name ml-dtypes %global pypi_version 0.5.4 Name: python-%{pypi_name} Version: %{pypi_version} Release: %autorelease Summary: ml_dtypes is a stand-alone implementation of several NumPy dtype extensions used in machine learning License: None URL: None 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(pylint) >= 2.6 BuildRequires: python3dist(pytest) BuildRequires: python3dist(pytest-xdist) BuildRequires: python3dist(setuptools) BuildRequires: python3dist(numpy) BuildRequires: python3dist(pip) BuildRequires: eigen3-devel BuildRequires: g++ %description asdasdasd %package -n python3-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python3-%{pypi_name}} Requires: python3dist(numpy) >= 2.3.0 %description -n python3-%{pypi_name} asdasdasd %prep %autosetup -n ml_dtypes-%{pypi_version} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info %build export CFLAGS="%{optflags} -I/usr/include/eigen3" export CXXFLAGS="%{optflags} -I/usr/include/eigen3" %pyproject_wheel %install %pyproject_install %check export PYTHONPATH=%{buildroot}%{python3_sitearch} %pytest %{_builddir}/ml_dtypes-%{version}/ml_dtypes/tests/ \ -k "not testArange_float8_e4m3b11fnuz" %files -n python3-%{pypi_name} %license LICENSE LICENSE.eigen %doc README.md %{python3_sitearch}/ml_dtypes/ %{python3_sitearch}/ml_dtypes-%{version}.dist-info/ %changelog ## START: Generated by rpmautospec * Fri May 29 2026 Diego Herrera - 0.5.4-1 - Initial package ## END: Generated by rpmautospec