diff options
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-av.spec | 92 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 94 insertions, 0 deletions
@@ -0,0 +1 @@ +/av-10.0.0.tar.gz diff --git a/python-av.spec b/python-av.spec new file mode 100644 index 0000000..1243735 --- /dev/null +++ b/python-av.spec @@ -0,0 +1,92 @@ +%global _empty_manifest_terminate_build 0 +Name: python-av +Version: 10.0.0 +Release: 1 +Summary: Pythonic bindings for FFmpeg's libraries. +License: BSD +URL: https://github.com/PyAV-Org/PyAV +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/09/45/eb750ba15c44e8106f58a22e6789f5ddbe5584d9dcb4e755b08d47ed6261/av-10.0.0.tar.gz + + +%description +[![GitHub Test Status][github-tests-badge]][github-tests] \ +[![Gitter Chat][gitter-badge]][gitter] [![Documentation][docs-badge]][docs] \ +[![Python Package Index][pypi-badge]][pypi] [![Conda Forge][conda-badge]][conda] +PyAV is a Pythonic binding for the [FFmpeg][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 (e.g. Numpy and Pillow). +This power does come with some responsibility as working with media is horrendously complicated and PyAV can't abstract it away or make all the best decisions for you. If the `ffmpeg` command does the job without you bending over backwards, PyAV is likely going to be more of a hindrance than a help. +But where you can't work without it, PyAV is a critical tool. + +%package -n python3-av +Summary: Pythonic bindings for FFmpeg's libraries. +Provides: python-av +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-cffi +BuildRequires: gcc +BuildRequires: gdb +%description -n python3-av +[![GitHub Test Status][github-tests-badge]][github-tests] \ +[![Gitter Chat][gitter-badge]][gitter] [![Documentation][docs-badge]][docs] \ +[![Python Package Index][pypi-badge]][pypi] [![Conda Forge][conda-badge]][conda] +PyAV is a Pythonic binding for the [FFmpeg][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 (e.g. Numpy and Pillow). +This power does come with some responsibility as working with media is horrendously complicated and PyAV can't abstract it away or make all the best decisions for you. If the `ffmpeg` command does the job without you bending over backwards, PyAV is likely going to be more of a hindrance than a help. +But where you can't work without it, PyAV is a critical tool. + +%package help +Summary: Development documents and examples for av +Provides: python3-av-doc +%description help +[![GitHub Test Status][github-tests-badge]][github-tests] \ +[![Gitter Chat][gitter-badge]][gitter] [![Documentation][docs-badge]][docs] \ +[![Python Package Index][pypi-badge]][pypi] [![Conda Forge][conda-badge]][conda] +PyAV is a Pythonic binding for the [FFmpeg][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 (e.g. Numpy and Pillow). +This power does come with some responsibility as working with media is horrendously complicated and PyAV can't abstract it away or make all the best decisions for you. If the `ffmpeg` command does the job without you bending over backwards, PyAV is likely going to be more of a hindrance than a help. +But where you can't work without it, PyAV is a critical tool. + +%prep +%autosetup -n av-10.0.0 + +%build +%py3_build + +%install +%py3_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} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +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}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-av -f filelist.lst +%dir %{python3_sitearch}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 10.0.0-1 +- Package Spec generated @@ -0,0 +1 @@ +b4ddb6692fb16afc34b6b53fd750bd62 av-10.0.0.tar.gz |
