diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-15 04:33:41 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-15 04:33:41 +0000 |
| commit | 531d970765d04e7b10e2b180460f5bc22c8ddc1e (patch) | |
| tree | 29d2c52b5ed62915a5bd60a6e6d4c4805f0e065d | |
| parent | a601ea80baa7291dd0013df63d326bfd39bfc3af (diff) | |
automatic import of python-muffin-session
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-muffin-session.spec | 82 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 84 insertions, 0 deletions
@@ -0,0 +1 @@ +/muffin_session-2.4.0.tar.gz diff --git a/python-muffin-session.spec b/python-muffin-session.spec new file mode 100644 index 0000000..219dc8f --- /dev/null +++ b/python-muffin-session.spec @@ -0,0 +1,82 @@ +%global _empty_manifest_terminate_build 0 +Name: python-muffin-session +Version: 2.4.0 +Release: 1 +Summary: Signed Cookie-Based HTTP sessions for the Muffin framework +License: MIT +URL: https://github.com/klen/muffin-session +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/4b/64/052cef59cea036a52bf78a4871e2fb672e484cca7ded5b34caba6677357e/muffin_session-2.4.0.tar.gz +BuildArch: noarch + +Requires: python3-muffin +Requires: python3-asgi-sessions[jwt] +Requires: python3-pyjwt +Requires: python3-cryptography + +%description +* Supports base64 sessions +* Supports ``JWT`` signed sessions +* Supports ``Fernet`` encrypted sessions + +%package -n python3-muffin-session +Summary: Signed Cookie-Based HTTP sessions for the Muffin framework +Provides: python-muffin-session +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-muffin-session +* Supports base64 sessions +* Supports ``JWT`` signed sessions +* Supports ``Fernet`` encrypted sessions + +%package help +Summary: Development documents and examples for muffin-session +Provides: python3-muffin-session-doc +%description help +* Supports base64 sessions +* Supports ``JWT`` signed sessions +* Supports ``Fernet`` encrypted sessions + +%prep +%autosetup -n muffin-session-2.4.0 + +%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-muffin-session -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon May 15 2023 Python_Bot <Python_Bot@openeuler.org> - 2.4.0-1 +- Package Spec generated @@ -0,0 +1 @@ +1ff65301e1315cd546ddf9666776079d muffin_session-2.4.0.tar.gz |
