## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; 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 %global pypi_name peachpy %global pypi_version 0.2.0 # No tags %global commit0 349e8f836142b2ed0efeb6bb99b1b715d87202e9 %global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) Name: python-peachpy Version: %{pypi_version} Release: %autorelease Summary: Portable Efficient Assembly Codegen in Higher-level Python License: BSD-2-Clause URL: https://github.com/Maratyszcza/PeachPy/ Source0: %{url}/archive/%{commit0}/%{pypi_name}-%{shortcommit0}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(pytest) # Do not work with upstream 0.3.14 BuildRequires: python3dist(opcodes) = 0.3.13 %description PeachPy is a Python framework for writing high-performance assembly kernels. PeachPy aims to simplify writing optimized assembly kernels while preserving all optimization opportunities of traditional assembly. %package -n python3-%{pypi_name} Summary: Portable Efficient Assembly Codegen in Higher-level Python %description -n python3-%{pypi_name} PeachPy is a Python framework for writing high-performance assembly kernels. PeachPy aims to simplify writing optimized assembly kernels while preserving all optimization opportunities of traditional assembly. %prep %autosetup -p1 -n PeachPy-%{commit0} # Remove arm test rm tests/arm/test_arm.py # Does not work with anything but 0.3.13 sed -i -e 's@Opcodes>=0.3.13@Opcodes==0.3.13@' setup.py %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files %{pypi_name} %check %pyproject_check_import %pytest %files -n python3-%{pypi_name} -f %{pyproject_files} %license LICENSE.rst %doc README.rst %changelog ## START: Generated by rpmautospec * Wed Jul 24 2024 Tom Rix - 0.2.0-2 - And sources are helpful... * Wed Jul 24 2024 Tom Rix - 0.2.0-1 - Initial package ## END: Generated by rpmautospec