%global srcname pbkdf2 %global sum A module for a password-based key derivation function Name: python-%{srcname} Version: 1.3 Release: 5%{?dist} Summary: %{sum} License: MIT URL: https://www.dlitz.net/software/python-pbkdf2/ Source0: https://pypi.python.org/packages/source/p/%{srcname}/%{srcname}-%{version}.tar.gz Patch1: pbkdf2-license.patch Patch2: pbkdf2-remove-shebang.patch BuildArch: noarch BuildRequires: python2-devel python3-devel %description A pure Python Implementation of the password-based key derivation function, PBKDF2, specified in RSA PKCS#5 v2.0. %package -n python2-%{srcname} Summary: %{sum} %{?python_provide:%python_provide python2-%{srcname}} %description -n python2-%{srcname} A pure Python Implementation of the password-based key derivation function, PBKDF2, specified in RSA PKCS#5 v2.0. %package -n python3-%{srcname} Summary: %{sum} %{?python_provide:%python_provide python3-%{srcname}} %description -n python3-%{srcname} A pure Python Implementation of the password-based key derivation function, PBKDF2, specified in RSA PKCS#5 v2.0. %prep %autosetup -n %{srcname}-%{version} rm -rf %{srcname}.egg-info %build %py2_build %py3_build %install %py2_install %py3_install %check %{__python2} setup.py test %{__python3} setup.py test %files -n python2-%{srcname} %doc PKG-INFO %doc README.txt %license LICENSE %{python2_sitelib}/* %files -n python3-%{srcname} %doc PKG-INFO %doc README.txt %license LICENSE %{python3_sitelib}/* %changelog * Tue Nov 08 2016 Jonny Heggheim - 1.3-5 - Use autosetup - Corrrected the LICENSE file to MIT - Enable tests * Mon Apr 25 2016 Samuel Gyger - 1.3-4 - Build for python2 and python3 - Use pybuild and pyinstall * Mon Apr 25 2016 Samuel Gyger - 1.3-3 - Added proper license file and fixed license * Tue Jan 27 2015 Samuel Gyger - 1.3-2 - Fixed to be only for python2 * Tue Jan 27 2015 Samuel Gyger - 1.3-1 - Created the initial packaging for pkbdf2 on fedora.