summaryrefslogtreecommitdiff
path: root/python-pytorch-lightning.spec
blob: 21eacec901e59630299b381558a8fad3a332d701 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
%global _empty_manifest_terminate_build 0
Name:		python-pytorch-lightning
Version:	2.1.3
Release:	1
Summary:	Pytorch Lightning package for python3
License:	MIT
URL:		https://github.com/Lightning-AI
Source0:	https://github.com/Lightning-AI/pytorch-lightning/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz

BuildArch:	noarch

%description
PyTorch Lightning is just organized PyTorch - Lightning disentangles PyTorch code to decouple the science from the engineering.

%package -n python3-pytorch-lightning
Summary:	Pytorch Lightning package for python3
Provides:	python-pytorch-lightning
BuildRequires:	python3-devel
BuildRequires:	python3-pip
BuildRequires:	python3-setuptools
BuildRequires:	python3-wheel

%description -n python3-pytorch-lightning
Pytorch Lightning package for python3

%package help
Summary:	Development documents and examples for Pytorch Lightning
Provides:	python3-pytorch-lightning-doc

%description help
Python3 Pytorch Lightning help documents

%prep
%autosetup -p1 -n lightning-%{version}

%build
%pyproject_build

%install
%pyproject_install
install -d -m755 %{buildroot}/%{_pkgdocdir}

%files -n python3-pytorch-lightning
%doc *.md
%doc CITATION.cff
%license LICENSE
%{_bindir}/lightning
%{python3_sitelib}/lightning/*
%{python3_sitelib}/lightning-%{version}.dist-info/*


%changelog
* Fri Jan 26 2024 menma <1316818279@qq.com> - 2.1.3-1
- Package init