From 56b9e42be5033f3aaf76fcc10aaf8b91a1c404467e12d84d69533e21428c816a Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Mon, 16 Jun 2025 06:21:00 +0000 Subject: [PATCH 1/2] - Switch to pyroject macros. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cracklib?expand=0&rev=12 --- .gitattributes | 23 +++++++++++++++ .gitignore | 1 + cracklib-2.9.6.tar.gz | 3 ++ python-cracklib.changes | 32 +++++++++++++++++++++ python-cracklib.spec | 62 +++++++++++++++++++++++++++++++++++++++++ 5 files changed, 121 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 cracklib-2.9.6.tar.gz create mode 100644 python-cracklib.changes create mode 100644 python-cracklib.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/cracklib-2.9.6.tar.gz b/cracklib-2.9.6.tar.gz new file mode 100644 index 0000000..a24df5d --- /dev/null +++ b/cracklib-2.9.6.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a3f4ba8cd20eae9a516eb89dbe2249821c77108b044723055b45bf7936150012 +size 5997 diff --git a/python-cracklib.changes b/python-cracklib.changes new file mode 100644 index 0000000..c791ef3 --- /dev/null +++ b/python-cracklib.changes @@ -0,0 +1,32 @@ +------------------------------------------------------------------- +Mon Jun 16 06:12:19 UTC 2025 - Steve Kowalik + +- Switch to pyroject macros. + +------------------------------------------------------------------- +Wed May 10 19:37:10 UTC 2023 - Dirk Müller + +- update to 2.9.6: + * refresh distribution +- spec file cleanups + +------------------------------------------------------------------- +Sat Jun 10 08:27:24 UTC 2017 - axel.braun@gmx.de + +- Source service now uses https + +------------------------------------------------------------------- +Wed Jun 7 13:18:50 UTC 2017 - axel.braun@gmx.de + +- changes for singelspec + +------------------------------------------------------------------- +Tue Feb 2 20:44:55 UTC 2016 - mailaender@opensuse.org + +- update to version 2.9.3 + +------------------------------------------------------------------- +Mon Sep 24 16:09:03 UTC 2012 - mailaender@opensuse.org + +- initial packaging + diff --git a/python-cracklib.spec b/python-cracklib.spec new file mode 100644 index 0000000..77a6881 --- /dev/null +++ b/python-cracklib.spec @@ -0,0 +1,62 @@ +# +# spec file for package python-cracklib +# +# Copyright (c) 2025 SUSE LLC +# +# 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. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: python-cracklib +Version: 2.9.6 +Release: 0 +Summary: A CPython extension module wrapping the libcrack library +License: GPL-2.0-or-later +URL: https://github.com/cracklib/cracklib +Source: https://files.pythonhosted.org/packages/source/c/cracklib/cracklib-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: cracklib-devel +BuildRequires: fdupes +BuildRequires: python-rpm-macros +%python_subpackages + +%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 +export CFLAGS="%{optflags}" +%pyproject_wheel + +%install +%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 + +%files %{python_files} +%{python_sitearch}/cracklib.py +%pycache_only %{python_sitearch}/__pycache__/cracklib.*.pyc +%{python_sitearch}/_cracklib.cpython-*-linux-gnu.so +%{python_sitearch}/cracklib-%{version}.dist-info + +%changelog From b5059c617c823d913ddf8c64abbdf649db758ad0904c2e3b1c33c0ae5fa0e435 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Mon, 16 Jun 2025 06:29:10 +0000 Subject: [PATCH 2/2] Update changelog OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cracklib?expand=0&rev=13 --- python-cracklib.changes | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python-cracklib.changes b/python-cracklib.changes index c791ef3..6284c6c 100644 --- a/python-cracklib.changes +++ b/python-cracklib.changes @@ -1,7 +1,8 @@ ------------------------------------------------------------------- -Mon Jun 16 06:12:19 UTC 2025 - Steve Kowalik +Mon Jun 16 06:28:40 UTC 2025 - Steve Kowalik - Switch to pyroject macros. +- Run the testsuite, and do not install it. ------------------------------------------------------------------- Wed May 10 19:37:10 UTC 2023 - Dirk Müller