diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-10 05:47:17 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-10 05:47:17 +0000 |
commit | 3caacb8b8a908851de41f62f06fea14f7f8f1bd8 (patch) | |
tree | 0c77d2cb898d63361ad8d9684ff1271899037568 | |
parent | fb062747abff67c024b8dad766bd535111eb7e0d (diff) |
automatic import of python-plagdefopeneuler20.03
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-plagdef.spec | 329 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 331 insertions, 0 deletions
@@ -0,0 +1 @@ +/plagdef-1.5.2.tar.gz diff --git a/python-plagdef.spec b/python-plagdef.spec new file mode 100644 index 0000000..35c819d --- /dev/null +++ b/python-plagdef.spec @@ -0,0 +1,329 @@ +%global _empty_manifest_terminate_build 0 +Name: python-plagdef +Version: 1.5.2 +Release: 1 +Summary: A tool which makes life hard for students who try to make theirs simple. +License: GPL-3.0-or-later +URL: https://github.com/devWhyqueue/plagdef +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/56/4a/963c17e6d1c3c059806415178868344f3dc950f472c3a2daf644e7752923/plagdef-1.5.2.tar.gz +BuildArch: noarch + +Requires: python3-beautifulsoup4 +Requires: python3-click +Requires: python3-deep-translator +Requires: python3-fpdf2 +Requires: python3-jsonpickle +Requires: python3-langdetect +Requires: python3-networkx +Requires: python3-numpy +Requires: python3-ocrmypdf +Requires: python3-pdfplumber +Requires: python3-PyPDF2 +Requires: python3-pyside6 +Requires: python3-magic +Requires: python3-sortedcontainers +Requires: python3-selenium +Requires: python3-stanza +Requires: python3-tqdm +Requires: python3-urlextract +Requires: python3-webdriver-manager +Requires: python3-Werkzeug + +%description +# PlagDef + +[](https://badge.fury.io/py/plagdef) + + +[](https://github.com/devWhyqueue/plagdef/actions/workflows/test.yml) +[](https://sonarcloud.io/dashboard?id=devWhyqueue_plagdef) + +A tool which makes life hard for students who try to make theirs simple. + +# Installation + +Get it from PyPI: + +``` +$ pip install plagdef +```` + +Or build it yourself: + +``` +$ git clone git://github.com/devWhyqueue/plagdef +$ poetry build +$ pip install dist/plagdef-{VERSION}.tar.gz +```` + +# Requirements + +## Chrome + +PlagDef uses Selenium to automate the translation of documents. +By default, it uses a headless version of Chrome. + +## OCRMyPDF + +This library is used for improved PDF text extraction.\ +To install its necessary dependencies for your operating system take a look at:\ +https://ocrmypdf.readthedocs.io/en/latest/installation.html + +And don't forget to download the German language pack to your _tessdata_ folder from here:\ +https://github.com/tesseract-ocr/tessdata + +## Libmagic + +**After** (important!) you installed PlagDef, install the libmagic library.\ +PlagDef uses it to detect character encodings.\ +Further instructions can be found here:\ +https://github.com/ahupp/python-magic#installation + +# Usage + +Run the GUI: + +``` +$ plagdef-gui +```` + +Or if you prefer a CLI: + +``` +$ plagdef -h +```` + +# Development + +Clone the repo and install dependencies: + +``` +$ git clone git://github.com/devWhyqueue/plagdef +$ poetry install +```` + +# Publish to PyPI + +In your virtual environment build and upload PlagDef: + +``` +$ poetry publish --build +```` + + +%package -n python3-plagdef +Summary: A tool which makes life hard for students who try to make theirs simple. +Provides: python-plagdef +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-plagdef +# PlagDef + +[](https://badge.fury.io/py/plagdef) + + +[](https://github.com/devWhyqueue/plagdef/actions/workflows/test.yml) +[](https://sonarcloud.io/dashboard?id=devWhyqueue_plagdef) + +A tool which makes life hard for students who try to make theirs simple. + +# Installation + +Get it from PyPI: + +``` +$ pip install plagdef +```` + +Or build it yourself: + +``` +$ git clone git://github.com/devWhyqueue/plagdef +$ poetry build +$ pip install dist/plagdef-{VERSION}.tar.gz +```` + +# Requirements + +## Chrome + +PlagDef uses Selenium to automate the translation of documents. +By default, it uses a headless version of Chrome. + +## OCRMyPDF + +This library is used for improved PDF text extraction.\ +To install its necessary dependencies for your operating system take a look at:\ +https://ocrmypdf.readthedocs.io/en/latest/installation.html + +And don't forget to download the German language pack to your _tessdata_ folder from here:\ +https://github.com/tesseract-ocr/tessdata + +## Libmagic + +**After** (important!) you installed PlagDef, install the libmagic library.\ +PlagDef uses it to detect character encodings.\ +Further instructions can be found here:\ +https://github.com/ahupp/python-magic#installation + +# Usage + +Run the GUI: + +``` +$ plagdef-gui +```` + +Or if you prefer a CLI: + +``` +$ plagdef -h +```` + +# Development + +Clone the repo and install dependencies: + +``` +$ git clone git://github.com/devWhyqueue/plagdef +$ poetry install +```` + +# Publish to PyPI + +In your virtual environment build and upload PlagDef: + +``` +$ poetry publish --build +```` + + +%package help +Summary: Development documents and examples for plagdef +Provides: python3-plagdef-doc +%description help +# PlagDef + +[](https://badge.fury.io/py/plagdef) + + +[](https://github.com/devWhyqueue/plagdef/actions/workflows/test.yml) +[](https://sonarcloud.io/dashboard?id=devWhyqueue_plagdef) + +A tool which makes life hard for students who try to make theirs simple. + +# Installation + +Get it from PyPI: + +``` +$ pip install plagdef +```` + +Or build it yourself: + +``` +$ git clone git://github.com/devWhyqueue/plagdef +$ poetry build +$ pip install dist/plagdef-{VERSION}.tar.gz +```` + +# Requirements + +## Chrome + +PlagDef uses Selenium to automate the translation of documents. +By default, it uses a headless version of Chrome. + +## OCRMyPDF + +This library is used for improved PDF text extraction.\ +To install its necessary dependencies for your operating system take a look at:\ +https://ocrmypdf.readthedocs.io/en/latest/installation.html + +And don't forget to download the German language pack to your _tessdata_ folder from here:\ +https://github.com/tesseract-ocr/tessdata + +## Libmagic + +**After** (important!) you installed PlagDef, install the libmagic library.\ +PlagDef uses it to detect character encodings.\ +Further instructions can be found here:\ +https://github.com/ahupp/python-magic#installation + +# Usage + +Run the GUI: + +``` +$ plagdef-gui +```` + +Or if you prefer a CLI: + +``` +$ plagdef -h +```` + +# Development + +Clone the repo and install dependencies: + +``` +$ git clone git://github.com/devWhyqueue/plagdef +$ poetry install +```` + +# Publish to PyPI + +In your virtual environment build and upload PlagDef: + +``` +$ poetry publish --build +```` + + +%prep +%autosetup -n plagdef-1.5.2 + +%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-plagdef -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 10 2023 Python_Bot <Python_Bot@openeuler.org> - 1.5.2-1 +- Package Spec generated @@ -0,0 +1 @@ +077156182f83cc14ae46e874588c44fa plagdef-1.5.2.tar.gz |