## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## 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 Name: python-torchsde Version: 0.2.6 Release: %autorelease Summary: Differentiable SDE solvers with GPU support and efficient sensitivity analysis License: Apache-2.0 URL: https://github.com/google-research/torchsde Source: %{url}/archive/v%{version}/torchsde-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel # Tests BuildRequires: python3-pytest # Due to pytorch dependency ExclusiveArch: x86_64 aarch64 %global _description %{expand: PyTorch Implementation of Differentiable SDE Solvers Python package This library provides stochastic differential equation (SDE) solvers with GPU support and efficient backpropagation.} %description %_description %package -n python3-torchsde Summary: %{summary} %description -n python3-torchsde %_description %prep %autosetup -p1 -n torchsde-%{version} pushd tests sed -i 's/msg=/reason=/g' test_brownian_path.py sed -i 's/msg=/reason=/g' test_brownian_interval.py sed -i 's/msg=/reason=/g' test_brownian_tree.py popd %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l torchsde %check %pyproject_check_import %pytest %files -n python3-torchsde -f %{pyproject_files} %doc DOCUMENTATION.md %doc examples %changelog ## START: Generated by rpmautospec * Sun Dec 29 2024 John Doe - 0.2.6-1 - Uncommitted changes ## END: Generated by rpmautospec