From af4224b761ae4803ba5b0ce2630549103eea0984136fa787efae76fbf59bda4c Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Wed, 11 Jun 2025 06:13:15 +0000 Subject: [PATCH] - Switch to pyproject macros. - No more greedy globs in %files. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pamela?expand=0&rev=8 --- python-pamela.changes | 6 ++++++ python-pamela.spec | 13 ++++++++----- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/python-pamela.changes b/python-pamela.changes index 6307655..8ed2ee2 100644 --- a/python-pamela.changes +++ b/python-pamela.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Jun 11 05:50:14 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. +- No more greedy globs in %files. + ------------------------------------------------------------------- Sun Aug 18 17:19:59 UTC 2024 - Dirk Müller diff --git a/python-pamela.spec b/python-pamela.spec index ea69c40..8c321e4 100644 --- a/python-pamela.spec +++ b/python-pamela.spec @@ -1,7 +1,7 @@ # # spec file for package python-pamela # -# Copyright (c) 2024 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,7 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pamela Version: 1.2.0 Release: 0 @@ -24,8 +23,10 @@ Summary: PAM interface using ctypes License: MIT URL: https://github.com/minrk/pamela Source: https://github.com/minrk/pamela/archive/%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch @@ -38,10 +39,10 @@ PAM interface using ctypes. %setup -q -n pamela-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -51,6 +52,8 @@ PAM interface using ctypes. %files %{python_files} %doc README.md %license COPYING -%{python_sitelib}/* +%{python_sitelib}/pamela.py +%pycache_only %{python_sitelib}/__pycache__/pamela.*.pyc +%{python_sitelib}/pamela-%{version}.dist-info %changelog