From 10574063954b60f895b3c98db5da2b9cf93b37bc Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Mon, 10 Apr 2023 20:32:56 +0000 Subject: automatic import of python-morfessor --- .gitignore | 1 + python-morfessor.spec | 74 +++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 76 insertions(+) create mode 100644 python-morfessor.spec create mode 100644 sources 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 - 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 -- cgit v1.2.3