diff --git a/.python-argon2-cffi.metadata b/.python-argon2-cffi.metadata new file mode 100644 index 0000000..923b9f1 --- /dev/null +++ b/.python-argon2-cffi.metadata @@ -0,0 +1 @@ +c79943104960db3024346731d5153392c187c0d7 SOURCES/argon2-cffi-20.1.0.tar.gz diff --git a/SOURCES/README.md b/SOURCES/README.md new file mode 100644 index 0000000..3bc0479 --- /dev/null +++ b/SOURCES/README.md @@ -0,0 +1,3 @@ +# python-argon2-cffi + +The python-argon2-cffi package \ No newline at end of file diff --git a/SPECS/python-argon2-cffi.spec b/SPECS/python-argon2-cffi.spec new file mode 100644 index 0000000..5bc1912 --- /dev/null +++ b/SPECS/python-argon2-cffi.spec @@ -0,0 +1,120 @@ +%global pypi_name argon2-cffi + +Name: python-%{pypi_name} +Version: 20.1.0 +Release: 7%{?dist} +Summary: The secure Argon2 password hashing algorithm + +License: MIT +URL: https://argon2-cffi.readthedocs.io/ +Source0: %{pypi_source} + +BuildRequires: gcc +BuildRequires: python3-devel >= 3.5 +BuildRequires: python3dist(cffi) +BuildRequires: python3dist(hypothesis) +BuildRequires: python3dist(pytest) +BuildRequires: python3dist(setuptools) +BuildRequires: python3dist(six) +BuildRequires: python3dist(sphinx) +BuildRequires: python3dist(wheel) +BuildRequires: pkgconfig(libargon2) + +%description +CFFI-based Argon2 Bindings for Python. + + +%package -n python3-%{pypi_name} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{pypi_name} +CFFI-based Argon2 Bindings for Python. + + +%package -n python-%{pypi_name}-doc +Summary: Documentation for argon2-cffi + +%description -n python-%{pypi_name}-doc +Documentation for argon2-cffi. + + +%prep +%autosetup -n %{pypi_name}-%{version} +# Remove bundled egg-info +rm -rf %{pypi_name}.egg-info + +# using system libargon +rm -r extras/libargon2/LICENSE \ + extras/libargon2/README.md \ + docs/license.rst + + +%build +export ARGON2_CFFI_USE_SYSTEM=1 +%py3_build +# generate html docs +PYTHONPATH=${PWD} sphinx-build-3 docs html + +# remove the sphinx-build leftovers +rm -rf html/.{doctrees,buildinfo} + + +%install +%py3_install + + +%check +# test_repr is temporarily disabled due to combatibility issues with Python 3.10., +# once it is fixed in the upstream it can be enabled again. +# For more info see: https://bugzilla.redhat.com/show_bug.cgi?id=1948967 +%pytest -k "not test_repr" + + +%files -n python3-%{pypi_name} +%license LICENSE +%doc README.rst +%{python3_sitearch}/argon2/ +%{python3_sitearch}/argon2_cffi-%{version}-py%{python3_version}.egg-info/ + +%files -n python-%{pypi_name}-doc +%license LICENSE +%doc html + + +%changelog +* Fri Jul 23 2021 Fedora Release Engineering - 20.1.0-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Fri Jun 04 2021 Python Maint - 20.1.0-6 +- Rebuilt for Python 3.10 + +* Wed Jan 27 2021 Miro Hrončok - 20.1.0-5 +- Stop requiring test dependencies on runtime +- Run tests during build + +* Wed Jan 27 2021 Fedora Release Engineering - 20.1.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Tue Jul 28 2020 Fedora Release Engineering - 20.1.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue May 26 2020 Miro Hrončok - 20.1.0-2 +- Rebuilt for Python 3.9 + +* Thu May 21 2020 Artem Polishchuk - 20.1.0-1 +- Update to 20.1.0 +- Disable LTO + +* Thu Jan 30 2020 Fedora Release Engineering - 19.2.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Sun Jan 19 2020 Artem Polishchuk - 19.2.0-1 +- Update to 19.2.0 +- Switch to {pypi_source} +- Enable LTO +- Cosmetic spec file fix +- Minimum Python version is >= 3.5 now + +* Fri Jun 14 2019 Pavlo Rudyi - 19.1.0-1 +- initial build