diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-04-11 11:02:05 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-04-11 11:02:05 +0000 |
| commit | 91d609158824e613da2cd9a3f3f344313275b4d3 (patch) | |
| tree | ccf4e39d0abf8a7e9b29178234d892d66f4ab64e | |
| parent | c769984fa6b251f74efc265cd786fa0ce265b7c8 (diff) | |
automatic import of python-pystemmer
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-pystemmer.spec | 126 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 128 insertions, 0 deletions
@@ -0,0 +1 @@ +/PyStemmer-2.2.0.1.tar.gz diff --git a/python-pystemmer.spec b/python-pystemmer.spec new file mode 100644 index 0000000..7370573 --- /dev/null +++ b/python-pystemmer.spec @@ -0,0 +1,126 @@ +%global _empty_manifest_terminate_build 0 +Name: python-PyStemmer +Version: 2.2.0.1 +Release: 1 +Summary: Snowball stemming algorithms, for information retrieval +License: MIT, BSD +URL: https://github.com/snowballstem/pystemmer/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/01/5e/d2db082b8da23972a434aeda9180864f825478b7bf3b5f035c2007e2a0bd/PyStemmer-2.2.0.1.tar.gz +BuildArch: noarch + + +%description +Stemming algorithms + +PyStemmer provides access to efficient algorithms for calculating a +"stemmed" form of a word. This is a form with most of the common +morphological endings removed; hopefully representing a common +linguistic base form. This is most useful in building search engines +and information retrieval software; for example, a search with stemming +enabled should be able to find a document containing "cycling" given the +query "cycles". + +PyStemmer provides algorithms for several (mainly european) languages, +by wrapping the libstemmer library from the Snowball project in a Python +module. + +It also provides access to the classic Porter stemming algorithm for +english: although this has been superseded by an improved algorithm, the +original algorithm may be of interest to information retrieval +researchers wishing to reproduce results of earlier experiments. + + +%package -n python3-PyStemmer +Summary: Snowball stemming algorithms, for information retrieval +Provides: python-PyStemmer +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-PyStemmer +Stemming algorithms + +PyStemmer provides access to efficient algorithms for calculating a +"stemmed" form of a word. This is a form with most of the common +morphological endings removed; hopefully representing a common +linguistic base form. This is most useful in building search engines +and information retrieval software; for example, a search with stemming +enabled should be able to find a document containing "cycling" given the +query "cycles". + +PyStemmer provides algorithms for several (mainly european) languages, +by wrapping the libstemmer library from the Snowball project in a Python +module. + +It also provides access to the classic Porter stemming algorithm for +english: although this has been superseded by an improved algorithm, the +original algorithm may be of interest to information retrieval +researchers wishing to reproduce results of earlier experiments. + + +%package help +Summary: Development documents and examples for PyStemmer +Provides: python3-PyStemmer-doc +%description help +Stemming algorithms + +PyStemmer provides access to efficient algorithms for calculating a +"stemmed" form of a word. This is a form with most of the common +morphological endings removed; hopefully representing a common +linguistic base form. This is most useful in building search engines +and information retrieval software; for example, a search with stemming +enabled should be able to find a document containing "cycling" given the +query "cycles". + +PyStemmer provides algorithms for several (mainly european) languages, +by wrapping the libstemmer library from the Snowball project in a Python +module. + +It also provides access to the classic Porter stemming algorithm for +english: although this has been superseded by an improved algorithm, the +original algorithm may be of interest to information retrieval +researchers wishing to reproduce results of earlier experiments. + + +%prep +%autosetup -n PyStemmer-2.2.0.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 . + +%files -n python3-PyStemmer -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 2.2.0.1-1 +- Package Spec generated @@ -0,0 +1 @@ +d3359dabf9370fcb75770a8c688bdeb5 PyStemmer-2.2.0.1.tar.gz |
