Blame python-axolotl-curve25519.spec

cf84156
%global git_tag 0.4.1-2
cf84156
cf84156
Name:           python-axolotl-curve25519
cf84156
Version:        0.4.1
82918b8
Release:        %autorelease
cf84156
Summary:        Python wrapper for curve25519
cf84156
0fe0a57
# The entire source code is GPL-3.0-only except:
0fe0a57
# curve/curve25519-donna.[c|h] which is BSD-3-Clause.
0fe0a57
License:        GPL-3.0-only and BSD-3-Clause
cf84156
URL:            https://github.com/tgalal/python-axolotl-curve25519
cf84156
Source0:        %{url}/archive/%{git_tag}/%{git_tag}.tar.gz
cf84156
# License file for curve/curve25519-donna.[c|h]
cf84156
Source1:	LICENSE.curve25519-donna
088b12b
Patch0: python-axolotl-curve25519-c99.patch
cf84156
cf84156
BuildRequires:  gcc
cf84156
BuildRequires:  python3-devel
cf84156
cf84156
%global _description %{expand:
cf84156
This is a python wrapper for the curve25519 library with ed25519 signatures.}
cf84156
cf84156
%description %_description
cf84156
cf84156
%package -n python3-axolotl-curve25519
cf84156
Summary:        %{summary}
cf84156
cf84156
%description -n python3-axolotl-curve25519 %_description
cf84156
cf84156
cf84156
%prep
cf84156
%autosetup -p1 -n %{name}-%{git_tag}
cf84156
cf84156
%generate_buildrequires
cf84156
%pyproject_buildrequires
cf84156
cf84156
cf84156
%build
cf84156
%pyproject_wheel
cf84156
cf84156
cf84156
%install
cf84156
%pyproject_install
cf84156
%pyproject_save_files axolotl_curve25519
cf84156
cp -p %{SOURCE1} LICENSE.curve25519-donna
cf84156
cf84156
%files -n python3-axolotl-curve25519 -f %{pyproject_files}
cf84156
%doc README.md
cf84156
%license LICENSE
cf84156
%license LICENSE.curve25519-donna
cf84156
cf84156
cf84156
%changelog
82918b8
%autochangelog