summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-10 20:32:56 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-10 20:32:56 +0000
commit10574063954b60f895b3c98db5da2b9cf93b37bc (patch)
treecb68730a0d8f73b4783ff9ad1bbf3aaa34eaad77
parent0e20ba95fb5c314a79e1d9d5613bce3a0bbf7499 (diff)
automatic import of python-morfessor
-rw-r--r--.gitignore1
-rw-r--r--python-morfessor.spec74
-rw-r--r--sources1
3 files changed, 76 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..a0387fe 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Morfessor-2.0.6.tar.gz
diff --git a/python-morfessor.spec b/python-morfessor.spec
new file mode 100644
index 0000000..957917d
--- /dev/null
+++ b/python-morfessor.spec
@@ -0,0 +1,74 @@
+%global _empty_manifest_terminate_build 0
+Name: python-Morfessor
+Version: 2.0.6
+Release: 1
+Summary: Morfessor
+License: BSD
+URL: http://morpho.aalto.fi
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/af/5e/760a41def80f7e48e4f95937a8de73057871f655c0ec459f7aff3c1f95a2/Morfessor-2.0.6.tar.gz
+BuildArch: noarch
+
+Requires: python3-sphinx
+Requires: python3-sphinxcontrib-napoleon
+
+%description
+
+
+%package -n python3-Morfessor
+Summary: Morfessor
+Provides: python-Morfessor
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-Morfessor
+
+
+%package help
+Summary: Development documents and examples for Morfessor
+Provides: python3-Morfessor-doc
+%description help
+
+
+%prep
+%autosetup -n Morfessor-2.0.6
+
+%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-Morfessor -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 2.0.6-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..2500016
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+6b52a9e4397fb8415bebcbcb2050a864 Morfessor-2.0.6.tar.gz