## 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 Name: python-lion-pytorch Version: 0.2.3 Release: %autorelease Summary: A Pytorch optimizer License: MIT URL: https://github.com/lucidrains/lion-pytorch Source: %{pypi_source lion_pytorch} BuildArch: noarch # Pytorch only on X86_64 and aarch64 ExclusiveArch: x86_64 aarch64 BuildRequires: python3-devel %global _description %{expand: Lion, EvoLved Sign Momentum, new optimizer discovered by Google Brain that is purportedly better than Adam(w), in Pytorch. This is nearly a straight copy from here, with few minor modifications. It is so simple, we may as well get it accessible and used asap by everyone to train some great models, if it really works. } %description %_description %package -n python3-lion-pytorch Summary: %{summary} %description -n python3-lion-pytorch %_description %prep %autosetup -p1 -n lion_pytorch-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l lion_pytorch %check %pyproject_check_import %files -n python3-lion-pytorch -f %{pyproject_files} %changelog ## START: Generated by rpmautospec * Fri Jan 03 2025 Tom Rix - 0.2.3-2 - Pytorch is only on x86 and aarch64 * Wed Jan 01 2025 Tom Rix - 0.2.3-1 - Initial package ## END: Generated by rpmautospec