From af1f9c627071b2d779e8f262c54fee6ea7ee8093df6b8ee08105bf75eabb9cf0 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Mon, 16 Jun 2025 06:18:56 +0000 Subject: [PATCH] - Switch to pyroject macros. - No more greedy globs in %files. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-CCColUtils?expand=0&rev=3 --- python-CCColUtils.changes | 6 ++++++ python-CCColUtils.spec | 13 +++++++------ 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/python-CCColUtils.changes b/python-CCColUtils.changes index 1ef35e2..9c20cc2 100644 --- a/python-CCColUtils.changes +++ b/python-CCColUtils.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Jun 16 06:12:52 UTC 2025 - Steve Kowalik + +- Switch to pyroject macros. +- No more greedy globs in %files. + ------------------------------------------------------------------- Wed Mar 6 05:59:50 UTC 2019 - John Vandenberg diff --git a/python-CCColUtils.spec b/python-CCColUtils.spec index 5530905..25589af 100644 --- a/python-CCColUtils.spec +++ b/python-CCColUtils.spec @@ -1,7 +1,7 @@ # # spec file for package python-CCColUtils # -# Copyright (c) 2020 SUSE LLC +# 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 @@ -16,19 +16,19 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} %define oldpython python Name: python-CCColUtils Version: 1.5 Release: 0 Summary: Kerberos5 Credential Cache Collection utilities License: GPL-2.0-or-later -Group: Development/Languages/Python URL: https://pagure.io/cccolutils Source: https://files.pythonhosted.org/packages/source/C/CCColUtils/CCColUtils-%{version}.tar.gz BuildRequires: %{python_module devel} +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: pkgconfig BuildRequires: python-rpm-macros @@ -47,10 +47,10 @@ Kerberos5 Credential Cache Collection utilities. %build export CFLAGS="%{optflags}" -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitearch} %check @@ -58,6 +58,7 @@ export CFLAGS="%{optflags}" %files %{python_files} %license COPYING -%{python_sitearch}/* +%{python_sitearch}/cccolutils.cpython-*-linux-gnu.so +%{python_sitearch}/[Cc][Cc][Cc]ol[Uu]tils-%{version}.dist-info %changelog