summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-11 15:08:22 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-11 15:08:22 +0000
commitbbf80da59ec67b7edeba135f1cfaf3dbf175001f (patch)
treefc0c1403638cadcbd3e93b1a724d2ec69735bf9c
parentac96ba7d8919269e2e4befacf31185b65df12a8a (diff)
automatic import of python-cmudict
-rw-r--r--.gitignore1
-rw-r--r--python-cmudict.spec293
-rw-r--r--sources1
3 files changed, 295 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..0eb2f71 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/cmudict-1.0.13.tar.gz
diff --git a/python-cmudict.spec b/python-cmudict.spec
new file mode 100644
index 0000000..eae114d
--- /dev/null
+++ b/python-cmudict.spec
@@ -0,0 +1,293 @@
+%global _empty_manifest_terminate_build 0
+Name: python-cmudict
+Version: 1.0.13
+Release: 1
+Summary: A versioned python wrapper package for The CMU Pronouncing Dictionary data files.
+License: GPL-3.0-or-later
+URL: https://github.com/prosegrinder/python-cmudict
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/d6/7d/6ef8a22301c6d8ff3c481cc658b9b2c18a56e7357d87266b1f4ab7ac4d42/cmudict-1.0.13.tar.gz
+BuildArch: noarch
+
+Requires: python3-importlib-resources
+Requires: python3-importlib-metadata
+
+%description
+# CMUdict: Python wrapper for cmudict
+
+[![Latest PyPI version](https://img.shields.io/pypi/v/cmudict.svg)](https://pypi.python.org/pypi/cmudict)
+[![GitHub Workflow Status](https://github.com/prosegrinder/python-cmudict/workflows/Python%20CI/badge.svg?branch=main)](https://github.com/prosegrinder/python-cmudict/actions?query=workflow%3A%22Python+CI%22+branch%3Amain)
+
+CMUdict is a versioned python wrapper package for
+[The CMU Pronouncing Dictionary](https://github.com/cmusphinx/cmudict) data
+files. The main purpose is to expose the data with little or no assumption on
+how it is to be used.
+
+## Installation
+
+`cmudict` is available on PyPI. Simply install it with `pip`:
+
+```bash
+pip install cmudict
+```
+
+## Usage
+
+The cmudict data set includes 4 data files: cmudict.dict, cmudict.phones,
+cmudict.symbols, and cmudict.vp. See
+[The CMU Pronouncing Dictionary](https://github.com/cmusphinx/cmudict) for
+details on the data. Chances are, if you're here, you already know what's in the
+files.
+
+Each file can be accessed through three functions, one which returns the raw
+(string) contents, one which returns a binary stream of the file, and one which
+does minimal processing of the file into an appropriate structure:
+
+```python
+>>> import cmudict
+
+>>> cmudict.dict() # Compatible with NLTK
+>>> cmudict.dict_string()
+>>> cmudict.dict_stream()
+
+>>> cmudict.phones()
+>>> cmudict.phones_string()
+>>> cmudict.phones_stream()
+
+>>> cmudict.symbols()
+>>> cmudict.symbols_string()
+>>> cmudict.symbols_stream()
+
+>>> cmudict.vp()
+>>> cmudict.vp_string()
+>>> cmudict.vp_stream()
+```
+
+Three additional functions are included to maintain compatibility with NLTK:
+cmudict.entries(), cmudict.raw(), and cmudict.words(). See the
+[nltk.corpus.reader.cmudict](http://www.nltk.org/_modules/nltk/corpus/reader/cmudict.html)
+documentation for details:
+
+```python
+>>> cmudict.entries() # Compatible with NLTK
+>>> cmudict.raw() # Compatible with NLTK
+>>> cmudict.words() # Compatible with NTLK
+```
+
+And finally, the license for the cmudict data set is available as well:
+
+```python
+>>> cmudict.license_string() # Returns the cmudict license as a string
+```
+
+## Credits
+
+Built on or modeled after the following open source projects:
+
+- [The CMU Pronouncing Dictionary](https://github.com/cmusphinx/cmudict)
+- [NLTK](https://github.com/nltk/nltk)
+
+
+%package -n python3-cmudict
+Summary: A versioned python wrapper package for The CMU Pronouncing Dictionary data files.
+Provides: python-cmudict
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-cmudict
+# CMUdict: Python wrapper for cmudict
+
+[![Latest PyPI version](https://img.shields.io/pypi/v/cmudict.svg)](https://pypi.python.org/pypi/cmudict)
+[![GitHub Workflow Status](https://github.com/prosegrinder/python-cmudict/workflows/Python%20CI/badge.svg?branch=main)](https://github.com/prosegrinder/python-cmudict/actions?query=workflow%3A%22Python+CI%22+branch%3Amain)
+
+CMUdict is a versioned python wrapper package for
+[The CMU Pronouncing Dictionary](https://github.com/cmusphinx/cmudict) data
+files. The main purpose is to expose the data with little or no assumption on
+how it is to be used.
+
+## Installation
+
+`cmudict` is available on PyPI. Simply install it with `pip`:
+
+```bash
+pip install cmudict
+```
+
+## Usage
+
+The cmudict data set includes 4 data files: cmudict.dict, cmudict.phones,
+cmudict.symbols, and cmudict.vp. See
+[The CMU Pronouncing Dictionary](https://github.com/cmusphinx/cmudict) for
+details on the data. Chances are, if you're here, you already know what's in the
+files.
+
+Each file can be accessed through three functions, one which returns the raw
+(string) contents, one which returns a binary stream of the file, and one which
+does minimal processing of the file into an appropriate structure:
+
+```python
+>>> import cmudict
+
+>>> cmudict.dict() # Compatible with NLTK
+>>> cmudict.dict_string()
+>>> cmudict.dict_stream()
+
+>>> cmudict.phones()
+>>> cmudict.phones_string()
+>>> cmudict.phones_stream()
+
+>>> cmudict.symbols()
+>>> cmudict.symbols_string()
+>>> cmudict.symbols_stream()
+
+>>> cmudict.vp()
+>>> cmudict.vp_string()
+>>> cmudict.vp_stream()
+```
+
+Three additional functions are included to maintain compatibility with NLTK:
+cmudict.entries(), cmudict.raw(), and cmudict.words(). See the
+[nltk.corpus.reader.cmudict](http://www.nltk.org/_modules/nltk/corpus/reader/cmudict.html)
+documentation for details:
+
+```python
+>>> cmudict.entries() # Compatible with NLTK
+>>> cmudict.raw() # Compatible with NLTK
+>>> cmudict.words() # Compatible with NTLK
+```
+
+And finally, the license for the cmudict data set is available as well:
+
+```python
+>>> cmudict.license_string() # Returns the cmudict license as a string
+```
+
+## Credits
+
+Built on or modeled after the following open source projects:
+
+- [The CMU Pronouncing Dictionary](https://github.com/cmusphinx/cmudict)
+- [NLTK](https://github.com/nltk/nltk)
+
+
+%package help
+Summary: Development documents and examples for cmudict
+Provides: python3-cmudict-doc
+%description help
+# CMUdict: Python wrapper for cmudict
+
+[![Latest PyPI version](https://img.shields.io/pypi/v/cmudict.svg)](https://pypi.python.org/pypi/cmudict)
+[![GitHub Workflow Status](https://github.com/prosegrinder/python-cmudict/workflows/Python%20CI/badge.svg?branch=main)](https://github.com/prosegrinder/python-cmudict/actions?query=workflow%3A%22Python+CI%22+branch%3Amain)
+
+CMUdict is a versioned python wrapper package for
+[The CMU Pronouncing Dictionary](https://github.com/cmusphinx/cmudict) data
+files. The main purpose is to expose the data with little or no assumption on
+how it is to be used.
+
+## Installation
+
+`cmudict` is available on PyPI. Simply install it with `pip`:
+
+```bash
+pip install cmudict
+```
+
+## Usage
+
+The cmudict data set includes 4 data files: cmudict.dict, cmudict.phones,
+cmudict.symbols, and cmudict.vp. See
+[The CMU Pronouncing Dictionary](https://github.com/cmusphinx/cmudict) for
+details on the data. Chances are, if you're here, you already know what's in the
+files.
+
+Each file can be accessed through three functions, one which returns the raw
+(string) contents, one which returns a binary stream of the file, and one which
+does minimal processing of the file into an appropriate structure:
+
+```python
+>>> import cmudict
+
+>>> cmudict.dict() # Compatible with NLTK
+>>> cmudict.dict_string()
+>>> cmudict.dict_stream()
+
+>>> cmudict.phones()
+>>> cmudict.phones_string()
+>>> cmudict.phones_stream()
+
+>>> cmudict.symbols()
+>>> cmudict.symbols_string()
+>>> cmudict.symbols_stream()
+
+>>> cmudict.vp()
+>>> cmudict.vp_string()
+>>> cmudict.vp_stream()
+```
+
+Three additional functions are included to maintain compatibility with NLTK:
+cmudict.entries(), cmudict.raw(), and cmudict.words(). See the
+[nltk.corpus.reader.cmudict](http://www.nltk.org/_modules/nltk/corpus/reader/cmudict.html)
+documentation for details:
+
+```python
+>>> cmudict.entries() # Compatible with NLTK
+>>> cmudict.raw() # Compatible with NLTK
+>>> cmudict.words() # Compatible with NTLK
+```
+
+And finally, the license for the cmudict data set is available as well:
+
+```python
+>>> cmudict.license_string() # Returns the cmudict license as a string
+```
+
+## Credits
+
+Built on or modeled after the following open source projects:
+
+- [The CMU Pronouncing Dictionary](https://github.com/cmusphinx/cmudict)
+- [NLTK](https://github.com/nltk/nltk)
+
+
+%prep
+%autosetup -n cmudict-1.0.13
+
+%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-cmudict -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 1.0.13-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..8e96641
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+315d6d594fa02c1295293c3d3d94be1a cmudict-1.0.13.tar.gz