diff --git a/python-passlib-1.7.1-libxcrypt-compat.patch b/python-passlib-1.7.1-libxcrypt-compat.patch new file mode 100644 index 0000000..69dbab6 --- /dev/null +++ b/python-passlib-1.7.1-libxcrypt-compat.patch @@ -0,0 +1,24 @@ +Index: passlib-1.7.1/passlib/tests/test_handlers.py +=================================================================== +--- passlib-1.7.1.orig/passlib/tests/test_handlers.py ++++ passlib-1.7.1/passlib/tests/test_handlers.py +@@ -176,7 +176,8 @@ class _bsdi_crypt_test(HandlerCase): + + platform_crypt_support = [ + ("freebsd|openbsd|netbsd|darwin", True), +- ("linux|solaris", False), ++ ("solaris", False), ++ # linux - may be present in libxcrypt + ] + + def test_77_fuzz_input(self, **kwds): +@@ -1253,7 +1254,8 @@ class _sha1_crypt_test(HandlerCase): + + platform_crypt_support = [ + ("netbsd", True), +- ("freebsd|openbsd|linux|solaris|darwin", False), ++ ("freebsd|openbsd|solaris|darwin", False), ++ # linux - may be present in libxcrypt + ] + + # create test cases for specific backends diff --git a/python-passlib.changes b/python-passlib.changes index 45b220c..2721879 100644 --- a/python-passlib.changes +++ b/python-passlib.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Mon Mar 18 10:46:39 UTC 2019 - Tomáš Chvátal + +- Add patch to fix libxcrypt compatibility: + * python-passlib-1.7.1-libxcrypt-compat.patch + +------------------------------------------------------------------- +Sat Mar 2 15:20:20 UTC 2019 - Tomáš Chvátal + +- Do not use symlinks when creating fdupes + ------------------------------------------------------------------- Wed Dec 19 00:03:58 UTC 2018 - Jan Engelhardt diff --git a/python-passlib.spec b/python-passlib.spec index 97b4a25..515effb 100644 --- a/python-passlib.spec +++ b/python-passlib.spec @@ -1,7 +1,7 @@ # # spec file for package python-passlib # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 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 @@ -25,6 +25,7 @@ License: BSD-3-Clause Group: Development/Languages/Python URL: https://bitbucket.org/ecollins/passlib Source: https://files.pythonhosted.org/packages/source/p/passlib/passlib-%{version}.tar.gz +Patch0: python-passlib-1.7.1-libxcrypt-compat.patch # test requirements BuildRequires: %{python_module nose} BuildRequires: %{python_module setuptools} @@ -42,13 +43,14 @@ applications. %prep %setup -q -n passlib-%{version} +%patch0 -p1 %build %python_build %install %python_install -%python_expand %fdupes -s %{buildroot}%{$python_sitelib} +%python_expand %fdupes %{buildroot}%{$python_sitelib} %check %python_expand nosetests-%{$python_version} -v