diff options
Diffstat (limited to 'python-pysptk.spec')
| -rw-r--r-- | python-pysptk.spec | 213 |
1 files changed, 213 insertions, 0 deletions
diff --git a/python-pysptk.spec b/python-pysptk.spec new file mode 100644 index 0000000..11a70da --- /dev/null +++ b/python-pysptk.spec @@ -0,0 +1,213 @@ +%global _empty_manifest_terminate_build 0 +Name: python-pysptk +Version: 0.2.0 +Release: 1 +Summary: A python wrapper for Speech Signal Processing Toolkit (SPTK) +License: MIT +URL: https://github.com/r9y9/pysptk +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/c7/40/9726efba15bd89a216e036aa51167ccce5d0ff517df830d9067c204d81d1/pysptk-0.2.0.tar.gz +BuildArch: noarch + + +%description +# pysptk + +[](https://pypi.python.org/pypi/pysptk) +[](https://github.com/r9y9/pysptk/actions/workflows/ci.yaml) +[](https://app.travis-ci.com/r9y9/pysptk) +[](https://coveralls.io/github/r9y9/pysptk?branch=master) +[](https://readthedocs.org/projects/pysptk/?badge=latest) +[](LICENSE.md) +[![][docs-stable-img]][docs-stable-url] +[![][docs-latest-img]][docs-latest-url] +[](https://zenodo.org/badge/latestdoi/41618046) + +A python wrapper for [Speech Signal Processing Toolkit (SPTK)](http://sp-tk.sourceforge.net/). + +**NOTE**: pysptk is based on a modified version of SPTK ([r9y9/SPTK](https://github.com/r9y9/SPTK)). + +## Documentation + +- [**STABLE**][docs-stable-url] — **most recently tagged version of the documentation.** +- [**LATEST**][docs-latest-url] — *in-development version of the documentation.* + +## Demonstration notebook + +- [Introduction notebook](http://nbviewer.ipython.org/github/r9y9/pysptk/blob/master/examples/pysptk%20introduction.ipynb): a brief introduction to pysptk +- [Speech analysis and re-synthesis](http://nbviewer.ipython.org/github/r9y9/pysptk/blob/master/examples/Speech%20analysis%20and%20re-synthesis.ipynb): a demonstration notebook for speech analysis and re-synthesis. Synthesized audio examples (English) are available on the notebook. + +## Installation + +The latest release is availabe on pypi and you can install it by: + +```bash +pip install pysptk +``` + +If yout want the latest master, run + +```bash +pip install git+https://github.com/r9y9/pysptk +``` + +or clone the repository and then build it yourself. + +[docs-latest-img]: https://img.shields.io/badge/docs-latest-blue.svg +[docs-latest-url]: https://pysptk.readthedocs.io/en/latest/ + +[docs-stable-img]: https://img.shields.io/badge/docs-stable-blue.svg +[docs-stable-url]: https://pysptk.readthedocs.io/en/stable/ + + +%package -n python3-pysptk +Summary: A python wrapper for Speech Signal Processing Toolkit (SPTK) +Provides: python-pysptk +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-pysptk +# pysptk + +[](https://pypi.python.org/pypi/pysptk) +[](https://github.com/r9y9/pysptk/actions/workflows/ci.yaml) +[](https://app.travis-ci.com/r9y9/pysptk) +[](https://coveralls.io/github/r9y9/pysptk?branch=master) +[](https://readthedocs.org/projects/pysptk/?badge=latest) +[](LICENSE.md) +[![][docs-stable-img]][docs-stable-url] +[![][docs-latest-img]][docs-latest-url] +[](https://zenodo.org/badge/latestdoi/41618046) + +A python wrapper for [Speech Signal Processing Toolkit (SPTK)](http://sp-tk.sourceforge.net/). + +**NOTE**: pysptk is based on a modified version of SPTK ([r9y9/SPTK](https://github.com/r9y9/SPTK)). + +## Documentation + +- [**STABLE**][docs-stable-url] — **most recently tagged version of the documentation.** +- [**LATEST**][docs-latest-url] — *in-development version of the documentation.* + +## Demonstration notebook + +- [Introduction notebook](http://nbviewer.ipython.org/github/r9y9/pysptk/blob/master/examples/pysptk%20introduction.ipynb): a brief introduction to pysptk +- [Speech analysis and re-synthesis](http://nbviewer.ipython.org/github/r9y9/pysptk/blob/master/examples/Speech%20analysis%20and%20re-synthesis.ipynb): a demonstration notebook for speech analysis and re-synthesis. Synthesized audio examples (English) are available on the notebook. + +## Installation + +The latest release is availabe on pypi and you can install it by: + +```bash +pip install pysptk +``` + +If yout want the latest master, run + +```bash +pip install git+https://github.com/r9y9/pysptk +``` + +or clone the repository and then build it yourself. + +[docs-latest-img]: https://img.shields.io/badge/docs-latest-blue.svg +[docs-latest-url]: https://pysptk.readthedocs.io/en/latest/ + +[docs-stable-img]: https://img.shields.io/badge/docs-stable-blue.svg +[docs-stable-url]: https://pysptk.readthedocs.io/en/stable/ + + +%package help +Summary: Development documents and examples for pysptk +Provides: python3-pysptk-doc +%description help +# pysptk + +[](https://pypi.python.org/pypi/pysptk) +[](https://github.com/r9y9/pysptk/actions/workflows/ci.yaml) +[](https://app.travis-ci.com/r9y9/pysptk) +[](https://coveralls.io/github/r9y9/pysptk?branch=master) +[](https://readthedocs.org/projects/pysptk/?badge=latest) +[](LICENSE.md) +[![][docs-stable-img]][docs-stable-url] +[![][docs-latest-img]][docs-latest-url] +[](https://zenodo.org/badge/latestdoi/41618046) + +A python wrapper for [Speech Signal Processing Toolkit (SPTK)](http://sp-tk.sourceforge.net/). + +**NOTE**: pysptk is based on a modified version of SPTK ([r9y9/SPTK](https://github.com/r9y9/SPTK)). + +## Documentation + +- [**STABLE**][docs-stable-url] — **most recently tagged version of the documentation.** +- [**LATEST**][docs-latest-url] — *in-development version of the documentation.* + +## Demonstration notebook + +- [Introduction notebook](http://nbviewer.ipython.org/github/r9y9/pysptk/blob/master/examples/pysptk%20introduction.ipynb): a brief introduction to pysptk +- [Speech analysis and re-synthesis](http://nbviewer.ipython.org/github/r9y9/pysptk/blob/master/examples/Speech%20analysis%20and%20re-synthesis.ipynb): a demonstration notebook for speech analysis and re-synthesis. Synthesized audio examples (English) are available on the notebook. + +## Installation + +The latest release is availabe on pypi and you can install it by: + +```bash +pip install pysptk +``` + +If yout want the latest master, run + +```bash +pip install git+https://github.com/r9y9/pysptk +``` + +or clone the repository and then build it yourself. + +[docs-latest-img]: https://img.shields.io/badge/docs-latest-blue.svg +[docs-latest-url]: https://pysptk.readthedocs.io/en/latest/ + +[docs-stable-img]: https://img.shields.io/badge/docs-stable-blue.svg +[docs-stable-url]: https://pysptk.readthedocs.io/en/stable/ + + +%prep +%autosetup -n pysptk-0.2.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-pysptk -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 0.2.0-1 +- Package Spec generated |
