Files
openRuyi/SPECS/python-PyNaCl/python-PyNaCl.spec
2026-03-19 23:06:27 +08:00

52 lines
1.3 KiB
RPMSpec

# SPDX-FileCopyrightText: (C) 2025 Institute of Software, Chinese Academy of Sciences (ISCAS)
# SPDX-FileCopyrightText: (C) 2025 openRuyi Project Contributors
# SPDX-FileContributor: Zheng Junjie <zhengjunjie@iscas.ac.cn>
#
# SPDX-License-Identifier: MulanPSL-2.0
%global srcname PyNaCl
Name: python-%{srcname}
Version: 1.5.0
Release: %autorelease
License: Apache-2.0
URL: https://github.com/pyca/pynacl/
Summary: Python bindings to libsodium
#!RemoteAsset
Source0: https://files.pythonhosted.org/packages/source/P/%{srcname}/%{srcname}-%{version}.tar.gz
BuildSystem: pyproject
BuildOption(install): -l nacl +auto
BuildRequires: pkgconfig(libsodium)
BuildRequires: pyproject-rpm-macros
BuildRequires: pytest
BuildRequires: python3dist(hypothesis)
BuildRequires: pkgconfig(python3)
Provides: python3-%{srcname}
%python_provide python3-%{srcname}
%description
PyNaCl is a Python binding to libsodium, which is a fork of the
Networking and Cryptography library. These libraries have a stated goal
of improving usability, security and speed.
%prep -a
rm -rfv src/libsodium/
%generate_buildrequires
%pyproject_buildrequires
%build -p
export SODIUM_INSTALL=system
%check -a
%pytest
%files -f %{pyproject_files}
%doc README.rst
%changelog
%{?autochangelog}