14
0
forked from pool/python-tap.py

- 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
This commit is contained in:
2025-06-04 06:15:54 +00:00
committed by Git OBS Bridge
parent 2ce5fe79e1
commit b0d45f961a
2 changed files with 14 additions and 8 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Jun 4 06:08:20 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyproject macros.
- No more greedy globs in %files.
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Apr 19 10:59:08 UTC 2022 - pgajdos@suse.com Tue Apr 19 10:59:08 UTC 2022 - pgajdos@suse.com

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-tap.py # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # 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 %define skip_python2 1
Name: python-tap.py Name: python-tap.py
Version: 3.1 Version: 3.1
Release: 0 Release: 0
Summary: Test Anything Protocol (TAP) tools Summary: Test Anything Protocol (TAP) tools
License: BSD-2-Clause License: BSD-2-Clause
Group: Development/Languages/Python
URL: https://github.com/python-tap/tappy URL: https://github.com/python-tap/tappy
Source: https://files.pythonhosted.org/packages/source/t/tap.py/tap.py-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/t/tap.py/tap.py-%{version}.tar.gz
BuildRequires: %{python_module Babel} BuildRequires: %{python_module Babel}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: python-setuptools
Requires(post): update-alternatives Requires(post): update-alternatives
Requires(postun):update-alternatives Requires(postun): update-alternatives
Recommends: python-PyYAML Recommends: python-PyYAML
Recommends: python-more-itertools Recommends: python-more-itertools
BuildArch: noarch BuildArch: noarch
@@ -51,11 +50,11 @@ Test Anything Protocol (TAP) tools.
%build %build
export LANG=en_US.UTF-8 export LANG=en_US.UTF-8
%python_build %pyproject_wheel
%install %install
export LANG=en_US.UTF-8 export LANG=en_US.UTF-8
%python_install %pyproject_install
%python_clone -a %{buildroot}%{_bindir}/tap %python_clone -a %{buildroot}%{_bindir}/tap
%python_clone -a %{buildroot}%{_bindir}/tappy %python_clone -a %{buildroot}%{_bindir}/tappy
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
@@ -77,6 +76,7 @@ export LANG=en_US.UTF-8
%license LICENSE %license LICENSE
%python_alternative %{_bindir}/tappy %python_alternative %{_bindir}/tappy
%python_alternative %{_bindir}/tap %python_alternative %{_bindir}/tap
%{python_sitelib}/* %{python_sitelib}/tap
%{python_sitelib}/tap[._]py-%{version}.dist-info
%changelog %changelog