forked from pool/python-libnacl
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-libnacl?expand=0&rev=35
This commit is contained in:
committed by
Git OBS Bridge
parent
8a7cabf8ee
commit
e79380a947
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-libnacl
|
||||
#
|
||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -23,30 +23,22 @@ Release: 0
|
||||
Summary: Python bindings for libsodium based on ctypes
|
||||
License: Apache-2.0
|
||||
Group: Development/Languages/Python
|
||||
Url: https://github.com/saltstack/libnacl
|
||||
URL: https://github.com/saltstack/libnacl
|
||||
Source0: https://github.com/saltstack/libnacl/archive/v%{version}.tar.gz
|
||||
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: python-rpm-macros
|
||||
# libnacl/__init__.py only looks for sonames 17, 13, 10, 5, 4
|
||||
# plus 18 with Patch0
|
||||
%if 0%{?suse_version} >= 1310
|
||||
BuildRequires: pkgconfig(libsodium)
|
||||
%else
|
||||
BuildRequires: libsodium-devel <= 1.0.8
|
||||
%endif
|
||||
|
||||
# make sure we require the libsodium version we were built with
|
||||
# this is extracted from the requires_eq macro because we need the -a parameter to expand the wildcard in the package name.
|
||||
%(LC_ALL=C rpm -q -a --qf "Requires: %%{name}(%{__isa}) = %%{version}\n" 'libsodium*' | grep -v libsodium-devel | sed -e 's/ (none):/ /' -e 's/ 0:/ /' | grep -v "is not")
|
||||
|
||||
# This will need updating and verification but smart magic is not copied by
|
||||
# singlespec macros
|
||||
Requires: libsodium23
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
This library is used to gain direct access to the functions exposed by Daniel J. Bernstein's nacl library via libsodium.
|
||||
It has been constructed to maintain extensive documentation on how to use nacl as well as being completely portable. The file
|
||||
It has been constructed to maintain extensive documentation on how to use nacl as well as being completely portable. The file
|
||||
in libnacl/__init__.py can be pulled out and placed directly in any project to give a single file binding to all of nacl.
|
||||
|
||||
%prep
|
||||
@@ -59,8 +51,12 @@ in libnacl/__init__.py can be pulled out and placed directly in any project to g
|
||||
%python_install
|
||||
%python_expand %fdupes -s %{buildroot}/%{$python_sitelib}
|
||||
|
||||
%check
|
||||
%python_expand $python tests/runtests.py
|
||||
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root)
|
||||
%license LICENSE
|
||||
%doc README.rst
|
||||
%{python_sitelib}/*
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user