summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--python-plagdef.spec329
-rw-r--r--sources1
3 files changed, 331 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..552d924 100644
--- a/.gitignore
+++ b/.gitignore
@@ -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
+
+[![PyPI version](https://badge.fury.io/py/plagdef.svg)](https://badge.fury.io/py/plagdef)
+![PyPI - Python Version](https://img.shields.io/pypi/pyversions/plagdef)
+![GitHub](https://img.shields.io/github/license/devWhyqueue/plagdef)
+[![Test](https://github.com/devWhyqueue/plagdef/actions/workflows/cd.yml/badge.svg)](https://github.com/devWhyqueue/plagdef/actions/workflows/test.yml)
+[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=devWhyqueue_plagdef&metric=coverage)](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
+
+[![PyPI version](https://badge.fury.io/py/plagdef.svg)](https://badge.fury.io/py/plagdef)
+![PyPI - Python Version](https://img.shields.io/pypi/pyversions/plagdef)
+![GitHub](https://img.shields.io/github/license/devWhyqueue/plagdef)
+[![Test](https://github.com/devWhyqueue/plagdef/actions/workflows/cd.yml/badge.svg)](https://github.com/devWhyqueue/plagdef/actions/workflows/test.yml)
+[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=devWhyqueue_plagdef&metric=coverage)](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
+
+[![PyPI version](https://badge.fury.io/py/plagdef.svg)](https://badge.fury.io/py/plagdef)
+![PyPI - Python Version](https://img.shields.io/pypi/pyversions/plagdef)
+![GitHub](https://img.shields.io/github/license/devWhyqueue/plagdef)
+[![Test](https://github.com/devWhyqueue/plagdef/actions/workflows/cd.yml/badge.svg)](https://github.com/devWhyqueue/plagdef/actions/workflows/test.yml)
+[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=devWhyqueue_plagdef&metric=coverage)](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
diff --git a/sources b/sources
new file mode 100644
index 0000000..25832d7
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+077156182f83cc14ae46e874588c44fa plagdef-1.5.2.tar.gz