summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-07 09:52:00 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-07 09:52:00 +0000
commit481e81e1ed29ab006d8e900e8bd8181ea14d376f (patch)
tree84e2eca6fb27c2792e6af56cf263310fd3610db4
parentc1568bc84f6fa2a1a15fd5817cce1d7852623ee5 (diff)
automatic import of python-pyphen
-rw-r--r--.gitignore1
-rw-r--r--python-pyphen.spec167
-rw-r--r--sources1
3 files changed, 169 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..9ffacf1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pyphen-0.14.0.tar.gz
diff --git a/python-pyphen.spec b/python-pyphen.spec
new file mode 100644
index 0000000..b6870ce
--- /dev/null
+++ b/python-pyphen.spec
@@ -0,0 +1,167 @@
+%global _empty_manifest_terminate_build 0
+Name: python-pyphen
+Version: 0.14.0
+Release: 1
+Summary: Pure Python module to hyphenate text
+License: None
+URL: https://www.courtbouillon.org/pyphen
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/4b/52/46b119f94b3f68e4193ada36941606d8e26852b67bb6e099b0e310540b41/pyphen-0.14.0.tar.gz
+BuildArch: noarch
+
+Requires: python3-sphinx
+Requires: python3-sphinx_rtd_theme
+Requires: python3-pytest
+Requires: python3-isort
+Requires: python3-flake8
+
+%description
+Pyphen is a pure Python module to hyphenate text using existing Hunspell
+hyphenation dictionaries.
+
+This module is a fork of python-hyphenator, written by Wilbert Berendsen.
+
+Many dictionaries are included in pyphen, they come from the LibreOffice git
+repository and are distributed under GPL, LGPL and/or MPL. Dictionaries are not
+modified in this repository. See the dictionaries and LibreOffice's repository
+for more details.
+
+https://cgit.freedesktop.org/libreoffice/dictionaries/tree/
+
+* Free software: GPL 2.0+/LGPL 2.1+/MPL 1.1 tri-license
+* For Python 3.7+, tested on CPython and PyPy
+* Documentation: https://doc.courtbouillon.org/pyphen
+* Changelog: https://github.com/Kozea/pyphen/releases
+* Code, issues, tests: https://github.com/Kozea/pyphen
+* Code of conduct: https://www.courtbouillon.org/code-of-conduct
+* Professional support: https://www.courtbouillon.org
+* Donation: https://opencollective.com/courtbouillon
+
+Pyphen has been created and developed by Kozea (https://kozea.fr).
+Professional support, maintenance and community management is provided by
+CourtBouillon (https://www.courtbouillon.org).
+
+Copyrights are retained by their contributors, no copyright assignment is
+required to contribute to Pyphen. Unless explicitly stated otherwise, any
+contribution intentionally submitted for inclusion is licensed under
+GPL 2.0+/LGPL 2.1+/MPL 1.1, without any additional terms or conditions. For
+full authorship information, see the version control history.
+
+
+%package -n python3-pyphen
+Summary: Pure Python module to hyphenate text
+Provides: python-pyphen
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-pyphen
+Pyphen is a pure Python module to hyphenate text using existing Hunspell
+hyphenation dictionaries.
+
+This module is a fork of python-hyphenator, written by Wilbert Berendsen.
+
+Many dictionaries are included in pyphen, they come from the LibreOffice git
+repository and are distributed under GPL, LGPL and/or MPL. Dictionaries are not
+modified in this repository. See the dictionaries and LibreOffice's repository
+for more details.
+
+https://cgit.freedesktop.org/libreoffice/dictionaries/tree/
+
+* Free software: GPL 2.0+/LGPL 2.1+/MPL 1.1 tri-license
+* For Python 3.7+, tested on CPython and PyPy
+* Documentation: https://doc.courtbouillon.org/pyphen
+* Changelog: https://github.com/Kozea/pyphen/releases
+* Code, issues, tests: https://github.com/Kozea/pyphen
+* Code of conduct: https://www.courtbouillon.org/code-of-conduct
+* Professional support: https://www.courtbouillon.org
+* Donation: https://opencollective.com/courtbouillon
+
+Pyphen has been created and developed by Kozea (https://kozea.fr).
+Professional support, maintenance and community management is provided by
+CourtBouillon (https://www.courtbouillon.org).
+
+Copyrights are retained by their contributors, no copyright assignment is
+required to contribute to Pyphen. Unless explicitly stated otherwise, any
+contribution intentionally submitted for inclusion is licensed under
+GPL 2.0+/LGPL 2.1+/MPL 1.1, without any additional terms or conditions. For
+full authorship information, see the version control history.
+
+
+%package help
+Summary: Development documents and examples for pyphen
+Provides: python3-pyphen-doc
+%description help
+Pyphen is a pure Python module to hyphenate text using existing Hunspell
+hyphenation dictionaries.
+
+This module is a fork of python-hyphenator, written by Wilbert Berendsen.
+
+Many dictionaries are included in pyphen, they come from the LibreOffice git
+repository and are distributed under GPL, LGPL and/or MPL. Dictionaries are not
+modified in this repository. See the dictionaries and LibreOffice's repository
+for more details.
+
+https://cgit.freedesktop.org/libreoffice/dictionaries/tree/
+
+* Free software: GPL 2.0+/LGPL 2.1+/MPL 1.1 tri-license
+* For Python 3.7+, tested on CPython and PyPy
+* Documentation: https://doc.courtbouillon.org/pyphen
+* Changelog: https://github.com/Kozea/pyphen/releases
+* Code, issues, tests: https://github.com/Kozea/pyphen
+* Code of conduct: https://www.courtbouillon.org/code-of-conduct
+* Professional support: https://www.courtbouillon.org
+* Donation: https://opencollective.com/courtbouillon
+
+Pyphen has been created and developed by Kozea (https://kozea.fr).
+Professional support, maintenance and community management is provided by
+CourtBouillon (https://www.courtbouillon.org).
+
+Copyrights are retained by their contributors, no copyright assignment is
+required to contribute to Pyphen. Unless explicitly stated otherwise, any
+contribution intentionally submitted for inclusion is licensed under
+GPL 2.0+/LGPL 2.1+/MPL 1.1, without any additional terms or conditions. For
+full authorship information, see the version control history.
+
+
+%prep
+%autosetup -n pyphen-0.14.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-pyphen -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Fri Apr 07 2023 Python_Bot <Python_Bot@openeuler.org> - 0.14.0-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..b8aa8a5
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+19e799bbf459ac675698c37c5fae34a8 pyphen-0.14.0.tar.gz