summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-29 11:03:58 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-29 11:03:58 +0000
commita934b26afd0dd5f7f4d9376356e2a18c73c20239 (patch)
tree68e9a6932cd55f5452e4695f447ba62fa2482f33
parent8ed6a24394977e901e0ca6c47a62a6611358cdee (diff)
automatic import of python-pypitch
-rw-r--r--.gitignore1
-rw-r--r--python-pypitch.spec208
-rw-r--r--sources1
3 files changed, 210 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..374307a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pypitch-1.3.tar.gz
diff --git a/python-pypitch.spec b/python-pypitch.spec
new file mode 100644
index 0000000..b3f5daf
--- /dev/null
+++ b/python-pypitch.spec
@@ -0,0 +1,208 @@
+%global _empty_manifest_terminate_build 0
+Name: python-pypitch
+Version: 1.3
+Release: 1
+Summary: PyPitch analyses audio streams for pitch
+License: GPLv2+
+URL: https://fofix.org
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/13/83/e6906765c9aeef81a97e6bff42acab1568253e1550d7b61666da98066fc3/pypitch-1.3.tar.gz
+
+Requires: python3-Cython
+Requires: python3-sphinx
+Requires: python3-sphinx-rtd-theme
+Requires: python3-pytest
+Requires: python3-numpy
+Requires: python3-numpy
+Requires: python3-pytest
+Requires: python3-numpy
+
+%description
+# PyPitch
+
+[![Tests](https://github.com/fofix/python-pypitch/workflows/Tests/badge.svg?branch=master)](https://github.com/fofix/python-pypitch/actions?query=workflow:Test)
+[![Build status](https://ci.appveyor.com/api/projects/status/0f6yb99cd37v6li6?svg=true)](https://ci.appveyor.com/project/Linkid/python-pypitch)
+[![Documentation Status](https://readthedocs.org/projects/pypitch/badge/?version=latest)](http://pypitch.readthedocs.io/en/latest/?badge=latest)
+
+
+PyPitch is a C++-extension in Python to analyse audio streams for pitch.
+
+
+## Setup
+
+Build the extension:
+
+ $ python setup.py build_ext --inplace --force
+
+Install it:
+
+ $ python -m pip install .
+
+
+## Usage
+
+Import it:
+
+ from pypitch import pypitch
+
+
+## Doc
+
+To build the html doc from source::
+
+ $ python -m pip install -e .[docs]
+ $ cd doc
+ $ make html
+
+or::
+
+ $ python -m pip install -e .[docs]
+ $ python setup.py build_sphinx
+
+
+
+
+%package -n python3-pypitch
+Summary: PyPitch analyses audio streams for pitch
+Provides: python-pypitch
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+BuildRequires: python3-cffi
+BuildRequires: gcc
+BuildRequires: gdb
+%description -n python3-pypitch
+# PyPitch
+
+[![Tests](https://github.com/fofix/python-pypitch/workflows/Tests/badge.svg?branch=master)](https://github.com/fofix/python-pypitch/actions?query=workflow:Test)
+[![Build status](https://ci.appveyor.com/api/projects/status/0f6yb99cd37v6li6?svg=true)](https://ci.appveyor.com/project/Linkid/python-pypitch)
+[![Documentation Status](https://readthedocs.org/projects/pypitch/badge/?version=latest)](http://pypitch.readthedocs.io/en/latest/?badge=latest)
+
+
+PyPitch is a C++-extension in Python to analyse audio streams for pitch.
+
+
+## Setup
+
+Build the extension:
+
+ $ python setup.py build_ext --inplace --force
+
+Install it:
+
+ $ python -m pip install .
+
+
+## Usage
+
+Import it:
+
+ from pypitch import pypitch
+
+
+## Doc
+
+To build the html doc from source::
+
+ $ python -m pip install -e .[docs]
+ $ cd doc
+ $ make html
+
+or::
+
+ $ python -m pip install -e .[docs]
+ $ python setup.py build_sphinx
+
+
+
+
+%package help
+Summary: Development documents and examples for pypitch
+Provides: python3-pypitch-doc
+%description help
+# PyPitch
+
+[![Tests](https://github.com/fofix/python-pypitch/workflows/Tests/badge.svg?branch=master)](https://github.com/fofix/python-pypitch/actions?query=workflow:Test)
+[![Build status](https://ci.appveyor.com/api/projects/status/0f6yb99cd37v6li6?svg=true)](https://ci.appveyor.com/project/Linkid/python-pypitch)
+[![Documentation Status](https://readthedocs.org/projects/pypitch/badge/?version=latest)](http://pypitch.readthedocs.io/en/latest/?badge=latest)
+
+
+PyPitch is a C++-extension in Python to analyse audio streams for pitch.
+
+
+## Setup
+
+Build the extension:
+
+ $ python setup.py build_ext --inplace --force
+
+Install it:
+
+ $ python -m pip install .
+
+
+## Usage
+
+Import it:
+
+ from pypitch import pypitch
+
+
+## Doc
+
+To build the html doc from source::
+
+ $ python -m pip install -e .[docs]
+ $ cd doc
+ $ make html
+
+or::
+
+ $ python -m pip install -e .[docs]
+ $ python setup.py build_sphinx
+
+
+
+
+%prep
+%autosetup -n pypitch-1.3
+
+%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-pypitch -f filelist.lst
+%dir %{python3_sitearch}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon May 29 2023 Python_Bot <Python_Bot@openeuler.org> - 1.3-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..55d78b2
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+447d089b4a4145838632a24340b0866d pypitch-1.3.tar.gz