14
0
forked from pool/python-pyaes
Files
python-pyaes/python-pyaes.spec

46 lines
1.1 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-pyaes
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-pyaes
Version: 0
Release: 0
Summary: Pure-Python Implementation of the AES block-cipher
License: MIT
Group: Development/Languages/Python
Url: https://github.com/ricmoo/pyaes/
Source: %{name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: %{python_module base}
BuildRequires: %{python_module nose}
BuildRequires: %{python_module pycrypto}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-pycrypto
%python_subpackages
%description
A pure-Python implementation of the AES (FIPS-197) block-cipher algorithm and common modes of operation (CBC, CFB, CTR, ECB, OFB) with no dependencies beyond standard Python libraries. See README.md for API reference and details.
%prep
%setup -q
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_exec -m nose
%files %python_files
%defattr(-,root,root,-)
%{python_sitelib}/*
%doc LICENSE.txt README.md
%changelog