summaryrefslogtreecommitdiff
path: root/python-cryptography.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-10 07:13:19 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-10 07:13:19 +0000
commita484bcd59711e80c998466748eb0aa64423b49a9 (patch)
tree693074f6028b6ca226f4700d7c947181c196aee1 /python-cryptography.spec
parent9ce366158a2b2da98d7b5d233685f859701d18e1 (diff)
automatic import of python-cryptography
Diffstat (limited to 'python-cryptography.spec')
-rw-r--r--python-cryptography.spec183
1 files changed, 183 insertions, 0 deletions
diff --git a/python-cryptography.spec b/python-cryptography.spec
new file mode 100644
index 0000000..63cc162
--- /dev/null
+++ b/python-cryptography.spec
@@ -0,0 +1,183 @@
+%global _empty_manifest_terminate_build 0
+Name: python-cryptography
+Version: 40.0.1
+Release: 1
+Summary: cryptography is a package which provides cryptographic recipes and primitives to Python developers.
+License: (Apache-2.0 OR BSD-3-Clause) AND PSF-2.0
+URL: https://github.com/pyca/cryptography
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/15/d9/c679e9eda76bfc0d60c9d7a4084ca52d0631d9f24ef04f818012f6d1282e/cryptography-40.0.1.tar.gz
+
+Requires: python3-cffi
+Requires: python3-sphinx
+Requires: python3-sphinx-rtd-theme
+Requires: python3-pyenchant
+Requires: python3-twine
+Requires: python3-sphinxcontrib-spelling
+Requires: python3-black
+Requires: python3-ruff
+Requires: python3-mypy
+Requires: python3-check-manifest
+Requires: python3-setuptools-rust
+Requires: python3-bcrypt
+Requires: python3-pytest
+Requires: python3-pytest-shard
+Requires: python3-pytest-benchmark
+Requires: python3-pytest-cov
+Requires: python3-pytest-subtests
+Requires: python3-pytest-xdist
+Requires: python3-pretend
+Requires: python3-iso8601
+Requires: python3-pytest-randomly
+Requires: python3-tox
+
+%description
+``cryptography`` is a package which provides cryptographic recipes and
+primitives to Python developers. Our goal is for it to be your "cryptographic
+standard library". It supports Python 3.6+ and PyPy3 7.3.10+.
+``cryptography`` includes both high level recipes and low level interfaces to
+common cryptographic algorithms such as symmetric ciphers, message digests, and
+key derivation functions. For example, to encrypt something with
+``cryptography``'s high level symmetric encryption recipe:
+ >>> from cryptography.fernet import Fernet
+ >>> # Put this somewhere safe!
+ >>> key = Fernet.generate_key()
+ >>> f = Fernet(key)
+ >>> token = f.encrypt(b"A really secret message. Not for prying eyes.")
+ >>> token
+ b'...'
+ >>> f.decrypt(token)
+ b'A really secret message. Not for prying eyes.'
+You can find more information in the `documentation`_.
+You can install ``cryptography`` with:
+ $ pip install cryptography
+For full details see `the installation documentation`_.
+Discussion
+~~~~~~~~~~
+If you run into bugs, you can file them in our `issue tracker`_.
+We maintain a `cryptography-dev`_ mailing list for development discussion.
+You can also join ``#pyca`` on ``irc.libera.chat`` to ask questions or get
+involved.
+Security
+~~~~~~~~
+Need to report a security issue? Please consult our `security reporting`_
+documentation.
+
+%package -n python3-cryptography
+Summary: cryptography is a package which provides cryptographic recipes and primitives to Python developers.
+Provides: python-cryptography
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+BuildRequires: python3-cffi
+BuildRequires: gcc
+BuildRequires: gdb
+%description -n python3-cryptography
+``cryptography`` is a package which provides cryptographic recipes and
+primitives to Python developers. Our goal is for it to be your "cryptographic
+standard library". It supports Python 3.6+ and PyPy3 7.3.10+.
+``cryptography`` includes both high level recipes and low level interfaces to
+common cryptographic algorithms such as symmetric ciphers, message digests, and
+key derivation functions. For example, to encrypt something with
+``cryptography``'s high level symmetric encryption recipe:
+ >>> from cryptography.fernet import Fernet
+ >>> # Put this somewhere safe!
+ >>> key = Fernet.generate_key()
+ >>> f = Fernet(key)
+ >>> token = f.encrypt(b"A really secret message. Not for prying eyes.")
+ >>> token
+ b'...'
+ >>> f.decrypt(token)
+ b'A really secret message. Not for prying eyes.'
+You can find more information in the `documentation`_.
+You can install ``cryptography`` with:
+ $ pip install cryptography
+For full details see `the installation documentation`_.
+Discussion
+~~~~~~~~~~
+If you run into bugs, you can file them in our `issue tracker`_.
+We maintain a `cryptography-dev`_ mailing list for development discussion.
+You can also join ``#pyca`` on ``irc.libera.chat`` to ask questions or get
+involved.
+Security
+~~~~~~~~
+Need to report a security issue? Please consult our `security reporting`_
+documentation.
+
+%package help
+Summary: Development documents and examples for cryptography
+Provides: python3-cryptography-doc
+%description help
+``cryptography`` is a package which provides cryptographic recipes and
+primitives to Python developers. Our goal is for it to be your "cryptographic
+standard library". It supports Python 3.6+ and PyPy3 7.3.10+.
+``cryptography`` includes both high level recipes and low level interfaces to
+common cryptographic algorithms such as symmetric ciphers, message digests, and
+key derivation functions. For example, to encrypt something with
+``cryptography``'s high level symmetric encryption recipe:
+ >>> from cryptography.fernet import Fernet
+ >>> # Put this somewhere safe!
+ >>> key = Fernet.generate_key()
+ >>> f = Fernet(key)
+ >>> token = f.encrypt(b"A really secret message. Not for prying eyes.")
+ >>> token
+ b'...'
+ >>> f.decrypt(token)
+ b'A really secret message. Not for prying eyes.'
+You can find more information in the `documentation`_.
+You can install ``cryptography`` with:
+ $ pip install cryptography
+For full details see `the installation documentation`_.
+Discussion
+~~~~~~~~~~
+If you run into bugs, you can file them in our `issue tracker`_.
+We maintain a `cryptography-dev`_ mailing list for development discussion.
+You can also join ``#pyca`` on ``irc.libera.chat`` to ask questions or get
+involved.
+Security
+~~~~~~~~
+Need to report a security issue? Please consult our `security reporting`_
+documentation.
+
+%prep
+%autosetup -n cryptography-40.0.1
+
+%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-cryptography -f filelist.lst
+%dir %{python3_sitearch}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 40.0.1-1
+- Package Spec generated