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