diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-05 08:55:40 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-05 08:55:40 +0000 |
| commit | 1c14fd1986571111b0d82900b66cc8f455a7d7de (patch) | |
| tree | 58329bdfd6151270ba55a670d7625ee8290635a1 | |
| parent | ae141167a7cc82d79ebb9aa9c7ecc290b7fc8e5e (diff) | |
automatic import of python-papereadopeneuler20.03
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-paperead.spec | 308 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 310 insertions, 0 deletions
@@ -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 +[](https://github.com/StardustDL/paperead) + + [](https://app.netlify.com/sites/paperead/deploys)  [](https://pypi.org/project/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     +- Python    + +## 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 +[](https://github.com/StardustDL/paperead) + + [](https://app.netlify.com/sites/paperead/deploys)  [](https://pypi.org/project/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     +- Python    + +## 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 +[](https://github.com/StardustDL/paperead) + + [](https://app.netlify.com/sites/paperead/deploys)  [](https://pypi.org/project/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     +- Python    + +## 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 <Python_Bot@openeuler.org> - 0.2.6-1 +- Package Spec generated @@ -0,0 +1 @@ +948834a6f6b49f3e5be61c09e29cac7f paperead-0.2.6.tar.gz |
