Hello community, here is the log from the commit of package python-passlib for openSUSE:Factory checked in at 2017-05-17 10:54:52 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-passlib (Old) and /work/SRC/openSUSE:Factory/.python-passlib.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python-passlib" Wed May 17 10:54:52 2017 rev:16 rq:495349 version:1.7.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-passlib/python-passlib.changes 2017-02-03 18:58:01.528246888 +0100 +++ /work/SRC/openSUSE:Factory/.python-passlib.new/python-passlib.changes 2017-05-17 10:54:57.705698870 +0200 @@ -1,0 +2,6 @@ +Sat Apr 22 16:44:52 UTC 2017 - aloisio@gmx.com + +- Converted to single-spec +- Enabled tests + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-passlib.spec ++++++ --- /var/tmp/diff_new_pack.0ht0Fu/_old 2017-05-17 10:54:58.437595907 +0200 +++ /var/tmp/diff_new_pack.0ht0Fu/_new 2017-05-17 10:54:58.441595345 +0200 @@ -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 @@ 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 @@ %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