diff options
author | CoprDistGit <infra@openeuler.org> | 2024-01-29 01:42:17 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-01-29 01:42:17 +0000 |
commit | a020817a4f90b898fa49e18f97690ba21dc2cc33 (patch) | |
tree | 0b3345286bfaf1de95290df4c27d4e382c64502d | |
parent | e3c68991394b64c148ffd7790b744b0a40028690 (diff) |
automatic import of python-pyav
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-pyav.spec | 70 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 72 insertions, 0 deletions
@@ -0,0 +1 @@ +/v10.0.0.zip 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 @@ -0,0 +1 @@ +5c36e7269102515ca406a04559021aac v10.0.0.zip |