diff options
author | CoprDistGit <infra@openeuler.org> | 2023-04-10 07:17:46 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-04-10 07:17:46 +0000 |
commit | 4481aa60a5bf62897cc9f9f9620d52f0c6634f80 (patch) | |
tree | 73a80b17826a29b1c5f72ce3c02871efaa7a5eec | |
parent | 1f397bf769ced4deec520a119955961b5d587e70 (diff) |
automatic import of python-itsdangerous
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-itsdangerous.spec | 87 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 89 insertions, 0 deletions
@@ -0,0 +1 @@ +/itsdangerous-2.1.2.tar.gz diff --git a/python-itsdangerous.spec b/python-itsdangerous.spec new file mode 100644 index 0000000..c77da2d --- /dev/null +++ b/python-itsdangerous.spec @@ -0,0 +1,87 @@ +%global _empty_manifest_terminate_build 0 +Name: python-itsdangerous +Version: 2.1.2 +Release: 1 +Summary: Safely pass data to untrusted environments and back. +License: BSD-3-Clause +URL: https://palletsprojects.com/p/itsdangerous/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/7f/a1/d3fb83e7a61fa0c0d3d08ad0a94ddbeff3731c05212617dff3a94e097f08/itsdangerous-2.1.2.tar.gz +BuildArch: noarch + + +%description +Various helpers to pass data to untrusted environments and to get it +back safe and sound. Data is cryptographically signed to ensure that a +token has not been tampered with. +It's possible to customize how data is serialized. Data is compressed as +needed. A timestamp can be added and verified automatically while +loading a token. + +%package -n python3-itsdangerous +Summary: Safely pass data to untrusted environments and back. +Provides: python-itsdangerous +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-itsdangerous +Various helpers to pass data to untrusted environments and to get it +back safe and sound. Data is cryptographically signed to ensure that a +token has not been tampered with. +It's possible to customize how data is serialized. Data is compressed as +needed. A timestamp can be added and verified automatically while +loading a token. + +%package help +Summary: Development documents and examples for itsdangerous +Provides: python3-itsdangerous-doc +%description help +Various helpers to pass data to untrusted environments and to get it +back safe and sound. Data is cryptographically signed to ensure that a +token has not been tampered with. +It's possible to customize how data is serialized. Data is compressed as +needed. A timestamp can be added and verified automatically while +loading a token. + +%prep +%autosetup -n itsdangerous-2.1.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-itsdangerous -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 2.1.2-1 +- Package Spec generated @@ -0,0 +1 @@ +c1bc730ddf53b8374eaa823f24eb6438 itsdangerous-2.1.2.tar.gz |