summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-05 06:41:58 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-05 06:41:58 +0000
commit7feec5bada3cfdee1409b7cb2a89f9a0534742c9 (patch)
tree58157118b09689bfdab8e08ccff9558999b87ee1
parentc474ad8026e168208156f6f17941fb1924bf0343 (diff)
automatic import of python-cryptojwtopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-cryptojwt.spec101
-rw-r--r--sources1
3 files changed, 103 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..151c327 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/cryptojwt-1.8.3.tar.gz
diff --git a/python-cryptojwt.spec b/python-cryptojwt.spec
new file mode 100644
index 0000000..e27f186
--- /dev/null
+++ b/python-cryptojwt.spec
@@ -0,0 +1,101 @@
+%global _empty_manifest_terminate_build 0
+Name: python-cryptojwt
+Version: 1.8.3
+Release: 1
+Summary: Python implementation of JWT, JWE, JWS and JWK
+License: Apache-2.0
+URL: https://github.com/IdentityPython/JWTConnect-Python-CryptoJWT
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/32/09/ee9d76a9288def0ec7457913a4e66f4b2377f1c29fafa2f89e40e755077d/cryptojwt-1.8.3.tar.gz
+BuildArch: noarch
+
+Requires: python3-cryptography
+Requires: python3-requests
+
+%description
+# cryptojwt
+
+![License](https://img.shields.io/badge/license-Apache%202-blue.svg)
+![Python version](https://img.shields.io/badge/python-3.6%20%7C%203.7%7C%203.8%20%7C%203.9%20%7C%203.10-blue.svg)
+[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
+
+An implementation of the JSON cryptographic specs JWS, JWE, JWK, and JWA [RFC 7515-7518] and JSON Web Token (JWT) [RFC 7519]
+
+Please read the [Official Documentation](https://cryptojwt.readthedocs.io/en/latest/) for getting usage examples and further informations.
+
+
+%package -n python3-cryptojwt
+Summary: Python implementation of JWT, JWE, JWS and JWK
+Provides: python-cryptojwt
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-cryptojwt
+# cryptojwt
+
+![License](https://img.shields.io/badge/license-Apache%202-blue.svg)
+![Python version](https://img.shields.io/badge/python-3.6%20%7C%203.7%7C%203.8%20%7C%203.9%20%7C%203.10-blue.svg)
+[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
+
+An implementation of the JSON cryptographic specs JWS, JWE, JWK, and JWA [RFC 7515-7518] and JSON Web Token (JWT) [RFC 7519]
+
+Please read the [Official Documentation](https://cryptojwt.readthedocs.io/en/latest/) for getting usage examples and further informations.
+
+
+%package help
+Summary: Development documents and examples for cryptojwt
+Provides: python3-cryptojwt-doc
+%description help
+# cryptojwt
+
+![License](https://img.shields.io/badge/license-Apache%202-blue.svg)
+![Python version](https://img.shields.io/badge/python-3.6%20%7C%203.7%7C%203.8%20%7C%203.9%20%7C%203.10-blue.svg)
+[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
+
+An implementation of the JSON cryptographic specs JWS, JWE, JWK, and JWA [RFC 7515-7518] and JSON Web Token (JWT) [RFC 7519]
+
+Please read the [Official Documentation](https://cryptojwt.readthedocs.io/en/latest/) for getting usage examples and further informations.
+
+
+%prep
+%autosetup -n cryptojwt-1.8.3
+
+%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-cryptojwt -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 1.8.3-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..94ce9c9
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+e3f3236631628d55e1b1b40de456364c cryptojwt-1.8.3.tar.gz