From 32261b5e6f74fc0053afb522632167e2a7828e73a42efb3b9dbdab89ba4856ff Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Wed, 11 Jun 2025 06:32:29 +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-pyux?expand=0&rev=3 --- python-pyux.changes | 6 ++++++ python-pyux.spec | 12 +++++++----- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/python-pyux.changes b/python-pyux.changes index 2b5ca40..7b8c941 100644 --- a/python-pyux.changes +++ b/python-pyux.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Jun 11 05:57:50 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. +- No more greedy globs in %files. + ------------------------------------------------------------------- Mon Feb 24 13:11:33 UTC 2020 - Tomáš Chvátal diff --git a/python-pyux.spec b/python-pyux.spec index 9244366..3011354 100644 --- a/python-pyux.spec +++ b/python-pyux.spec @@ -1,7 +1,7 @@ # # spec file for package python-pyux # -# 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,7 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pyux Version: 0.0.6 Release: 0 @@ -25,7 +24,9 @@ License: MIT URL: https://github.com/farizrahman4u/pyux Source: https://files.pythonhosted.org/packages/source/p/pyux/pyux-%{version}.tar.gz Source1: https://raw.githubusercontent.com/farizrahman4u/pyux/master/LICENSE +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch @@ -39,14 +40,15 @@ Utility to check API integrity in Python libraries. cp %{SOURCE1} . %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %files %{python_files} %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/pyux +%{python_sitelib}/pyux-%{version}.dist-info %changelog