Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37869671
en ru br
ALT Linux repos
S:1.3-alt3

Group :: Development/Python3
RPM: python3-module-curve25519

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define _unpackaged_files_terminate_build 1
%define oname curve25519

Name: python3-module-%oname
Version: 1.3
Release: alt3
Summary: Implementations of a fast Elliptic-curve Diffie-Hellman primitive
License: BSD
Group: Development/Python3
Url: https://code.google.com/p/curve25519-donna/

# https://github.com/agl/curve25519-donna.git

Source: %{oname}-donna-%{version}.tar

BuildRequires(pre): rpm-build-python3
BuildRequires:python3-module-pytest

%py3_provides %oname

%description
curve25519 is an elliptic curve, developed by Dan Bernstein, for fast
Diffie-Hellman key agreement. DJB's original implementation was written
in a language of his own devising called qhasm. The original qhasm
source isn't available, only the x86 32-bit assembly output.

%package tests
Summary: Tests for %oname
Group: Development/Python3
Requires: %name = %EVR

%description tests
curve25519 is an elliptic curve, developed by Dan Bernstein, for fast
Diffie-Hellman key agreement. DJB's original implementation was written
in a language of his own devising called qhasm. The original qhasm
source isn't available, only the x86 32-bit assembly output.

This package contains tests for %oname.

%prep
%setup -q -n %{oname}-donna-%{version}

sed -i 's| at VERSION at |%version|' setup.py
%ifarch x86_64
sed -i 's|m32|m64|g' Makefile
%endif

%build
%python3_build_debug

%install
%python3_install

%check
rm build -fR
python3 setup.py build_ext -i
py.test3 -vv

%files
%doc README
%python3_sitelibdir/*
%exclude %python3_sitelibdir/*/test

%files tests
%python3_sitelibdir/*/test

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin