diff options
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-ha-av.spec | 134 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 136 insertions, 0 deletions
@@ -0,0 +1 @@ +/ha-av-10.0.1.tar.gz diff --git a/python-ha-av.spec b/python-ha-av.spec new file mode 100644 index 0000000..1639ae8 --- /dev/null +++ b/python-ha-av.spec @@ -0,0 +1,134 @@ +%global _empty_manifest_terminate_build 0 +Name: python-ha-av +Version: 10.0.1 +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/3e/63/b345152d0be8098caddb045480398d374f3f7d1c6f2926da49bce0823a74/ha-av-10.0.1.tar.gz + + +%description +# ha-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] + +ha-av is a fork of [PyAV][pyav] which is used for providing hotfixes for or troubleshooting issues with PyAV in Home Assistant. + +[conda-badge]: https://img.shields.io/conda/vn/conda-forge/av.svg?colorB=CCB39A +[conda]: https://anaconda.org/conda-forge/av +[docs-badge]: https://img.shields.io/badge/docs-on%20pyav.org-blue.svg +[docs]: http://pyav.org/docs +[gitter-badge]: https://img.shields.io/gitter/room/nwjs/nw.js.svg?logo=gitter&colorB=cc2b5e +[gitter]: https://gitter.im/PyAV-Org +[pypi-badge]: https://img.shields.io/pypi/v/av.svg?colorB=CCB39A +[pypi]: https://pypi.org/project/av +[github-tests-badge]: https://github.com/PyAV-Org/PyAV/workflows/tests/badge.svg +[github-tests]: https://github.com/PyAV-Org/PyAV/actions?workflow=tests +[github]: https://github.com/PyAV-Org/PyAV +[pyav]: https://pypi.org/project/av/ + + +%package -n python3-ha-av +Summary: Pythonic bindings for FFmpeg's libraries. +Provides: python-ha-av +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-cffi +BuildRequires: gcc +BuildRequires: gdb +%description -n python3-ha-av +# ha-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] + +ha-av is a fork of [PyAV][pyav] which is used for providing hotfixes for or troubleshooting issues with PyAV in Home Assistant. + +[conda-badge]: https://img.shields.io/conda/vn/conda-forge/av.svg?colorB=CCB39A +[conda]: https://anaconda.org/conda-forge/av +[docs-badge]: https://img.shields.io/badge/docs-on%20pyav.org-blue.svg +[docs]: http://pyav.org/docs +[gitter-badge]: https://img.shields.io/gitter/room/nwjs/nw.js.svg?logo=gitter&colorB=cc2b5e +[gitter]: https://gitter.im/PyAV-Org +[pypi-badge]: https://img.shields.io/pypi/v/av.svg?colorB=CCB39A +[pypi]: https://pypi.org/project/av +[github-tests-badge]: https://github.com/PyAV-Org/PyAV/workflows/tests/badge.svg +[github-tests]: https://github.com/PyAV-Org/PyAV/actions?workflow=tests +[github]: https://github.com/PyAV-Org/PyAV +[pyav]: https://pypi.org/project/av/ + + +%package help +Summary: Development documents and examples for ha-av +Provides: python3-ha-av-doc +%description help +# ha-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] + +ha-av is a fork of [PyAV][pyav] which is used for providing hotfixes for or troubleshooting issues with PyAV in Home Assistant. + +[conda-badge]: https://img.shields.io/conda/vn/conda-forge/av.svg?colorB=CCB39A +[conda]: https://anaconda.org/conda-forge/av +[docs-badge]: https://img.shields.io/badge/docs-on%20pyav.org-blue.svg +[docs]: http://pyav.org/docs +[gitter-badge]: https://img.shields.io/gitter/room/nwjs/nw.js.svg?logo=gitter&colorB=cc2b5e +[gitter]: https://gitter.im/PyAV-Org +[pypi-badge]: https://img.shields.io/pypi/v/av.svg?colorB=CCB39A +[pypi]: https://pypi.org/project/av +[github-tests-badge]: https://github.com/PyAV-Org/PyAV/workflows/tests/badge.svg +[github-tests]: https://github.com/PyAV-Org/PyAV/actions?workflow=tests +[github]: https://github.com/PyAV-Org/PyAV +[pyav]: https://pypi.org/project/av/ + + +%prep +%autosetup -n ha-av-10.0.1 + +%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-ha-av -f filelist.lst +%dir %{python3_sitearch}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon May 15 2023 Python_Bot <Python_Bot@openeuler.org> - 10.0.1-1 +- Package Spec generated @@ -0,0 +1 @@ +fc239f22756a71b13b1b05c4812233a8 ha-av-10.0.1.tar.gz |
