2014-06-14 11:06:39 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-pyaes
|
|
|
|
#
|
|
|
|
|
2017-11-08 19:14:54 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2014-06-14 11:06:39 +00:00
|
|
|
Name: python-pyaes
|
2017-11-08 19:14:54 +00:00
|
|
|
Version: 0
|
2014-06-14 11:06:39 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Pure-Python Implementation of the AES block-cipher
|
2017-11-08 19:14:54 +00:00
|
|
|
License: MIT
|
2014-06-14 11:06:39 +00:00
|
|
|
Group: Development/Languages/Python
|
2017-11-08 19:14:54 +00:00
|
|
|
Url: https://github.com/ricmoo/pyaes/
|
|
|
|
Source: %{name}-%{version}.tar.gz
|
2014-06-14 11:06:39 +00:00
|
|
|
BuildArch: noarch
|
2017-11-08 19:14:54 +00:00
|
|
|
BuildRequires: %{python_module base}
|
|
|
|
BuildRequires: %{python_module nose}
|
|
|
|
BuildRequires: %{python_module pycrypto}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
Requires: python-pycrypto
|
|
|
|
|
|
|
|
%python_subpackages
|
2014-06-14 11:06:39 +00:00
|
|
|
|
|
|
|
%description
|
2017-11-08 19:14:54 +00:00
|
|
|
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.
|
2014-06-14 11:06:39 +00:00
|
|
|
|
|
|
|
%prep
|
2017-11-08 19:14:54 +00:00
|
|
|
%setup -q
|
2014-06-14 11:06:39 +00:00
|
|
|
|
|
|
|
%build
|
2017-11-08 19:14:54 +00:00
|
|
|
%python_build
|
2014-06-14 11:06:39 +00:00
|
|
|
|
|
|
|
%install
|
2017-11-08 19:14:54 +00:00
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2014-06-14 11:06:39 +00:00
|
|
|
|
|
|
|
%check
|
2017-11-08 19:14:54 +00:00
|
|
|
%python_exec -m nose
|
2014-06-14 11:06:39 +00:00
|
|
|
|
2017-11-08 19:14:54 +00:00
|
|
|
%files %python_files
|
2014-06-14 11:06:39 +00:00
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{python_sitelib}/*
|
2017-11-08 19:14:54 +00:00
|
|
|
%doc LICENSE.txt README.md
|
2014-06-14 11:06:39 +00:00
|
|
|
|
2017-11-08 19:14:54 +00:00
|
|
|
%changelog
|