diff --git a/python-torchdiffeq.spec b/python-torchdiffeq.spec new file mode 100644 index 0000000000000000000000000000000000000000..1b3d96415df4722cd23f435d38e7895c2b6a1fe6 --- /dev/null +++ b/python-torchdiffeq.spec @@ -0,0 +1,56 @@ +%define anolis_release 1 +%global pypi_name torchdiffeq +%global pypi_version 0.2.3 + +Name: python-%{pypi_name} +Version: %{pypi_version} +Release: %{anolis_release}%{?dist} +Summary: ODE solvers and adjoint sensitivity analysis in PyTorch + +License: None +URL: https://github.com/rtqichen/torchdiffeq +Source0: %{pypi_source} +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3dist(scipy) >= 1.4 +BuildRequires: python3dist(setuptools) + +Requires: python3dist(scipy) >= 1.4 + +# Since we don't provide torch from yum source +# BuildRequires: python3dist(torch) >= 1.3 +# Requires: python3dist(torch) >= 1.3 + +%description +ODE solvers and adjoint sensitivity analysis in PyTorch. + +%package -n python3-%{pypi_name} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{pypi_name} +ODE solvers and adjoint sensitivity analysis in PyTorch. + + +%prep +%autosetup -n %{pypi_name}-%{pypi_version} +# Remove bundled egg-info +rm -rf %{pypi_name}.egg-info + +%build +%py3_build + +%install +%py3_install + +%files -n python3-%{pypi_name} +%license LICENSE +%doc README.md +%{python3_sitelib}/%{pypi_name} +%{python3_sitelib}/%{pypi_name}-%{pypi_version}-py%{python3_version}.egg-info + + +%changelog +* Wed Apr 17 2024 Shenglong Zhu - 0.2.3-1 +- Initial package. diff --git a/torchdiffeq-0.2.3.tar.gz b/torchdiffeq-0.2.3.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..80afd9633d1df3cb7466ce47e70960bd66ce4608 Binary files /dev/null and b/torchdiffeq-0.2.3.tar.gz differ