From 1c14fd1986571111b0d82900b66cc8f455a7d7de Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Fri, 5 May 2023 08:55:40 +0000 Subject: automatic import of python-paperead --- .gitignore | 1 + python-paperead.spec | 308 +++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 310 insertions(+) create mode 100644 python-paperead.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..ae38e9b 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/paperead-0.2.6.tar.gz diff --git a/python-paperead.spec b/python-paperead.spec new file mode 100644 index 0000000..c6d55aa --- /dev/null +++ b/python-paperead.spec @@ -0,0 +1,308 @@ +%global _empty_manifest_terminate_build 0 +Name: python-paperead +Version: 0.2.6 +Release: 1 +Summary: A tiny tool to present and manage your reading and notes. +License: Mozilla Public License 2.0 (MPL 2.0) +URL: https://github.com/StardustDL/paperead +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/e8/17/0b5138542c74e955521b803bab5fa0624826b4501e906946b10b04adb8c1/paperead-0.2.6.tar.gz +BuildArch: noarch + +Requires: python3-click +Requires: python3-Flask +Requires: python3-flask-cors +Requires: python3-Flask-BasicAuth +Requires: python3-PyYaml +Requires: python3-dateutil +Requires: python3-tornado +Requires: python3-marko + +%description +[![Paperead](https://socialify.git.ci/StardustDL/paperead/image?description=1&font=Bitter&forks=1&issues=1&language=1&owner=1&pattern=Plus&pulls=1&stargazers=1&theme=Light)](https://github.com/StardustDL/paperead) + +![](https://github.com/StardustDL/paperead/workflows/CI/badge.svg) [![Netlify Status](https://api.netlify.com/api/v1/badges/fb053a29-d62b-469d-9253-d8208fec5863/deploy-status)](https://app.netlify.com/sites/paperead/deploys) ![](https://img.shields.io/github/license/StardustDL/paperead.svg) [![](https://img.shields.io/pypi/v/paperead.svg?logo=pypi)](https://pypi.org/project/paperead/) [![Downloads](https://pepy.tech/badge/paperead)](https://pepy.tech/project/paperead) + +[Paperead](https://github.com/StardustDL/paperead) is a tiny tool to present and manage your reading and notes. + +- Platform ![](https://img.shields.io/badge/Linux-yes-success?logo=linux) ![](https://img.shields.io/badge/Windows-yes-success?logo=windows) ![](https://img.shields.io/badge/MacOS-yes-success?logo=apple) ![](https://img.shields.io/badge/BSD-yes-success?logo=freebsd) +- Python ![](https://img.shields.io/pypi/implementation/paperead.svg?logo=pypi) ![](https://img.shields.io/pypi/pyversions/paperead.svg?logo=pypi) ![](https://img.shields.io/pypi/wheel/paperead.svg?logo=pypi) + +## Features + +- File-system based storage + - Simple and readable + - Easy to use with VSCode +- Notes in markdown + - CommonMark + - LaTex Math + - Media (locally hosted or remote files) + - Code highlighting + - Lists and tables + - Graphs +- Rich pages + - Slides powered by reveal.js + - Image, audio, and video. + - PDF and links. + - Dynamic generated (use Python script). + - Raw HTML. +- Builtin web server + - Basic authentication + - Readonly mode + - RESTful API +- Frontend in browser + - Dynamic markdown rendering + - Builtin reader mode +- Static website generator + +For details about features, installation and usage, visit [documents](https://paperead.netlify.app/) website powered by Paperead. + +## Install + +Use pip: + +```sh +pip install paperead +``` + +## Usage + +```sh +paperead new first-material +paperead new first-material -N first-note + +paperead serve + +# Visit http://localhost:3649 +``` + +## Development + +```sh +# Run backend + +cd src/main +pip install -r requirements.txt +python -m paperead -D "path/to/dataDir" serve +# endpoint: http://localhost:3649/api + +# Run frontend +cd src/web +npm install +npm run restore +npm run dev +# endpoint: http://localhost:3600 +``` + + + + +%package -n python3-paperead +Summary: A tiny tool to present and manage your reading and notes. +Provides: python-paperead +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-paperead +[![Paperead](https://socialify.git.ci/StardustDL/paperead/image?description=1&font=Bitter&forks=1&issues=1&language=1&owner=1&pattern=Plus&pulls=1&stargazers=1&theme=Light)](https://github.com/StardustDL/paperead) + +![](https://github.com/StardustDL/paperead/workflows/CI/badge.svg) [![Netlify Status](https://api.netlify.com/api/v1/badges/fb053a29-d62b-469d-9253-d8208fec5863/deploy-status)](https://app.netlify.com/sites/paperead/deploys) ![](https://img.shields.io/github/license/StardustDL/paperead.svg) [![](https://img.shields.io/pypi/v/paperead.svg?logo=pypi)](https://pypi.org/project/paperead/) [![Downloads](https://pepy.tech/badge/paperead)](https://pepy.tech/project/paperead) + +[Paperead](https://github.com/StardustDL/paperead) is a tiny tool to present and manage your reading and notes. + +- Platform ![](https://img.shields.io/badge/Linux-yes-success?logo=linux) ![](https://img.shields.io/badge/Windows-yes-success?logo=windows) ![](https://img.shields.io/badge/MacOS-yes-success?logo=apple) ![](https://img.shields.io/badge/BSD-yes-success?logo=freebsd) +- Python ![](https://img.shields.io/pypi/implementation/paperead.svg?logo=pypi) ![](https://img.shields.io/pypi/pyversions/paperead.svg?logo=pypi) ![](https://img.shields.io/pypi/wheel/paperead.svg?logo=pypi) + +## Features + +- File-system based storage + - Simple and readable + - Easy to use with VSCode +- Notes in markdown + - CommonMark + - LaTex Math + - Media (locally hosted or remote files) + - Code highlighting + - Lists and tables + - Graphs +- Rich pages + - Slides powered by reveal.js + - Image, audio, and video. + - PDF and links. + - Dynamic generated (use Python script). + - Raw HTML. +- Builtin web server + - Basic authentication + - Readonly mode + - RESTful API +- Frontend in browser + - Dynamic markdown rendering + - Builtin reader mode +- Static website generator + +For details about features, installation and usage, visit [documents](https://paperead.netlify.app/) website powered by Paperead. + +## Install + +Use pip: + +```sh +pip install paperead +``` + +## Usage + +```sh +paperead new first-material +paperead new first-material -N first-note + +paperead serve + +# Visit http://localhost:3649 +``` + +## Development + +```sh +# Run backend + +cd src/main +pip install -r requirements.txt +python -m paperead -D "path/to/dataDir" serve +# endpoint: http://localhost:3649/api + +# Run frontend +cd src/web +npm install +npm run restore +npm run dev +# endpoint: http://localhost:3600 +``` + + + + +%package help +Summary: Development documents and examples for paperead +Provides: python3-paperead-doc +%description help +[![Paperead](https://socialify.git.ci/StardustDL/paperead/image?description=1&font=Bitter&forks=1&issues=1&language=1&owner=1&pattern=Plus&pulls=1&stargazers=1&theme=Light)](https://github.com/StardustDL/paperead) + +![](https://github.com/StardustDL/paperead/workflows/CI/badge.svg) [![Netlify Status](https://api.netlify.com/api/v1/badges/fb053a29-d62b-469d-9253-d8208fec5863/deploy-status)](https://app.netlify.com/sites/paperead/deploys) ![](https://img.shields.io/github/license/StardustDL/paperead.svg) [![](https://img.shields.io/pypi/v/paperead.svg?logo=pypi)](https://pypi.org/project/paperead/) [![Downloads](https://pepy.tech/badge/paperead)](https://pepy.tech/project/paperead) + +[Paperead](https://github.com/StardustDL/paperead) is a tiny tool to present and manage your reading and notes. + +- Platform ![](https://img.shields.io/badge/Linux-yes-success?logo=linux) ![](https://img.shields.io/badge/Windows-yes-success?logo=windows) ![](https://img.shields.io/badge/MacOS-yes-success?logo=apple) ![](https://img.shields.io/badge/BSD-yes-success?logo=freebsd) +- Python ![](https://img.shields.io/pypi/implementation/paperead.svg?logo=pypi) ![](https://img.shields.io/pypi/pyversions/paperead.svg?logo=pypi) ![](https://img.shields.io/pypi/wheel/paperead.svg?logo=pypi) + +## Features + +- File-system based storage + - Simple and readable + - Easy to use with VSCode +- Notes in markdown + - CommonMark + - LaTex Math + - Media (locally hosted or remote files) + - Code highlighting + - Lists and tables + - Graphs +- Rich pages + - Slides powered by reveal.js + - Image, audio, and video. + - PDF and links. + - Dynamic generated (use Python script). + - Raw HTML. +- Builtin web server + - Basic authentication + - Readonly mode + - RESTful API +- Frontend in browser + - Dynamic markdown rendering + - Builtin reader mode +- Static website generator + +For details about features, installation and usage, visit [documents](https://paperead.netlify.app/) website powered by Paperead. + +## Install + +Use pip: + +```sh +pip install paperead +``` + +## Usage + +```sh +paperead new first-material +paperead new first-material -N first-note + +paperead serve + +# Visit http://localhost:3649 +``` + +## Development + +```sh +# Run backend + +cd src/main +pip install -r requirements.txt +python -m paperead -D "path/to/dataDir" serve +# endpoint: http://localhost:3649/api + +# Run frontend +cd src/web +npm install +npm run restore +npm run dev +# endpoint: http://localhost:3600 +``` + + + + +%prep +%autosetup -n paperead-0.2.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-paperead -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri May 05 2023 Python_Bot - 0.2.6-1 +- Package Spec generated diff --git a/sources b/sources new file mode 100644 index 0000000..2f54bc6 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +948834a6f6b49f3e5be61c09e29cac7f paperead-0.2.6.tar.gz -- cgit v1.2.3