From 531d970765d04e7b10e2b180460f5bc22c8ddc1e Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Mon, 15 May 2023 04:33:41 +0000 Subject: automatic import of python-muffin-session --- .gitignore | 1 + python-muffin-session.spec | 82 ++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 84 insertions(+) create mode 100644 python-muffin-session.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..89129d2 100644 --- a/.gitignore +++ b/.gitignore @@ -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 - 2.4.0-1 +- Package Spec generated diff --git a/sources b/sources new file mode 100644 index 0000000..d771aa7 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +1ff65301e1315cd546ddf9666776079d muffin_session-2.4.0.tar.gz -- cgit v1.2.3