77 lines
20 KiB
RPMSpec
77 lines
20 KiB
RPMSpec
|
|
%global _empty_manifest_terminate_build 0
|
|||
|
|
Name: python-argon2-cffi
|
|||
|
|
Version: 20.1.0
|
|||
|
|
Release: 1
|
|||
|
|
Summary: The secure Argon2 password hashing algorithm.
|
|||
|
|
License: MIT
|
|||
|
|
URL: https://argon2-cffi.readthedocs.io/
|
|||
|
|
Source0: https://files.pythonhosted.org/packages/74/fd/d78e003a79c453e8454197092fce9d1c6099445b7e7da0b04eb4fe1dbab7/argon2-cffi-20.1.0.tar.gz
|
|||
|
|
|
|||
|
|
|
|||
|
|
%description
|
|||
|
|
sun ['=====================================', 'CFFI-based Argon2 Bindings for Python', '=====================================', '', '.. image:: https://readthedocs.org/projects/argon2-cffi/badge/?version=stable', ' :target: http://argon2-cffi.readthedocs.io/en/stable/?badge=stable', ' :alt: Documentation Status', '', '.. image:: https://github.com/hynek/argon2-cffi/workflows/CI/badge.svg?branch=master', ' :target: https://github.com/hynek/argon2-cffi/actions?workflow=CI', ' :alt: CI Status', '', '.. image:: https://codecov.io/github/hynek/argon2-cffi/branch/master/graph/badge.svg', ' :target: https://codecov.io/github/hynek/argon2-cffi', ' :alt: Test Coverage', '', '.. image:: https://www.irccloud.com/invite-svg?channel=%23cryptography-dev&hostname=irc.freenode.net&port=6697&ssl=1', ' :target: https://www.irccloud.com/invite?channel=%23cryptography-dev&hostname=irc.freenode.net&port=6697&ssl=1', ' :alt: IRC', '', '.. image:: https://img.shields.io/badge/code%20style-black-000000.svg', ' :target: https://github.com/ambv/black', ' :alt: Code style: black', '', '.. teaser-begin', '', '`Argon2 <https://github.com/p-h-c/phc-winner-argon2>`_ won the `Password Hashing Competition <https://password-hashing.net/>`_ and ``argon2-cffi`` is the simplest way to use it in Python and PyPy:', '', '.. code-block:: pycon', '', ' >>> from argon2 import PasswordHasher', ' >>> ph = PasswordHasher()', ' >>> hash = ph.hash("s3kr3tp4ssw0rd")', ' >>> hash # doctest: +SKIP', " '$argon2id$v=19$m=102400,t=2,p=8$tSm+JOWigOgPZx/g44K5fQ$WDyus6py50bVFIPkjA28lQ'", ' >>> ph.verify(hash, "s3kr3tp4ssw0rd")', ' True', ' >>> ph.check_needs_rehash(hash)', ' False', ' >>> ph.verify(hash, "t0t411ywr0ng")', ' Traceback (most recent call last):', ' ...', ' argon2.exceptions.VerifyMismatchError: The password does not match the supplied hash', '', '', '``argon2-cffi``\\ ’s documentation lives at `Read the Docs <https://argon2-cffi.readthedocs.io/>`_, the code on `GitHub <https://github.com/hynek/argon2-cffi>`_.', 'It’s rigorously tested on Python 2.7, 3.5+, and PyPy.', '', '', 'Release Information', '===================', '', '20.1.0 (2020-05-11)', '-------------------', '', 'Vendoring Argon2 @ `62358ba <https://github.com/P-H-C/phc-winner-argon2/tree/62358ba2123abd17fccf2a108a301d4b52c01a7c>`_ (20190702)', '', '', 'Backward-incompatible changes:', '^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^', '', '*none*', '', '', 'Deprecations:', '^^^^^^^^^^^^^', '', '*none*', '', '', 'Changes:', '^^^^^^^^', '', '- It is now possible to manually override the detection of SSE2 using the ``ARGON2_CFFI_USE_SSE2`` environment variable.', '', '`Full changelog <https://argon2-cffi.readthedocs.io/en/stable/changelog.html>`_.', '', 'Credits & License', '=================', '', '``argon2-cffi`` is maintained by Hynek Schlawack and released under the `MIT license <https://github.com/hynek/argon2-cffi/blob/master/LICENSE>`_.', '', 'The development is kindly supported by `Variomedia AG <https://www.variomedia.de/>`_.', '', "A full list of contributors can be found in GitHub's `overview <https://github.com/hynek/argon2-cffi/graphs/contributors>`_.", '', '', 'Vendored Code', '-------------', '', 'Argon2', '^^^^^^', '', 'The original Argon2 repo can be found at https://github.com/P-H-C/phc-winner-argon2/.', '', 'Except for the components listed below, the Argon2 code in this repository is copyright (c) 2015 Daniel Dinu, Dmitry Khovratovich (main authors), Jean-Philippe Aumasson and Samuel Neves, and under CC0_ license.', '', 'The string encoding routines in src/encoding.c are copyright (c) 2015 Thomas Pornin, and under CC0_ license.', '', 'The `BLAKE2 <https://blake2.net>`_ code in ``src/blake2/`` is copyright (c) Samuel Neves, 2013-2015, and under CC0_ license.', '', 'The authors of Argon2 also were very helpful to get the library to compile on ancient versions of Visual Studio for ancient versions of Python.', '', 'The documentation also quotes frequently from the Argon2 paper_ to avoid mistakes by rephrasing.', '', '.. _CC0: https://creati
|
|||
|
|
|
|||
|
|
|
|||
|
|
%package -n python3-argon2-cffi
|
|||
|
|
Summary: The secure Argon2 password hashing algorithm.
|
|||
|
|
Provides: python-argon2-cffi
|
|||
|
|
BuildRequires: python3-devel
|
|||
|
|
BuildRequires: python3-setuptools
|
|||
|
|
BuildRequires: python3-cffi
|
|||
|
|
BuildRequires: gcc
|
|||
|
|
BuildRequires: gdb
|
|||
|
|
%description -n python3-argon2-cffi
|
|||
|
|
sun ['=====================================', 'CFFI-based Argon2 Bindings for Python', '=====================================', '', '.. image:: https://readthedocs.org/projects/argon2-cffi/badge/?version=stable', ' :target: http://argon2-cffi.readthedocs.io/en/stable/?badge=stable', ' :alt: Documentation Status', '', '.. image:: https://github.com/hynek/argon2-cffi/workflows/CI/badge.svg?branch=master', ' :target: https://github.com/hynek/argon2-cffi/actions?workflow=CI', ' :alt: CI Status', '', '.. image:: https://codecov.io/github/hynek/argon2-cffi/branch/master/graph/badge.svg', ' :target: https://codecov.io/github/hynek/argon2-cffi', ' :alt: Test Coverage', '', '.. image:: https://www.irccloud.com/invite-svg?channel=%23cryptography-dev&hostname=irc.freenode.net&port=6697&ssl=1', ' :target: https://www.irccloud.com/invite?channel=%23cryptography-dev&hostname=irc.freenode.net&port=6697&ssl=1', ' :alt: IRC', '', '.. image:: https://img.shields.io/badge/code%20style-black-000000.svg', ' :target: https://github.com/ambv/black', ' :alt: Code style: black', '', '.. teaser-begin', '', '`Argon2 <https://github.com/p-h-c/phc-winner-argon2>`_ won the `Password Hashing Competition <https://password-hashing.net/>`_ and ``argon2-cffi`` is the simplest way to use it in Python and PyPy:', '', '.. code-block:: pycon', '', ' >>> from argon2 import PasswordHasher', ' >>> ph = PasswordHasher()', ' >>> hash = ph.hash("s3kr3tp4ssw0rd")', ' >>> hash # doctest: +SKIP', " '$argon2id$v=19$m=102400,t=2,p=8$tSm+JOWigOgPZx/g44K5fQ$WDyus6py50bVFIPkjA28lQ'", ' >>> ph.verify(hash, "s3kr3tp4ssw0rd")', ' True', ' >>> ph.check_needs_rehash(hash)', ' False', ' >>> ph.verify(hash, "t0t411ywr0ng")', ' Traceback (most recent call last):', ' ...', ' argon2.exceptions.VerifyMismatchError: The password does not match the supplied hash', '', '', '``argon2-cffi``\\ ’s documentation lives at `Read the Docs <https://argon2-cffi.readthedocs.io/>`_, the code on `GitHub <https://github.com/hynek/argon2-cffi>`_.', 'It’s rigorously tested on Python 2.7, 3.5+, and PyPy.', '', '', 'Release Information', '===================', '', '20.1.0 (2020-05-11)', '-------------------', '', 'Vendoring Argon2 @ `62358ba <https://github.com/P-H-C/phc-winner-argon2/tree/62358ba2123abd17fccf2a108a301d4b52c01a7c>`_ (20190702)', '', '', 'Backward-incompatible changes:', '^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^', '', '*none*', '', '', 'Deprecations:', '^^^^^^^^^^^^^', '', '*none*', '', '', 'Changes:', '^^^^^^^^', '', '- It is now possible to manually override the detection of SSE2 using the ``ARGON2_CFFI_USE_SSE2`` environment variable.', '', '`Full changelog <https://argon2-cffi.readthedocs.io/en/stable/changelog.html>`_.', '', 'Credits & License', '=================', '', '``argon2-cffi`` is maintained by Hynek Schlawack and released under the `MIT license <https://github.com/hynek/argon2-cffi/blob/master/LICENSE>`_.', '', 'The development is kindly supported by `Variomedia AG <https://www.variomedia.de/>`_.', '', "A full list of contributors can be found in GitHub's `overview <https://github.com/hynek/argon2-cffi/graphs/contributors>`_.", '', '', 'Vendored Code', '-------------', '', 'Argon2', '^^^^^^', '', 'The original Argon2 repo can be found at https://github.com/P-H-C/phc-winner-argon2/.', '', 'Except for the components listed below, the Argon2 code in this repository is copyright (c) 2015 Daniel Dinu, Dmitry Khovratovich (main authors), Jean-Philippe Aumasson and Samuel Neves, and under CC0_ license.', '', 'The string encoding routines in src/encoding.c are copyright (c) 2015 Thomas Pornin, and under CC0_ license.', '', 'The `BLAKE2 <https://blake2.net>`_ code in ``src/blake2/`` is copyright (c) Samuel Neves, 2013-2015, and under CC0_ license.', '', 'The authors of Argon2 also were very helpful to get the library to compile on ancient versions of Visual Studio for ancient versions of Python.', '', 'The documentation also quotes frequently from the Argon2 paper_ to avoid mistakes by rephrasing.', '', '.. _CC0: https://creati
|
|||
|
|
|
|||
|
|
|
|||
|
|
%package help
|
|||
|
|
Summary: Development documents and examples for argon2-cffi
|
|||
|
|
Provides: python3-argon2-cffi-doc
|
|||
|
|
%description help
|
|||
|
|
sun ['=====================================', 'CFFI-based Argon2 Bindings for Python', '=====================================', '', '.. image:: https://readthedocs.org/projects/argon2-cffi/badge/?version=stable', ' :target: http://argon2-cffi.readthedocs.io/en/stable/?badge=stable', ' :alt: Documentation Status', '', '.. image:: https://github.com/hynek/argon2-cffi/workflows/CI/badge.svg?branch=master', ' :target: https://github.com/hynek/argon2-cffi/actions?workflow=CI', ' :alt: CI Status', '', '.. image:: https://codecov.io/github/hynek/argon2-cffi/branch/master/graph/badge.svg', ' :target: https://codecov.io/github/hynek/argon2-cffi', ' :alt: Test Coverage', '', '.. image:: https://www.irccloud.com/invite-svg?channel=%23cryptography-dev&hostname=irc.freenode.net&port=6697&ssl=1', ' :target: https://www.irccloud.com/invite?channel=%23cryptography-dev&hostname=irc.freenode.net&port=6697&ssl=1', ' :alt: IRC', '', '.. image:: https://img.shields.io/badge/code%20style-black-000000.svg', ' :target: https://github.com/ambv/black', ' :alt: Code style: black', '', '.. teaser-begin', '', '`Argon2 <https://github.com/p-h-c/phc-winner-argon2>`_ won the `Password Hashing Competition <https://password-hashing.net/>`_ and ``argon2-cffi`` is the simplest way to use it in Python and PyPy:', '', '.. code-block:: pycon', '', ' >>> from argon2 import PasswordHasher', ' >>> ph = PasswordHasher()', ' >>> hash = ph.hash("s3kr3tp4ssw0rd")', ' >>> hash # doctest: +SKIP', " '$argon2id$v=19$m=102400,t=2,p=8$tSm+JOWigOgPZx/g44K5fQ$WDyus6py50bVFIPkjA28lQ'", ' >>> ph.verify(hash, "s3kr3tp4ssw0rd")', ' True', ' >>> ph.check_needs_rehash(hash)', ' False', ' >>> ph.verify(hash, "t0t411ywr0ng")', ' Traceback (most recent call last):', ' ...', ' argon2.exceptions.VerifyMismatchError: The password does not match the supplied hash', '', '', '``argon2-cffi``\\ ’s documentation lives at `Read the Docs <https://argon2-cffi.readthedocs.io/>`_, the code on `GitHub <https://github.com/hynek/argon2-cffi>`_.', 'It’s rigorously tested on Python 2.7, 3.5+, and PyPy.', '', '', 'Release Information', '===================', '', '20.1.0 (2020-05-11)', '-------------------', '', 'Vendoring Argon2 @ `62358ba <https://github.com/P-H-C/phc-winner-argon2/tree/62358ba2123abd17fccf2a108a301d4b52c01a7c>`_ (20190702)', '', '', 'Backward-incompatible changes:', '^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^', '', '*none*', '', '', 'Deprecations:', '^^^^^^^^^^^^^', '', '*none*', '', '', 'Changes:', '^^^^^^^^', '', '- It is now possible to manually override the detection of SSE2 using the ``ARGON2_CFFI_USE_SSE2`` environment variable.', '', '`Full changelog <https://argon2-cffi.readthedocs.io/en/stable/changelog.html>`_.', '', 'Credits & License', '=================', '', '``argon2-cffi`` is maintained by Hynek Schlawack and released under the `MIT license <https://github.com/hynek/argon2-cffi/blob/master/LICENSE>`_.', '', 'The development is kindly supported by `Variomedia AG <https://www.variomedia.de/>`_.', '', "A full list of contributors can be found in GitHub's `overview <https://github.com/hynek/argon2-cffi/graphs/contributors>`_.", '', '', 'Vendored Code', '-------------', '', 'Argon2', '^^^^^^', '', 'The original Argon2 repo can be found at https://github.com/P-H-C/phc-winner-argon2/.', '', 'Except for the components listed below, the Argon2 code in this repository is copyright (c) 2015 Daniel Dinu, Dmitry Khovratovich (main authors), Jean-Philippe Aumasson and Samuel Neves, and under CC0_ license.', '', 'The string encoding routines in src/encoding.c are copyright (c) 2015 Thomas Pornin, and under CC0_ license.', '', 'The `BLAKE2 <https://blake2.net>`_ code in ``src/blake2/`` is copyright (c) Samuel Neves, 2013-2015, and under CC0_ license.', '', 'The authors of Argon2 also were very helpful to get the library to compile on ancient versions of Visual Studio for ancient versions of Python.', '', 'The documentation also quotes frequently from the Argon2 paper_ to avoid mistakes by rephrasing.', '', '.. _CC0: https://creati
|
|||
|
|
|
|||
|
|
|
|||
|
|
%prep
|
|||
|
|
%autosetup -n argon2-cffi-20.1.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-argon2-cffi -f filelist.lst
|
|||
|
|
%dir %{python3_sitearch}/*
|
|||
|
|
|
|||
|
|
%files help -f doclist.lst
|
|||
|
|
%{_docdir}/*
|
|||
|
|
|
|||
|
|
%changelog
|
|||
|
|
* Mon Jul 06 2020 Python_Bot <Python_Bot@openeuler.org>
|
|||
|
|
- Package Spec generated
|