diff options
author | CoprDistGit <infra@openeuler.org> | 2023-04-10 10:35:36 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-04-10 10:35:36 +0000 |
commit | 1e52811a58a2d3192af2bc727b8e838d14bb938e (patch) | |
tree | a7f7509e437fc14a679d83681b3437bea8a35dcc | |
parent | 23abce21c3e677057be1cc5966a2e8423b71cacf (diff) |
automatic import of python-jwcrypto
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-jwcrypto.spec | 93 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 95 insertions, 0 deletions
@@ -0,0 +1 @@ +/jwcrypto-1.4.2.tar.gz diff --git a/python-jwcrypto.spec b/python-jwcrypto.spec new file mode 100644 index 0000000..46e5dbf --- /dev/null +++ b/python-jwcrypto.spec @@ -0,0 +1,93 @@ +%global _empty_manifest_terminate_build 0 +Name: python-jwcrypto +Version: 1.4.2 +Release: 1 +Summary: Implementation of JOSE Web standards +License: LGPLv3+ +URL: https://github.com/latchset/jwcrypto +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/7d/25/185bf383f5a6c76dd46083509e2a65ccaca47521f77547c8a4dfac74bde4/jwcrypto-1.4.2.tar.gz +BuildArch: noarch + + +%description +An implementation of the JOSE Working Group documents: +- RFC 7515 - JSON Web Signature (JWS) +- RFC 7516 - JSON Web Encryption (JWE) +- RFC 7517 - JSON Web Key (JWK) +- RFC 7518 - JSON Web Algorithms (JWA) +- RFC 7519 - JSON Web Token (JWT) +- RFC 7520 - Examples of Protecting Content Using JSON Object Signing and + Encryption (JOSE) + +%package -n python3-jwcrypto +Summary: Implementation of JOSE Web standards +Provides: python-jwcrypto +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-jwcrypto +An implementation of the JOSE Working Group documents: +- RFC 7515 - JSON Web Signature (JWS) +- RFC 7516 - JSON Web Encryption (JWE) +- RFC 7517 - JSON Web Key (JWK) +- RFC 7518 - JSON Web Algorithms (JWA) +- RFC 7519 - JSON Web Token (JWT) +- RFC 7520 - Examples of Protecting Content Using JSON Object Signing and + Encryption (JOSE) + +%package help +Summary: Development documents and examples for jwcrypto +Provides: python3-jwcrypto-doc +%description help +An implementation of the JOSE Working Group documents: +- RFC 7515 - JSON Web Signature (JWS) +- RFC 7516 - JSON Web Encryption (JWE) +- RFC 7517 - JSON Web Key (JWK) +- RFC 7518 - JSON Web Algorithms (JWA) +- RFC 7519 - JSON Web Token (JWT) +- RFC 7520 - Examples of Protecting Content Using JSON Object Signing and + Encryption (JOSE) + +%prep +%autosetup -n jwcrypto-1.4.2 + +%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-jwcrypto -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 1.4.2-1 +- Package Spec generated @@ -0,0 +1 @@ +8c1832e28f9832ed2ce78f8de519758d jwcrypto-1.4.2.tar.gz |