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