From 4ab3a3b2753b0284aa3e95371afa39f64f7d6653ee4c58a2873fc45e12a0243d Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Thu, 16 May 2024 04:45:59 +0000 Subject: [PATCH] - Siwtch to pyproject macros. - No more greedy globs in %files. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-q?expand=0&rev=6 --- python-q.changes | 6 ++++++ python-q.spec | 14 ++++++++------ 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/python-q.changes b/python-q.changes index b16f721..64ed8bd 100644 --- a/python-q.changes +++ b/python-q.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu May 16 04:45:27 UTC 2024 - Steve Kowalik + +- Siwtch to pyproject macros. +- No more greedy globs in %files. + ------------------------------------------------------------------- Fri Oct 7 03:40:40 UTC 2022 - Yogalakshmi Arunachalam diff --git a/python-q.spec b/python-q.spec index 2ea48c8..127221a 100644 --- a/python-q.spec +++ b/python-q.spec @@ -1,7 +1,7 @@ # # spec file for package python-q # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,16 +16,16 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-q Version: 2.7 Release: 0 Summary: Quick-and-dirty debugging output for tired programmers License: Apache-2.0 -Group: Development/Languages/Python URL: https://github.com/zestyping/q Source: https://files.pythonhosted.org/packages/source/q/q/q-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch @@ -38,10 +38,10 @@ Quick-and-dirty debugging output for tired programmers. %setup -q -n q-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -49,6 +49,8 @@ Quick-and-dirty debugging output for tired programmers. %files %{python_files} %doc README.md -%{python_sitelib}/* +%{python_sitelib}/q.py +%pycache_only %{python_sitelib}/__pycache__/q.*.pyc +%{python_sitelib}/q-%{version}.dist-info %changelog