2012-10-01 10:37:03 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-cracklib
|
|
|
|
|
#
|
2025-06-16 06:21:00 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2012-10-01 10:37:03 +00:00
|
|
|
#
|
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
|
# published by the Open Source Initiative.
|
2023-05-10 19:37:33 +00:00
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2012-10-01 10:37:03 +00:00
|
|
|
#
|
|
|
|
|
|
2023-05-10 19:37:33 +00:00
|
|
|
|
2012-10-01 10:37:03 +00:00
|
|
|
Name: python-cracklib
|
2023-05-10 19:37:33 +00:00
|
|
|
Version: 2.9.6
|
2012-10-01 10:37:03 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: A CPython extension module wrapping the libcrack library
|
2023-05-10 19:37:33 +00:00
|
|
|
License: GPL-2.0-or-later
|
|
|
|
|
URL: https://github.com/cracklib/cracklib
|
2017-06-19 05:01:42 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/c/cracklib/cracklib-%{version}.tar.gz
|
2017-06-09 20:10:41 +00:00
|
|
|
BuildRequires: %{python_module devel}
|
2025-06-16 06:21:00 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2017-06-09 20:10:41 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2025-06-16 06:21:00 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2012-10-01 10:37:03 +00:00
|
|
|
BuildRequires: cracklib-devel
|
2025-06-16 06:21:00 +00:00
|
|
|
BuildRequires: fdupes
|
2023-05-10 19:37:33 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2017-06-09 20:10:41 +00:00
|
|
|
%python_subpackages
|
|
|
|
|
|
2012-10-01 10:37:03 +00:00
|
|
|
%description
|
|
|
|
|
This CPython extension provides Python bindings for cracklib. It
|
|
|
|
|
contains a pythonic interface to cracklib's functions and some Python
|
|
|
|
|
convenience functions.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n cracklib-%{version}
|
|
|
|
|
|
|
|
|
|
%build
|
2017-06-09 20:11:20 +00:00
|
|
|
export CFLAGS="%{optflags}"
|
2025-06-16 06:21:00 +00:00
|
|
|
%pyproject_wheel
|
2012-10-01 10:37:03 +00:00
|
|
|
|
|
|
|
|
%install
|
2025-06-16 06:21:00 +00:00
|
|
|
%pyproject_install
|
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
|
|
|
|
# Do not install tests
|
|
|
|
|
%python_expand rm %{buildroot}%{$python_sitearch}/test_cracklib.py %{buildroot}%{$python_sitearch}/__pycache__/test_cracklib.*.pyc
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
%python_expand PYTHONPATH=%{buildroot}%{$python_sitearch} $python test_cracklib.py
|
2012-10-01 10:37:03 +00:00
|
|
|
|
2017-06-09 20:10:41 +00:00
|
|
|
%files %{python_files}
|
2025-06-16 06:21:00 +00:00
|
|
|
%{python_sitearch}/cracklib.py
|
|
|
|
|
%pycache_only %{python_sitearch}/__pycache__/cracklib.*.pyc
|
|
|
|
|
%{python_sitearch}/_cracklib.cpython-*-linux-gnu.so
|
|
|
|
|
%{python_sitearch}/cracklib-%{version}.dist-info
|
2012-10-01 10:37:03 +00:00
|
|
|
|
2016-02-04 09:33:37 +00:00
|
|
|
%changelog
|