2019-09-24 18:13:29 +00:00
|
|
|
%global pypi_name argon2-cffi
|
|
|
|
|
|
|
|
Name: python-%{pypi_name}
|
2020-05-21 23:53:10 +00:00
|
|
|
Version: 20.1.0
|
2021-01-27 13:46:02 +00:00
|
|
|
Release: 5%{?dist}
|
2019-09-24 18:13:29 +00:00
|
|
|
Summary: The secure Argon2 password hashing algorithm
|
|
|
|
|
|
|
|
License: MIT
|
|
|
|
URL: https://argon2-cffi.readthedocs.io/
|
2020-01-19 11:46:37 +00:00
|
|
|
Source0: %{pypi_source}
|
2020-05-21 23:53:10 +00:00
|
|
|
|
2019-09-24 18:13:29 +00:00
|
|
|
BuildRequires: gcc
|
2020-01-19 11:46:37 +00:00
|
|
|
BuildRequires: python3-devel >= 3.5
|
2019-09-24 18:13:29 +00:00
|
|
|
BuildRequires: python3dist(cffi)
|
|
|
|
BuildRequires: python3dist(hypothesis)
|
|
|
|
BuildRequires: python3dist(pytest)
|
|
|
|
BuildRequires: python3dist(setuptools)
|
|
|
|
BuildRequires: python3dist(six)
|
|
|
|
BuildRequires: python3dist(sphinx)
|
2020-01-19 11:46:37 +00:00
|
|
|
BuildRequires: python3dist(wheel)
|
|
|
|
BuildRequires: pkgconfig(libargon2)
|
2019-09-24 18:13:29 +00:00
|
|
|
|
|
|
|
%description
|
2020-01-19 11:46:37 +00:00
|
|
|
CFFI-based Argon2 Bindings for Python.
|
|
|
|
|
2019-09-24 18:13:29 +00:00
|
|
|
|
|
|
|
%package -n python3-%{pypi_name}
|
|
|
|
Summary: %{summary}
|
|
|
|
%{?python_provide:%python_provide python3-%{pypi_name}}
|
2020-05-21 23:53:10 +00:00
|
|
|
|
2019-09-24 18:13:29 +00:00
|
|
|
%description -n python3-%{pypi_name}
|
2020-01-19 11:46:37 +00:00
|
|
|
CFFI-based Argon2 Bindings for Python.
|
2019-09-24 18:13:29 +00:00
|
|
|
|
2020-01-19 11:46:37 +00:00
|
|
|
|
|
|
|
%package -n python-%{pypi_name}-doc
|
2019-09-24 18:13:29 +00:00
|
|
|
Summary: Documentation for argon2-cffi
|
2020-01-19 11:46:37 +00:00
|
|
|
|
2019-09-24 18:13:29 +00:00
|
|
|
%description -n python-%{pypi_name}-doc
|
2020-01-19 11:46:37 +00:00
|
|
|
Documentation for argon2-cffi.
|
|
|
|
|
2019-09-24 18:13:29 +00:00
|
|
|
|
|
|
|
%prep
|
2020-01-19 11:46:37 +00:00
|
|
|
%autosetup -n %{pypi_name}-%{version}
|
2019-09-24 18:13:29 +00:00
|
|
|
# Remove bundled egg-info
|
|
|
|
rm -rf %{pypi_name}.egg-info
|
2020-05-21 23:53:10 +00:00
|
|
|
|
2019-09-24 18:13:29 +00:00
|
|
|
# using system libargon
|
2020-01-19 11:46:37 +00:00
|
|
|
rm -r extras/libargon2/LICENSE \
|
|
|
|
extras/libargon2/README.md \
|
|
|
|
docs/license.rst
|
|
|
|
|
2019-09-24 18:13:29 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
export ARGON2_CFFI_USE_SYSTEM=1
|
|
|
|
%py3_build
|
2020-05-21 23:53:10 +00:00
|
|
|
# generate html docs
|
2019-09-24 18:13:29 +00:00
|
|
|
PYTHONPATH=${PWD} sphinx-build-3 docs html
|
2020-05-21 23:53:10 +00:00
|
|
|
|
2019-09-24 18:13:29 +00:00
|
|
|
# remove the sphinx-build leftovers
|
|
|
|
rm -rf html/.{doctrees,buildinfo}
|
|
|
|
|
2020-01-19 11:46:37 +00:00
|
|
|
|
2019-09-24 18:13:29 +00:00
|
|
|
%install
|
|
|
|
%py3_install
|
|
|
|
|
2020-01-19 11:46:37 +00:00
|
|
|
|
2019-09-24 18:13:29 +00:00
|
|
|
%check
|
2021-01-27 13:49:55 +00:00
|
|
|
%pytest
|
2019-09-24 18:13:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
%files -n python3-%{pypi_name}
|
2020-05-21 23:53:10 +00:00
|
|
|
%license LICENSE
|
2019-09-24 18:13:29 +00:00
|
|
|
%doc README.rst
|
2020-01-19 11:46:37 +00:00
|
|
|
%{python3_sitearch}/argon2/
|
|
|
|
%{python3_sitearch}/argon2_cffi-%{version}-py%{python3_version}.egg-info/
|
2019-09-24 18:13:29 +00:00
|
|
|
|
|
|
|
%files -n python-%{pypi_name}-doc
|
|
|
|
%license LICENSE
|
2020-01-19 11:46:37 +00:00
|
|
|
%doc html
|
2019-09-24 18:13:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2021-01-27 13:46:02 +00:00
|
|
|
* Wed Jan 27 2021 Miro Hrončok <mhroncok@redhat.com> - 20.1.0-5
|
|
|
|
- Stop requiring test dependencies on runtime
|
2021-01-27 13:49:55 +00:00
|
|
|
- Run tests during build
|
2021-01-27 13:46:02 +00:00
|
|
|
|
2021-01-27 09:24:19 +00:00
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 20.1.0-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
2020-07-28 23:46:46 +00:00
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 20.1.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
2020-05-26 01:02:42 +00:00
|
|
|
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 20.1.0-2
|
|
|
|
- Rebuilt for Python 3.9
|
|
|
|
|
2020-05-21 23:53:10 +00:00
|
|
|
* Thu May 21 2020 Artem Polishchuk <ego.cordatus@gmail.com> - 20.1.0-1
|
|
|
|
- Update to 20.1.0
|
|
|
|
- Disable LTO
|
|
|
|
|
2020-01-30 10:43:12 +00:00
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 19.2.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
2020-01-19 11:46:37 +00:00
|
|
|
* Sun Jan 19 2020 Artem Polishchuk <ego.cordatus@gmail.com> - 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
|
|
|
|
|
2019-09-24 18:13:29 +00:00
|
|
|
* Fri Jun 14 2019 Pavlo Rudyi <paulcarroty@fedoraproject.org> - 19.1.0-1
|
|
|
|
- initial build
|