diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-31 04:05:31 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-31 04:05:31 +0000 |
commit | 87a2ca6473ab2c681d2bd1803470c5f9853bcbb0 (patch) | |
tree | 71dec3dbaea1bb84fa7db105569225e08dd89bfb | |
parent | 3b40b2bc5d03dc1bd89c679a526db998b7ab0a4d (diff) |
automatic import of python-sknlp
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-sknlp.spec | 81 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 83 insertions, 0 deletions
@@ -0,0 +1 @@ +/sknlp-0.5.0.tar.gz diff --git a/python-sknlp.spec b/python-sknlp.spec new file mode 100644 index 0000000..782425f --- /dev/null +++ b/python-sknlp.spec @@ -0,0 +1,81 @@ +%global _empty_manifest_terminate_build 0 +Name: python-sknlp +Version: 0.5.0 +Release: 1 +Summary: please add a summary manually as the author left a blank one +License: MIT +URL: https://pypi.org/project/sknlp/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/96/f7/ae80120018969f2e041ca8a683c1f56cd77b24124a914969dd26c7014ed3/sknlp-0.5.0.tar.gz +BuildArch: noarch + +Requires: python3-tabulate +Requires: python3-pandas +Requires: python3-tensorflow +Requires: python3-tensorflow-addons +Requires: python3-jieba +Requires: python3-scikit-learn +Requires: python3-keras-tuner +Requires: python3-igraph +Requires: python3-tensorflow-text + +%description + + +%package -n python3-sknlp +Summary: please add a summary manually as the author left a blank one +Provides: python-sknlp +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-sknlp + + +%package help +Summary: Development documents and examples for sknlp +Provides: python3-sknlp-doc +%description help + + +%prep +%autosetup -n sknlp-0.5.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-sknlp -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 31 2023 Python_Bot <Python_Bot@openeuler.org> - 0.5.0-1 +- Package Spec generated @@ -0,0 +1 @@ +f132f3e109a15afec53d70d488edcf32 sknlp-0.5.0.tar.gz |