summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--python-pyknp.spec145
-rw-r--r--sources1
3 files changed, 147 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..03aba71 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pyknp-0.6.1.tar.gz
diff --git a/python-pyknp.spec b/python-pyknp.spec
new file mode 100644
index 0000000..0b8931b
--- /dev/null
+++ b/python-pyknp.spec
@@ -0,0 +1,145 @@
+%global _empty_manifest_terminate_build 0
+Name: python-pyknp
+Version: 0.6.1
+Release: 1
+Summary: Python module for JUMAN/KNP
+License: See COPYING
+URL: https://github.com/ku-nlp/pyknp
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/b0/84/29f5b0736e7377cf7060a8118e58dcc63349be50dffaea974e1cabaa4177/pyknp-0.6.1.tar.gz
+BuildArch: noarch
+
+Requires: python3-six
+
+%description
+# pyknp: Python Module for JUMAN++/KNP
+
+形態素解析器JUMAN++(JUMAN)と構文解析器KNPのPythonバインディング (Python2系と3系の両方に対応)。
+
+## Requirements
+- Python
+ - Verified Versions: 2.7.15, 3.7.11
+- 形態素解析器 [JUMAN++](http://nlp.ist.i.kyoto-u.ac.jp/index.php?JUMAN++) [[EN](http://nlp.ist.i.kyoto-u.ac.jp/EN/index.php?JUMAN++)]
+(or [JUMAN](http://nlp.ist.i.kyoto-u.ac.jp/index.php?JUMAN)[[EN](http://nlp.ist.i.kyoto-u.ac.jp/EN/index.php?JUMAN)])
+ - JUMAN++ はJUMANの後継にあたる形態素解析器
+- 構文解析器 [KNP](http://nlp.ist.i.kyoto-u.ac.jp/index.php?KNP) [[EN](http://nlp.ist.i.kyoto-u.ac.jp/EN/index.php?KNP)]
+
+## Installation
+```
+$ pip install pyknp
+```
+
+## Documents
+https://pyknp.readthedocs.io/en/latest/
+
+
+## Authors/Contact
+京都大学 黒橋・河原研究室 (contact@nlp.ist.i.kyoto-u.ac.jp)
+- John Richardson, Tomohide Shibata, Yuta Hayashibe, Tomohiro Sakaguchi
+
+
+%package -n python3-pyknp
+Summary: Python module for JUMAN/KNP
+Provides: python-pyknp
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-pyknp
+# pyknp: Python Module for JUMAN++/KNP
+
+形態素解析器JUMAN++(JUMAN)と構文解析器KNPのPythonバインディング (Python2系と3系の両方に対応)。
+
+## Requirements
+- Python
+ - Verified Versions: 2.7.15, 3.7.11
+- 形態素解析器 [JUMAN++](http://nlp.ist.i.kyoto-u.ac.jp/index.php?JUMAN++) [[EN](http://nlp.ist.i.kyoto-u.ac.jp/EN/index.php?JUMAN++)]
+(or [JUMAN](http://nlp.ist.i.kyoto-u.ac.jp/index.php?JUMAN)[[EN](http://nlp.ist.i.kyoto-u.ac.jp/EN/index.php?JUMAN)])
+ - JUMAN++ はJUMANの後継にあたる形態素解析器
+- 構文解析器 [KNP](http://nlp.ist.i.kyoto-u.ac.jp/index.php?KNP) [[EN](http://nlp.ist.i.kyoto-u.ac.jp/EN/index.php?KNP)]
+
+## Installation
+```
+$ pip install pyknp
+```
+
+## Documents
+https://pyknp.readthedocs.io/en/latest/
+
+
+## Authors/Contact
+京都大学 黒橋・河原研究室 (contact@nlp.ist.i.kyoto-u.ac.jp)
+- John Richardson, Tomohide Shibata, Yuta Hayashibe, Tomohiro Sakaguchi
+
+
+%package help
+Summary: Development documents and examples for pyknp
+Provides: python3-pyknp-doc
+%description help
+# pyknp: Python Module for JUMAN++/KNP
+
+形態素解析器JUMAN++(JUMAN)と構文解析器KNPのPythonバインディング (Python2系と3系の両方に対応)。
+
+## Requirements
+- Python
+ - Verified Versions: 2.7.15, 3.7.11
+- 形態素解析器 [JUMAN++](http://nlp.ist.i.kyoto-u.ac.jp/index.php?JUMAN++) [[EN](http://nlp.ist.i.kyoto-u.ac.jp/EN/index.php?JUMAN++)]
+(or [JUMAN](http://nlp.ist.i.kyoto-u.ac.jp/index.php?JUMAN)[[EN](http://nlp.ist.i.kyoto-u.ac.jp/EN/index.php?JUMAN)])
+ - JUMAN++ はJUMANの後継にあたる形態素解析器
+- 構文解析器 [KNP](http://nlp.ist.i.kyoto-u.ac.jp/index.php?KNP) [[EN](http://nlp.ist.i.kyoto-u.ac.jp/EN/index.php?KNP)]
+
+## Installation
+```
+$ pip install pyknp
+```
+
+## Documents
+https://pyknp.readthedocs.io/en/latest/
+
+
+## Authors/Contact
+京都大学 黒橋・河原研究室 (contact@nlp.ist.i.kyoto-u.ac.jp)
+- John Richardson, Tomohide Shibata, Yuta Hayashibe, Tomohiro Sakaguchi
+
+
+%prep
+%autosetup -n pyknp-0.6.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-pyknp -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 0.6.1-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..44a7783
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+1f11ba52891672ec127375265d378431 pyknp-0.6.1.tar.gz