Log In
Log In
Places
All Projects
Status Monitor
Collapse sidebar
matrix-synapse
python-pynacl
python-pynacl.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-pynacl.spec of Package python-pynacl
%bcond_without check %global modname pynacl Name: python-%{modname} Version: 1.2.1 Release: 1%{?dist} Summary: Python binding to the Networking and Cryptography (NaCl) library License: ASL 2.0 URL: https://github.com/pyca/pynacl Source0: https://github.com/pyca/pynacl/archive/%{version}/%{modname}-%{version}.tar.gz BuildRequires: libsodium-devel >= 1.0.15 %global _description \ PyNaCl is a Python binding to the Networking and Cryptography library,\ a crypto library with the stated goal of improving usability, security\ and speed. %description %{_description} %package -n python2-%{modname} Summary: %{summary} %{?python_provide:%python_provide python2-%{modname}} BuildRequires: python2-devel BuildRequires: python2-setuptools BuildRequires: python2-cffi >= 1.4.1 %if %{with check} BuildRequires: python2-six BuildRequires: python2-pytest >= 3.2.1 BuildRequires: python2-hypothesis >= 3.27.0 %endif Requires: python2-cffi >= 1.4.1 Requires: python2-six %description -n python2-%{modname} %{_description} Python 2 version. %package -n python3-%{modname} Summary: %{summary} %{?python_provide:%python_provide python3-%{modname}} BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-cffi >= 1.4.1 %if %{with check} BuildRequires: python3-six BuildRequires: python3-pytest >= 3.2.1 BuildRequires: python3-hypothesis >= 3.27.0 %endif Requires: python3-cffi >= 1.4.1 Requires: python3-six %description -n python3-%{modname} %{_description} Python 3 version. %prep %autosetup -n %{modname}-%{version} # Remove bundled libsodium, to be sure rm -vrf src/libsodium/ %build export SODIUM_INSTALL=system %py2_build %py3_build %install %py2_install %py3_install %if %{with check} %check # ARM is too slow for upstream tests # https://github.com/pyca/pynacl/issues/370 PYTHONPATH=%{buildroot}%{python2_sitearch} py.test-%{python2_version} -v \ %ifarch %{arm} || : %else ; %endif PYTHONPATH=%{buildroot}%{python3_sitearch} py.test-%{python3_version} -v \ %ifarch %{arm} || : %else ; %endif %endif %files -n python2-%{modname} %license LICENSE %doc README.rst %{python2_sitearch}/PyNaCl-*.egg-info/ %{python2_sitearch}/nacl/ %files -n python3-%{modname} %license LICENSE %doc README.rst %{python3_sitearch}/PyNaCl-*.egg-info/ %{python3_sitearch}/nacl/
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Contact
Support
@OBShq
The Open Build Service is an
openSUSE project
.
Log In
Places
Places
All Projects
Status Monitor