diff options
author | CoprDistGit <infra@openeuler.org> | 2023-06-20 06:24:20 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-06-20 06:24:20 +0000 |
commit | 1fd2f74ff5868241453ef86610abec690f56484c (patch) | |
tree | fe83b76b05c5ddda8d0ab2f4822034384f59526c | |
parent | 4f291e5631b73b934321f38559cfa6d2b57e8a15 (diff) |
automatic import of python-ssmtoolopeneuler20.03
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-ssmtool.spec | 249 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 251 insertions, 0 deletions
@@ -0,0 +1 @@ +/ssmtool-0.6.4.tar.gz diff --git a/python-ssmtool.spec b/python-ssmtool.spec new file mode 100644 index 0000000..1fae746 --- /dev/null +++ b/python-ssmtool.spec @@ -0,0 +1,249 @@ +%global _empty_manifest_terminate_build 0 +Name: python-ssmtool +Version: 0.6.4 +Release: 1 +Summary: A simple, effective sentence mining tool. +License: GNU General Public License v3 (GPLv3) +URL: https://github.com/FreeLanguageTools/ssmtool +Source0: https://mirrors.aliyun.com/pypi/web/packages/59/6e/2e24dd7e5fbef6c32940fa9892175814fe9306f3829f5b830875828fe254/ssmtool-0.6.4.tar.gz +BuildArch: noarch + +Requires: python3-lxml +Requires: python3-PyQt5 +Requires: python3-requests +Requires: python3-beautifulsoup4 +Requires: python3-simplemma +Requires: python3-pystardict +Requires: python3-bidict +Requires: python3-flask +Requires: python3-flask-sqlalchemy +Requires: python3-charset-normalizer +Requires: python3-slpp +Requires: python3-mobi +Requires: python3-sentence-splitter +Requires: python3-pymorphy2 +Requires: python3-pymorphy2-dicts +Requires: python3-pymorphy2-dicts-ru +Requires: python3-playsound +Requires: python3-ebooklib + +%description +# Simple Sentence Mining + + +[](https://pepy.tech/project/ssmtool) + +[Join our chat on Matrix](https://webchat.kde.org/#/room/#flt:midov.pl) + +[Join our chat on Telegram](https://t.me/fltchat) + +Simple Sentence Mining (`ssmtool`) is a program for sentence mining, in which sentences with target vocabulary words are collected and added into a spaced repetition system (SRS) for language learning. + + + +## Features +- Double-click lookups from sentences and even faster lookups from integrated applications +- Lemmatization of words on lookup +- Online and local dictionaries in multiple formats +- Frequency lists and pronunciations +- Web reader (epub, fb2, plaintext) allowing one-click lookup +- Kindle highlights to Anki sentence cards (KOReader support is planned too) + +For a detailed list of features and language support data, please consult the [blog post](https://freelanguagetools.org/2021/07/simple-sentence-mining-ssmtool-full-tutorial/) on my blog + +## Tutorials +[Text tutorial](https://freelanguagetools.org/2021/07/simple-sentence-mining-ssmtool-full-tutorial/) +(The text originally on this document has since been moved there.) + +[Video tutorial (Basic, a bit outdated)](https://www.youtube.com/watch?v=y79_q08Zu8k&pp=sAQA) + +**USERS**: If you want to install it, go to [Releases](https://github.com/FreeLanguageTools/ssmtool/releases/) and from the latest release, download the appropriate file for your operating system. + +## Linux distro packages +[](https://repology.org/project/ssmtool/versions) + +## Development +To run from source, simply use `pip3 -r requirements.txt` and then `python3 ssmtool.py`. + +Alternatively, you can also install a live version to your python package library with `pip3 install .` + +## API documentation +If you want to leverage ssmtool to build your own plugins, you can refer to the [API Documentation](API.md) + +## Feedback +You are welcome to report bugs, suggest features/enhancements, or ask for clarifications by opening a GitHub issue. + +## Credits +The definitions provided by the program by default come from English Wiktionary, without which this program would never have been created. + +Support for Google Translate without the use of an API key comes from the [py-googletrans project](https://github.com/ssut/py-googletrans) + +App icon is made from icons by Freepik available on Flaticon. + + + + +%package -n python3-ssmtool +Summary: A simple, effective sentence mining tool. +Provides: python-ssmtool +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-ssmtool +# Simple Sentence Mining + + +[](https://pepy.tech/project/ssmtool) + +[Join our chat on Matrix](https://webchat.kde.org/#/room/#flt:midov.pl) + +[Join our chat on Telegram](https://t.me/fltchat) + +Simple Sentence Mining (`ssmtool`) is a program for sentence mining, in which sentences with target vocabulary words are collected and added into a spaced repetition system (SRS) for language learning. + + + +## Features +- Double-click lookups from sentences and even faster lookups from integrated applications +- Lemmatization of words on lookup +- Online and local dictionaries in multiple formats +- Frequency lists and pronunciations +- Web reader (epub, fb2, plaintext) allowing one-click lookup +- Kindle highlights to Anki sentence cards (KOReader support is planned too) + +For a detailed list of features and language support data, please consult the [blog post](https://freelanguagetools.org/2021/07/simple-sentence-mining-ssmtool-full-tutorial/) on my blog + +## Tutorials +[Text tutorial](https://freelanguagetools.org/2021/07/simple-sentence-mining-ssmtool-full-tutorial/) +(The text originally on this document has since been moved there.) + +[Video tutorial (Basic, a bit outdated)](https://www.youtube.com/watch?v=y79_q08Zu8k&pp=sAQA) + +**USERS**: If you want to install it, go to [Releases](https://github.com/FreeLanguageTools/ssmtool/releases/) and from the latest release, download the appropriate file for your operating system. + +## Linux distro packages +[](https://repology.org/project/ssmtool/versions) + +## Development +To run from source, simply use `pip3 -r requirements.txt` and then `python3 ssmtool.py`. + +Alternatively, you can also install a live version to your python package library with `pip3 install .` + +## API documentation +If you want to leverage ssmtool to build your own plugins, you can refer to the [API Documentation](API.md) + +## Feedback +You are welcome to report bugs, suggest features/enhancements, or ask for clarifications by opening a GitHub issue. + +## Credits +The definitions provided by the program by default come from English Wiktionary, without which this program would never have been created. + +Support for Google Translate without the use of an API key comes from the [py-googletrans project](https://github.com/ssut/py-googletrans) + +App icon is made from icons by Freepik available on Flaticon. + + + + +%package help +Summary: Development documents and examples for ssmtool +Provides: python3-ssmtool-doc +%description help +# Simple Sentence Mining + + +[](https://pepy.tech/project/ssmtool) + +[Join our chat on Matrix](https://webchat.kde.org/#/room/#flt:midov.pl) + +[Join our chat on Telegram](https://t.me/fltchat) + +Simple Sentence Mining (`ssmtool`) is a program for sentence mining, in which sentences with target vocabulary words are collected and added into a spaced repetition system (SRS) for language learning. + + + +## Features +- Double-click lookups from sentences and even faster lookups from integrated applications +- Lemmatization of words on lookup +- Online and local dictionaries in multiple formats +- Frequency lists and pronunciations +- Web reader (epub, fb2, plaintext) allowing one-click lookup +- Kindle highlights to Anki sentence cards (KOReader support is planned too) + +For a detailed list of features and language support data, please consult the [blog post](https://freelanguagetools.org/2021/07/simple-sentence-mining-ssmtool-full-tutorial/) on my blog + +## Tutorials +[Text tutorial](https://freelanguagetools.org/2021/07/simple-sentence-mining-ssmtool-full-tutorial/) +(The text originally on this document has since been moved there.) + +[Video tutorial (Basic, a bit outdated)](https://www.youtube.com/watch?v=y79_q08Zu8k&pp=sAQA) + +**USERS**: If you want to install it, go to [Releases](https://github.com/FreeLanguageTools/ssmtool/releases/) and from the latest release, download the appropriate file for your operating system. + +## Linux distro packages +[](https://repology.org/project/ssmtool/versions) + +## Development +To run from source, simply use `pip3 -r requirements.txt` and then `python3 ssmtool.py`. + +Alternatively, you can also install a live version to your python package library with `pip3 install .` + +## API documentation +If you want to leverage ssmtool to build your own plugins, you can refer to the [API Documentation](API.md) + +## Feedback +You are welcome to report bugs, suggest features/enhancements, or ask for clarifications by opening a GitHub issue. + +## Credits +The definitions provided by the program by default come from English Wiktionary, without which this program would never have been created. + +Support for Google Translate without the use of an API key comes from the [py-googletrans project](https://github.com/ssut/py-googletrans) + +App icon is made from icons by Freepik available on Flaticon. + + + + +%prep +%autosetup -n ssmtool-0.6.4 + +%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-ssmtool -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Jun 20 2023 Python_Bot <Python_Bot@openeuler.org> - 0.6.4-1 +- Package Spec generated @@ -0,0 +1 @@ +f5161d64d5195d800509a1b558b85ad2 ssmtool-0.6.4.tar.gz |