15
0
forked from pool/python-pbkdf2
Files
python-pbkdf2/python-pbkdf2.spec

49 lines
1000 B
RPMSpec
Raw Normal View History

#
# spec file for package python-pbkdf2
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-pbkdf2
Version: 0
Release: 0
Summary: PKCS#5 v2.0 PBKDF2 Module
License: MIT
Group: Development/Libraries/Python
Url: http://www.dlitz.net/software/%{name}/
Source: %{name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: %{python_module base}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module pycrypto}
BuildRequires: python-rpm-macros
%ifpython2
Requires: python2-pycrypto
%endif
%ifpython3
Requires: python3-pycrypto
%endif
%python_subpackages
%description
This module implements the password-based key derivation function, PBKDF2, specified in RSA PKCS#5 v2.0.
%prep
%setup -q
%build
%python_build
%install
%python_install
%check
%python_exec setup.py test
%files %python_files
%defattr(-,root,root,-)
%{python_sitelib}/*
%doc README.txt
%changelog