diff --git a/librosa-0.8.1.tar.gz b/librosa-0.8.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..ec7113c671b3bf030b1357732a44a8ea149688fc Binary files /dev/null and b/librosa-0.8.1.tar.gz differ diff --git a/python-librosa.spec b/python-librosa.spec new file mode 100644 index 0000000000000000000000000000000000000000..ea9f9d1f2d79d5994ba6310e51a9c9fc18e4648e --- /dev/null +++ b/python-librosa.spec @@ -0,0 +1,119 @@ +%global _empty_manifest_terminate_build 0 +Name: python-librosa +Version: 0.8.1 +Release: 1 +Summary: Python module for audio and music processing +License: ISC +URL: https://librosa.org +Source0: https://files.pythonhosted.org/packages/83/e2/e5f0c986085f2b148962e4d5b2a7aafbba0f0f11bd6cf24e405fb63a5287/librosa-0.8.1.tar.gz +BuildArch: noarch + +Requires: python3-audioread +Requires: python3-numpy +Requires: python3-scipy +Requires: python3-scikit-learn +Requires: python3-joblib +Requires: python3-decorator +Requires: python3-resampy +Requires: python3-numba +Requires: python3-soundfile +Requires: python3-pooch +Requires: python3-packaging +Requires: python3-matplotlib +Requires: python3-numpydoc +Requires: python3-sphinx +Requires: python3-sphinx-rtd-theme +Requires: python3-numba +Requires: python3-matplotlib +Requires: python3-sphinx-multiversion +Requires: python3-sphinx-gallery +Requires: python3-spinxcontrib-svg2pdfconverter +Requires: python3-presets +Requires: python3-matplotlib +Requires: python3-pytest-mpl +Requires: python3-pytest-cov +Requires: python3-pytest +Requires: python3-contextlib2 +Requires: python3-samplerate +Requires: python3-soxr + +%description +A python package for music and audio analysis. +[![PyPI](https://img.shields.io/pypi/v/librosa.svg)](https://pypi.python.org/pypi/librosa) +[![Anaconda-Server Badge](https://anaconda.org/conda-forge/librosa/badges/version.svg)](https://anaconda.org/conda-forge/librosa) +[![License](https://img.shields.io/pypi/l/librosa.svg)](https://github.com/librosa/librosa/blob/main/LICENSE.md) +[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.591533.svg)](https://doi.org/10.5281/zenodo.591533) +[![CI](https://github.com/librosa/librosa/actions/workflows/ci.yml/badge.svg)](https://github.com/librosa/librosa/actions/workflows/ci.yml) +[![codecov](https://codecov.io/gh/librosa/librosa/branch/main/graph/badge.svg?token=ULWnUHaIJC)](https://codecov.io/gh/librosa/librosa) + +%package -n python3-librosa +Summary: Python module for audio and music processing +Provides: python-librosa +BuildRequires: python3-devel +BuildRequires: python3-setuptools +%description -n python3-librosa +A python package for music and audio analysis. +[![PyPI](https://img.shields.io/pypi/v/librosa.svg)](https://pypi.python.org/pypi/librosa) +[![Anaconda-Server Badge](https://anaconda.org/conda-forge/librosa/badges/version.svg)](https://anaconda.org/conda-forge/librosa) +[![License](https://img.shields.io/pypi/l/librosa.svg)](https://github.com/librosa/librosa/blob/main/LICENSE.md) +[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.591533.svg)](https://doi.org/10.5281/zenodo.591533) +[![CI](https://github.com/librosa/librosa/actions/workflows/ci.yml/badge.svg)](https://github.com/librosa/librosa/actions/workflows/ci.yml) +[![codecov](https://codecov.io/gh/librosa/librosa/branch/main/graph/badge.svg?token=ULWnUHaIJC)](https://codecov.io/gh/librosa/librosa) + +%package help +Summary: Development documents and examples for librosa +Provides: python3-librosa-doc +%description help +A python package for music and audio analysis. +[![PyPI](https://img.shields.io/pypi/v/librosa.svg)](https://pypi.python.org/pypi/librosa) +[![Anaconda-Server Badge](https://anaconda.org/conda-forge/librosa/badges/version.svg)](https://anaconda.org/conda-forge/librosa) +[![License](https://img.shields.io/pypi/l/librosa.svg)](https://github.com/librosa/librosa/blob/main/LICENSE.md) +[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.591533.svg)](https://doi.org/10.5281/zenodo.591533) +[![CI](https://github.com/librosa/librosa/actions/workflows/ci.yml/badge.svg)](https://github.com/librosa/librosa/actions/workflows/ci.yml) +[![codecov](https://codecov.io/gh/librosa/librosa/branch/main/graph/badge.svg?token=ULWnUHaIJC)](https://codecov.io/gh/librosa/librosa) + +%prep +%autosetup -n librosa-0.8.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 . +sed -i 's/\(^.*$\)/"\1"/g' filelist.lst doclist.lst +find %{buildroot} -type f -exec file {} ';' | grep "\" | awk -F ':' '{print $1}' | xargs -i chrpath --delete "{}" + +%files -n python3-librosa -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri Dec 10 2021 yinzehao - 0.8.1-1 +- Package Spec generated