summaryrefslogtreecommitdiff
path: root/torchvideo.spec
blob: c5ed2b4df65576bf82a4d4d09ff755e51bee81a3 (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
55
56
57
58
59
60
61
%global _empty_manifest_terminate_build 0
%global _unpackaged_files_terminate_build 0

Name: torchvideo
Version: 0.16.2
Release: 1%{?dist}
Summary: A deep learning library for video understanding research
License: BSD
URL: https://github.com/pytorch/vision
Source0: pytorchvideo-v0.1.3.tar.gz


%description
PyTorchVideo is a deep learning library with a focus on video understanding work. PytorchVideo provides reusable, modular and efficient components needed to accelerate the video understanding research.

%package -n python3-pytorchvideo
Summary:	PyTorchVideo is a deep learning library with a focus on video understanding work. PytorchVideo provides reusable, modular and efficient components needed to accelerate the video understanding research.
Provides:	python-pytorchvideo
BuildRequires:  g++
Requires:	python3-pytorch
Requires:	python3-fvcore
Requires:	python3-iopath
Requires:	python3-pyav
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools
BuildRequires:	python3-setuptools_scm
BuildRequires:	python3-rpm-macros
BuildRequires:	python3-pip
BuildRequires:	python3-wheel
BuildRequires:	python3-hatchling

%description -n python3-pytorchvideo
PyTorchVideo is a deep learning library with a focus on video understanding work. PytorchVideo provides reusable, modular and efficient components needed to accelerate the video understanding research.

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

%build
%pyproject_build

%install
%py3_install
install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
pushd %{buildroot}
touch doclist.lst
if [ -d usr/share/man ]; then
	find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
fi
popd
mv %{buildroot}/doclist.lst .

%files -n python3-pytorchvideo
%doc *.md
%license LICENSE
%{python3_sitelib}/*

%changelog
* Mon Apr 15 2024 weilaijishu 
- Initial package