Group :: Development/Python3
RPM: python3-module-pycryptodome
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
%define oname pycryptodome
Name: python3-module-%oname
Version: 3.18.0
Release: alt1
Summary: A self-contained cryptographic library for Python
# The source code in PyCryptodome is partially in the public domain
# and partially released under the BSD 2-Clause license.
# In either case, there are minimal if no restrictions on the redistribution,
# modification and usage of the software.
License: BSD-2-Clause
Group: Development/Python3
Url: https://www.pycryptodome.org
# https://github.com/Legrandin/pycryptodome
Packager: Grigory Ustinov <grenka at altlinux.org>
Source: %name-%version.tar
BuildRequires(pre): rpm-build-python3
Conflicts: python3-module-Crypto < %EVR
Conflicts: python3-module-pycrypto < %EVR
Obsoletes: python3-module-Crypto < %EVR
Obsoletes: python3-module-pycrypto < %EVR
Provides: python3-module-Crypto = %EVR
Provides: python3-module-pycrypto = %EVR
%py3_provides Crypto
%description
PyCryptodome is a self-contained Python package of low-level
cryptographic primitives.
%package tests
Summary: Tests for %oname
Group: Development/Python3
Requires: %name = %EVR
%description tests
PyCryptodome is a self-contained Python package of low-level
cryptographic primitives.
This package contains tests for %oname.
%prep
%setup
# hotfix for version
sed -i 's/17/17, 0/' lib/Crypto/__init__.py
%build
%add_optflags -fno-strict-aliasing
%python3_build
%install
%python3_install
%check
python3 setup.py test
%files
%doc AUTHORS.rst Changelog.rst README.rst
%python3_sitelibdir/Crypto
%python3_sitelibdir/%oname-%version-py%_python3_version.egg-info
%exclude %python3_sitelibdir/*/SelfTest
%files tests
%python3_sitelibdir/*/SelfTest
%changelog
…
Full changelog you can see here
Name: python3-module-%oname
Version: 3.18.0
Release: alt1
Summary: A self-contained cryptographic library for Python
# The source code in PyCryptodome is partially in the public domain
# and partially released under the BSD 2-Clause license.
# In either case, there are minimal if no restrictions on the redistribution,
# modification and usage of the software.
License: BSD-2-Clause
Group: Development/Python3
Url: https://www.pycryptodome.org
# https://github.com/Legrandin/pycryptodome
Packager: Grigory Ustinov <grenka at altlinux.org>
Source: %name-%version.tar
BuildRequires(pre): rpm-build-python3
Conflicts: python3-module-Crypto < %EVR
Conflicts: python3-module-pycrypto < %EVR
Obsoletes: python3-module-Crypto < %EVR
Obsoletes: python3-module-pycrypto < %EVR
Provides: python3-module-Crypto = %EVR
Provides: python3-module-pycrypto = %EVR
%py3_provides Crypto
%description
PyCryptodome is a self-contained Python package of low-level
cryptographic primitives.
%package tests
Summary: Tests for %oname
Group: Development/Python3
Requires: %name = %EVR
%description tests
PyCryptodome is a self-contained Python package of low-level
cryptographic primitives.
This package contains tests for %oname.
%prep
%setup
# hotfix for version
sed -i 's/17/17, 0/' lib/Crypto/__init__.py
%build
%add_optflags -fno-strict-aliasing
%python3_build
%install
%python3_install
%check
python3 setup.py test
%files
%doc AUTHORS.rst Changelog.rst README.rst
%python3_sitelibdir/Crypto
%python3_sitelibdir/%oname-%version-py%_python3_version.egg-info
%exclude %python3_sitelibdir/*/SelfTest
%files tests
%python3_sitelibdir/*/SelfTest
%changelog
…
Full changelog you can see here