diff --git a/audioread-2.1.8.tar.gz b/audioread-2.1.8.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..e0c9576f6afe7b39e502b66afdf8d8c273454a56 Binary files /dev/null and b/audioread-2.1.8.tar.gz differ diff --git a/python-audioread.spec b/python-audioread.spec new file mode 100644 index 0000000000000000000000000000000000000000..dba1e323ff6d84adb41cbc643b03528b8fe84f8a --- /dev/null +++ b/python-audioread.spec @@ -0,0 +1,78 @@ +%global _empty_manifest_terminate_build 0 +Name: python-audioread +Version: 2.1.8 +Release: 1 +Summary: multi-library, cross-platform audio decoding +License: MIT +URL: https://github.com/sampsyo/audioread +Source0: https://files.pythonhosted.org/packages/2e/0b/940ea7861e0e9049f09dcfd72a90c9ae55f697c17c299a323f0148f913d2/audioread-2.1.8.tar.gz +BuildArch: noarch + + +%description +Decode audio files using whichever backend is available. The library +currently supports: +- `Gstreamer`_ via `PyGObject`_. +- `Core Audio`_ on Mac OS X via `ctypes`_. (PyObjC not required.) +- `MAD`_ via the `pymad`_ bindings. +- `FFmpeg`_ or `Libav`_ via its command-line interface. +- The standard library `wave`_, `aifc`_, and `sunau`_ modules (for + uncompressed audio formats). + +%package -n python3-audioread +Summary: multi-library, cross-platform audio decoding +Provides: python-audioread +BuildRequires: python3-devel +BuildRequires: python3-setuptools +%description -n python3-audioread +Decode audio files using whichever backend is available. + +%package help +Summary: Development documents and examples for audioread +Provides: python3-audioread-doc +%description help +Decode audio files using whichever backend is available. + +%prep +%autosetup -n audioread-2.1.8 + +%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-audioread -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Sat Jul 18 2020 Python_Bot +- Package Spec generated