14
0
forked from pool/python-PyNaCl

Accepting request 559378 from home:mimi_vx:branches:devel:languages:python

- update to 1.2.1
- use system libsodium

OBS-URL: https://build.opensuse.org/request/show/559378
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyNaCl?expand=0&rev=3
This commit is contained in:
2017-12-22 14:17:11 +00:00
committed by Git OBS Bridge
parent 6c2d0f2ec5
commit f8ba5261d1
4 changed files with 25 additions and 15 deletions

View File

@@ -1,3 +1,4 @@
#
# spec file for package python-PyNaCl
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
@@ -12,26 +13,28 @@
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-PyNaCl
Version: 1.1.2
Version: 1.2.1
Release: 0
License: Apache-2.0
Summary: Python binding to the Networking and Cryptography (NaCl) library
Url: https://github.com/pyca/pynacl/
License: Apache-2.0
Group: Development/Languages/Python
Source: https://pypi.python.org/packages/8d/f3/02605b056e465bf162508c4d1635a2bccd9abd1ee3ed2a1bb4e9676eac33/PyNaCl-%{version}.tar.gz
Url: https://github.com/pyca/pynacl/
Source: https://pypi.org/packages/source/P/PyNaCl/PyNaCl-%{version}.tar.gz
BuildRequires: %{python_module base}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module cffi}
BuildRequires: python-rpm-macros
BuildRequires: %{python_module devel}
BuildRequires: %{python_module pycparser}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: pkgconfig
BuildRequires: python-rpm-macros
BuildRequires: pkgconfig(libsodium)
Requires: python-six
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%python_subpackages
%description
@@ -41,8 +44,10 @@ speed.
%prep
%setup -q -n PyNaCl-%{version}
rm -Rf src/libsodium
%build
export SODIUM_INSTALL="system"
%python_build
%install
@@ -50,9 +55,8 @@ speed.
%python_expand %fdupes %{buildroot}/%{$python_sitearch}
%files %{python_files}
%defattr(-,root,root,-)
%doc LICENSE README.rst
%license LICENSE
%doc README.rst
%{python_sitearch}/*
%changelog