From b0d45f961a4331ae43dd9a9fc2c03b315e38c63a35c3bbd096463c76c5ef25f1 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Wed, 4 Jun 2025 06:15:54 +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-tap.py?expand=0&rev=11 --- python-tap.py.changes | 6 ++++++ python-tap.py.spec | 16 ++++++++-------- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/python-tap.py.changes b/python-tap.py.changes index 0d17b58..cc66141 100644 --- a/python-tap.py.changes +++ b/python-tap.py.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Jun 4 06:08:20 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. +- No more greedy globs in %files. + ------------------------------------------------------------------- Tue Apr 19 10:59:08 UTC 2022 - pgajdos@suse.com diff --git a/python-tap.py.spec b/python-tap.py.spec index 79c952d..b775f24 100644 --- a/python-tap.py.spec +++ b/python-tap.py.spec @@ -1,7 +1,7 @@ # # spec file for package python-tap.py # -# Copyright (c) 2022 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,23 +16,22 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-tap.py Version: 3.1 Release: 0 Summary: Test Anything Protocol (TAP) tools License: BSD-2-Clause -Group: Development/Languages/Python URL: https://github.com/python-tap/tappy Source: https://files.pythonhosted.org/packages/source/t/tap.py/tap.py-%{version}.tar.gz BuildRequires: %{python_module Babel} +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: python-setuptools Requires(post): update-alternatives -Requires(postun):update-alternatives +Requires(postun): update-alternatives Recommends: python-PyYAML Recommends: python-more-itertools BuildArch: noarch @@ -51,11 +50,11 @@ Test Anything Protocol (TAP) tools. %build export LANG=en_US.UTF-8 -%python_build +%pyproject_wheel %install export LANG=en_US.UTF-8 -%python_install +%pyproject_install %python_clone -a %{buildroot}%{_bindir}/tap %python_clone -a %{buildroot}%{_bindir}/tappy %python_expand %fdupes %{buildroot}%{$python_sitelib} @@ -77,6 +76,7 @@ export LANG=en_US.UTF-8 %license LICENSE %python_alternative %{_bindir}/tappy %python_alternative %{_bindir}/tap -%{python_sitelib}/* +%{python_sitelib}/tap +%{python_sitelib}/tap[._]py-%{version}.dist-info %changelog