%global _empty_manifest_terminate_build 0 Name: pytorch-lightning Version: 2.2.0 Release: 1%{?dist} Summary: The lightweight PyTorch wrapper for high-performance AI research License: Apache-2.0 URL: https://github.com/PyTorchLightning/pytorch-lightning Source0: https://openi.pcl.ac.cn/JunJun-Liu/pytorch-lightning/pytorch-lightning-2.2.0.post0.tar.gz BuildRequires: g++ BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip Requires: python3-torch>=1.8 Requires: python3-tensorboard>=2.2 Requires: python3-numpy Requires: python3-packaging %description PyTorch Lightning is a lightweight PyTorch wrapper for high-performance AI research. Scale your models, not the boilerplate. %package -n python3-pytorch-lightning Summary: The lightweight PyTorch wrapper for high-performance AI research Provides: python3-lightning BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-wheel BuildRequires: python3-pip %description -n python3-pytorch-lightning PyTorch Lightning is a lightweight PyTorch wrapper for high-performance AI research. Scale your models, not the boilerplate. %prep %autosetup -n pytorch-lightning-2.2.0.post0 %build python3 setup.py build %install python3 setup.py install --root=%{buildroot} --skip-build %files -n python3-pytorch-lightning %doc README.md %license LICENSE /usr/lib/python3.9/site-packages/* %changelog * Thu Feb 28 2024 Your Name - 2.2.0-1 - First build of PyTorch Lightning