diff --git a/python-pygal.changes b/python-pygal.changes index cd0ed77..0425f59 100644 --- a/python-pygal.changes +++ b/python-pygal.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Jun 11 05:53:51 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. +- No more greedy globs in %files. + ------------------------------------------------------------------- Sat Aug 31 11:57:50 UTC 2024 - Dirk Müller diff --git a/python-pygal.spec b/python-pygal.spec index ada5727..a259231 100644 --- a/python-pygal.spec +++ b/python-pygal.spec @@ -1,7 +1,7 @@ # # spec file for package python-pygal # -# Copyright (c) 2024 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 @@ -29,8 +29,10 @@ BuildRequires: %{python_module CairoSVG} BuildRequires: %{python_module Flask} BuildRequires: %{python_module importlib-metadata} BuildRequires: %{python_module lxml} +BuildRequires: %{python_module pip} BuildRequires: %{python_module pyquery} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-importlib-metadata @@ -55,10 +57,10 @@ It supports various chart types and CSS styling. sed -Ei 's:.pytest-runner.,?::' setup.py %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} mv %{buildroot}%{_bindir}/pygal_gen.py %{buildroot}%{_bindir}/pygal_gen @@ -77,6 +79,7 @@ mv %{buildroot}%{_bindir}/pygal_gen.py %{buildroot}%{_bindir}/pygal_gen %doc README %license COPYING %python_alternative %{_bindir}/pygal_gen -%{python_sitelib}/* +%{python_sitelib}/pygal +%{python_sitelib}/pygal-%{version}.dist-info %changelog