diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-05 14:05:14 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-05 14:05:14 +0000 |
| commit | a59251461b15bea9c60db163cccc01623135cbd9 (patch) | |
| tree | 050533c4443b0e2f10ad03942d122cf0586552e7 | |
| parent | bda59a0b5dbe4e5c198b4ca6db0aeee5b89215ee (diff) | |
automatic import of python-pyaaf2openeuler20.03
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-pyaaf2.spec | 75 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 77 insertions, 0 deletions
@@ -0,0 +1 @@ +/pyaaf2-1.6.0.tar.gz diff --git a/python-pyaaf2.spec b/python-pyaaf2.spec new file mode 100644 index 0000000..f71d989 --- /dev/null +++ b/python-pyaaf2.spec @@ -0,0 +1,75 @@ +%global _empty_manifest_terminate_build 0 +Name: python-pyaaf2 +Version: 1.6.0 +Release: 1 +Summary: A python module for reading and writing advanced authoring format files +License: MIT +URL: https://github.com/markreidvfx/pyaaf2 +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/c5/65/cd8c6eac8632ba817387d56f112c7a4bbea3760377ea8a8a78ea1b60ecac/pyaaf2-1.6.0.tar.gz +BuildArch: noarch + + +%description +A python module for reading and writing Advanced Authoring Format (AAF) files. +pyaaf2 is a rewrite of `pyaaf1 <https://github.com/markreidvfx/pyaaf>`_ in pure python. + +%package -n python3-pyaaf2 +Summary: A python module for reading and writing advanced authoring format files +Provides: python-pyaaf2 +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-pyaaf2 +A python module for reading and writing Advanced Authoring Format (AAF) files. +pyaaf2 is a rewrite of `pyaaf1 <https://github.com/markreidvfx/pyaaf>`_ in pure python. + +%package help +Summary: Development documents and examples for pyaaf2 +Provides: python3-pyaaf2-doc +%description help +A python module for reading and writing Advanced Authoring Format (AAF) files. +pyaaf2 is a rewrite of `pyaaf1 <https://github.com/markreidvfx/pyaaf>`_ in pure python. + +%prep +%autosetup -n pyaaf2-1.6.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-pyaaf2 -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 1.6.0-1 +- Package Spec generated @@ -0,0 +1 @@ +fcd07353d2e2f1ab0cc3fe726ae57f1f pyaaf2-1.6.0.tar.gz |
