Blame SPECS/python-pynacl.spec

efaab1
%{?python_enable_dependency_generator}
efaab1
%bcond_without check
efaab1
efaab1
%global modname pynacl
efaab1
efaab1
Name:           python-%{modname}
efaab1
Version:        1.4.0
efaab1
Release:        2%{?dist}
efaab1
Summary:        Python binding to the Networking and Cryptography (NaCl) library
efaab1
efaab1
License:        ASL 2.0
efaab1
URL:            https://github.com/pyca/pynacl
efaab1
Source0:        %{url}/archive/%{version}/%{modname}-%{version}.tar.gz
efaab1
efaab1
# remove spurious wheel dependency
efaab1
Patch1:         %{url}/pull/596.patch
efaab1
efaab1
BuildRequires:  gcc
efaab1
BuildRequires:  libsodium-devel
efaab1
efaab1
%global _description \
efaab1
PyNaCl is a Python binding to the Networking and Cryptography library,\
efaab1
a crypto library with the stated goal of improving usability, security\
efaab1
and speed.
efaab1
efaab1
%description %{_description}
efaab1
efaab1
%package -n python3-%{modname}
efaab1
Summary:        %{summary}
efaab1
%{?python_provide:%python_provide python3-%{modname}}
efaab1
BuildRequires:  python3-devel
efaab1
BuildRequires:  python3-setuptools
efaab1
BuildRequires:  python3-cffi >= 1.4.1
efaab1
%if %{with check}
efaab1
BuildRequires:  python3-six
efaab1
BuildRequires:  python3-pytest >= 3.2.1
efaab1
BuildRequires:  python3-hypothesis >= 3.27.0
efaab1
%endif
efaab1
efaab1
%description -n python3-%{modname} %{_description}
efaab1
efaab1
Python 3 version.
efaab1
efaab1
%prep
efaab1
%autosetup -p1 -n %{modname}-%{version}
efaab1
# Remove bundled libsodium, to be sure
efaab1
rm -vrf src/libsodium/
efaab1
efaab1
# ARM and s390x is too slow for upstream tests
efaab1
# See https://bugzilla.redhat.com/show_bug.cgi?id=1594901
efaab1
# And https://github.com/pyca/pynacl/issues/370
efaab1
%ifarch s390x %{arm}
efaab1
sed -i 's/@settings(deadline=1500, max_examples=5)/@settings(deadline=4000, max_examples=5)/' tests/test_pwhash.py
efaab1
%endif
efaab1
efaab1
%build
efaab1
export SODIUM_INSTALL=system
efaab1
%py3_build
efaab1
efaab1
%install
efaab1
%py3_install
efaab1
efaab1
%if %{with check}
efaab1
%check
efaab1
PYTHONPATH=%{buildroot}%{python3_sitearch} py.test-3 -v
efaab1
%endif
efaab1
efaab1
%files -n python3-%{modname}
efaab1
%license LICENSE
efaab1
%doc README.rst
efaab1
%{python3_sitearch}/PyNaCl-*.egg-info/
efaab1
%{python3_sitearch}/nacl/
efaab1
efaab1
%changelog
efaab1
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-2
efaab1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
efaab1
efaab1
* Wed Aug 26 2020 Damien Ciabrini <dciabrin@redhat.com> - 1.4.0-1
efaab1
- Update to 1.4.0 (#1840424)
efaab1
efaab1
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-9
efaab1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
efaab1
efaab1
* Sun May 24 2020 Miro Hrončok <mhroncok@redhat.com> - 1.3.0-8
efaab1
- Rebuilt for Python 3.9
efaab1
efaab1
* Mon May 11 2020 Miro Hrončok <mhroncok@redhat.com> - 1.3.0-7
efaab1
- Fix build with hypothesis 5 (#1830961)
efaab1
efaab1
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-6
efaab1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
efaab1
efaab1
* Sun Oct 13 2019 Miro Hrončok <mhroncok@redhat.com> - 1.3.0-5
efaab1
- Subpackage python2-pynacl has been removed
efaab1
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
efaab1
efaab1
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.3.0-4
efaab1
- Rebuilt for Python 3.8.0rc1 (#1748018)
efaab1
efaab1
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.3.0-3
efaab1
- Rebuilt for Python 3.8
efaab1
efaab1
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-2
efaab1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
efaab1
efaab1
* Fri Feb 15 2019 Yatin Karel <ykarel@redhat.com> - 1.3.0-1
efaab1
- Update to 1.3.0
efaab1
efaab1
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-4
efaab1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
efaab1
efaab1
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-3
efaab1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
efaab1
efaab1
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.2.1-2
efaab1
- Rebuilt for Python 3.7
efaab1
- Prolong the deadline for tests on s390x
efaab1
- Don't ignore the test results on arm, do the same as on s390x
efaab1
efaab1
* Tue Mar 27 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.2.1-1
efaab1
- Update to 1.2.1
efaab1
efaab1
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-2
efaab1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
efaab1
efaab1
* Thu Nov 02 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.2.0-1
efaab1
- Update to 1.2.0
efaab1
efaab1
* Mon Oct 02 2017 Remi Collet <remi@fedoraproject.org> - 1.1.2-4
efaab1
- rebuild for libsodium
efaab1
efaab1
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.2-3
efaab1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
efaab1
efaab1
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.2-2
efaab1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
efaab1
efaab1
* Sat Apr 01 2017 Igor Gnatenko <ignatenko@redhat.com> - 1.1.2-1
efaab1
- Update to 1.1.2
efaab1
efaab1
* Thu Mar 16 2017 Igor Gnatenko <ignatenko@redhat.com> - 1.1.1-1
efaab1
- Update to 1.1.1
efaab1
efaab1
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-3
efaab1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
efaab1
efaab1
* Thu Dec 22 2016 Miro Hrončok <mhroncok@redhat.com> - 1.0.1-2
efaab1
- Rebuild for Python 3.6
efaab1
efaab1
* Mon Dec 19 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 1.0.1-1
efaab1
- Initial package