From b04dc25a9ee9ff9af9d538908ed63d7cd6057b4f9c16779b01c0e16994e2067c Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Wed, 11 Jun 2025 06:27:33 +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-pytidylib?expand=0&rev=8 --- python-pytidylib.changes | 6 ++++++ python-pytidylib.spec | 12 +++++++----- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/python-pytidylib.changes b/python-pytidylib.changes index a44d137..b858a2e 100644 --- a/python-pytidylib.changes +++ b/python-pytidylib.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Jun 11 05:56:30 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. +- No more greedy globs in %files. + ------------------------------------------------------------------- Tue Jan 11 21:10:53 UTC 2022 - Dirk Müller diff --git a/python-pytidylib.spec b/python-pytidylib.spec index 52185f2..8825e15 100644 --- a/python-pytidylib.spec +++ b/python-pytidylib.spec @@ -1,7 +1,7 @@ # # spec file for package python-pytidylib # -# 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,7 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pytidylib Version: 0.3.2 Release: 0 @@ -25,8 +24,10 @@ License: MIT Group: Development/Languages/Python URL: http://countergram.com/open-source/pytidylib/ Source: https://files.pythonhosted.org/packages/source/p/pytidylib/pytidylib-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: libtidy-devel BuildRequires: python-rpm-macros @@ -61,10 +62,10 @@ The following code cleans up an invalid HTML document and sets an option:: %setup -q -n pytidylib-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -75,6 +76,7 @@ The following code cleans up an invalid HTML document and sets an option:: %files %{python_files} %doc README %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/tidylib +%{python_sitelib}/pytidylib-%{version}.dist-info %changelog