diff --git a/python-passlib.changes b/python-passlib.changes index d5c352f..162ef19 100644 --- a/python-passlib.changes +++ b/python-passlib.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sat Apr 22 16:44:52 UTC 2017 - aloisio@gmx.com + +- Converted to single-spec +- Enabled tests + ------------------------------------------------------------------- Tue Jan 31 15:08:14 UTC 2017 - michael@stroeder.com diff --git a/python-passlib.spec b/python-passlib.spec index 88b948b..459f9b1 100644 --- a/python-passlib.spec +++ b/python-passlib.spec @@ -1,7 +1,7 @@ # # spec file for package python-passlib # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,6 +16,7 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-passlib Version: 1.7.1 Release: 0 @@ -24,15 +25,15 @@ Summary: Comprehensive password hashing framework supporting over 20 sche License: BSD-3-Clause Group: Development/Languages/Python Source: https://files.pythonhosted.org/packages/source/p/passlib/passlib-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +# test requirements +BuildRequires: %{python_module nose} BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: python-devel -BuildRequires: python-nose -BuildRequires: python-setuptools -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%else BuildArch: noarch -%endif +%python_subpackages %description Passlib is a password hashing library for Python 2 & 3, @@ -46,14 +47,19 @@ to providing full-strength password hashing for multi-user applications. %setup -q -n passlib-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install +%python_expand %fdupes -s %{buildroot}%{$python_sitelib} -%files +%check +%python_expand nosetests-%{$python_version} -v + +%files %{python_files} %defattr(-,root,root) %doc LICENSE README -%{python_sitelib}/* +%{python_sitelib}/passlib +%{python_sitelib}/passlib-%{version}-py%{python_version}.egg-info %changelog