diff options
Diffstat (limited to 'python-pyav.spec')
-rw-r--r-- | python-pyav.spec | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/python-pyav.spec b/python-pyav.spec new file mode 100644 index 0000000..ad8747c --- /dev/null +++ b/python-pyav.spec @@ -0,0 +1,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-Cython python3-devel python3-setuptools python3-setuptools_scm gcc +BuildRequires: 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 |