summaryrefslogtreecommitdiff
path: root/python-pyav.spec
blob: 36745452096dcf4d97270dddec888b926acba42c (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
62
63
64
65
66
67
68
69
70
%global debug_package %{nil}
%global _empty_manifest_terminate_build 0

Name:           python-pyav
Version:        10.0.0
Release:        1
Summary:        Pythonic bindings for FFmpeg's libraries.
License:        Apache-2.0
URL:            https://github.com/PyAV-Org/pyav
Source0:        https://github.com/PyAV-Org/pyav/archive/refs/tags/v%{version}.zip

BuildRequires:  python3-devel python3-setuptools python3-setuptools_scm python3-pip gcc
BuildRequires:  python3-Cython python3-google-api-core python3-wheel python3-pkgconfig
Requires:       ffmpeg python3-numpy python3-pillow

%description
PyAV is a Pythonic binding for the FFmpeg libraries. We aim to provide all of the power and control of the underlying library, 
but manage the gritty details as much as possible. PyAV is for direct and precise access to your media via containers, 
streams, packets, codecs, and frames. It exposes a few transformations of that data, and helps you get your data to/from other packages.

%package     -n python3-pyav
Summary:        Pythonic bindings for FFmpeg's libraries.
Provides:       python3-pyav

%description -n python3-pyav
PyAV is a Pythonic binding for the FFmpeg libraries. We aim to provide all of the power and control of the underlying library, 
but manage the gritty details as much as possible. PyAV is for direct and precise access to your media via containers, 
streams, packets, codecs, and frames. It exposes a few transformations of that data, and helps you get your data to/from other packages.

%package help
Summary:	Development documents and examples for PyAV
Provides:	python3-PyAV-doc
%description help
PyAV is a Pythonic binding for the FFmpeg libraries. We aim to provide all of the power and control of the underlying library, 
but manage the gritty details as much as possible. PyAV is for direct and precise access to your media via containers, 
streams, packets, codecs, and frames. It exposes a few transformations of that data, and helps you get your data to/from other packages.

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

%build
%pyproject_build

%install
%pyproject_install
install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{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-pyav
%doc *.md
%license LICENSE.txt
%{_bindir}/pyav
%{python3_sitearch}/*

%files help -f doclist.lst
%{_docdir}/*

%changelog
* Sun Jan 28 2024 Binshuo Zu <274620705z@gmail.com> - 11.0.0-1
- Package init