2014-06-14 11:06:39 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-pyaes
|
|
|
|
#
|
2024-02-19 05:12:20 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2017-11-17 19:15:49 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2020-08-16 08:13:40 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2017-11-17 19:15:49 +00:00
|
|
|
#
|
|
|
|
|
2014-06-14 11:06:39 +00:00
|
|
|
|
|
|
|
Name: python-pyaes
|
2017-11-17 19:15:49 +00:00
|
|
|
Version: 1.6.1
|
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
|
2020-08-16 08:13:40 +00:00
|
|
|
URL: https://github.com/ricmoo/pyaes/
|
2017-11-17 19:15:49 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/p/pyaes/pyaes-%{version}.tar.gz
|
2024-02-19 05:12:20 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2022-06-29 17:18:22 +00:00
|
|
|
BuildRequires: %{python_module pycryptodome}
|
2024-02-19 05:12:20 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: %{python_module wheel}
|
2017-11-08 19:14:54 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2022-06-29 17:18:22 +00:00
|
|
|
Requires: python-pycryptodome
|
2020-08-16 08:13:40 +00:00
|
|
|
BuildArch: noarch
|
2017-11-08 19:14:54 +00:00
|
|
|
%python_subpackages
|
2014-06-14 11:06:39 +00:00
|
|
|
|
|
|
|
%description
|
2020-08-16 08:13:40 +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-17 19:15:49 +00:00
|
|
|
%setup -q -n pyaes-%{version}
|
2014-06-14 11:06:39 +00:00
|
|
|
|
|
|
|
%build
|
2024-02-19 05:12:20 +00:00
|
|
|
%pyproject_wheel
|
2014-06-14 11:06:39 +00:00
|
|
|
|
|
|
|
%install
|
2024-02-19 05:12:20 +00:00
|
|
|
%pyproject_install
|
2017-11-08 19:14:54 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2014-06-14 11:06:39 +00:00
|
|
|
|
|
|
|
%check
|
2020-08-16 08:13:40 +00:00
|
|
|
%python_expand for test in tests/*.py; do PYTHONPATH=%{buildroot}%{$python_sitelib} $python $test; done | tee output.log
|
|
|
|
if grep -q passed=False output.log; then
|
|
|
|
false
|
|
|
|
fi
|
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
%doc README.md
|
|
|
|
%license LICENSE.txt
|
2024-02-19 05:12:20 +00:00
|
|
|
%{python_sitelib}/pyaes
|
|
|
|
%{python_sitelib}/pyaes-%{version}.dist-info
|
2014-06-14 11:06:39 +00:00
|
|
|
|
2017-11-08 19:14:54 +00:00
|
|
|
%changelog
|