diff --git a/python-distroinfo.changes b/python-distroinfo.changes index a1a2a65..84a9dbd 100644 --- a/python-distroinfo.changes +++ b/python-distroinfo.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jun 5 06:01:37 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. + ------------------------------------------------------------------- Tue Jan 14 13:31:23 UTC 2025 - pgajdos@suse.com diff --git a/python-distroinfo.spec b/python-distroinfo.spec index 84c3147..faefb7e 100644 --- a/python-distroinfo.spec +++ b/python-distroinfo.spec @@ -25,7 +25,9 @@ Group: Development/Languages/Python URL: https://github.com/softwarefactory-project/distroinfo Source: https://files.pythonhosted.org/packages/source/d/distroinfo/distroinfo-%{version}.tar.gz BuildRequires: %{python_module pbr >= 0.5.6} +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-PyYAML @@ -49,10 +51,10 @@ metadata stored in human readable and reviewable text/YAML files. %setup -q -n distroinfo-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -61,7 +63,7 @@ metadata stored in human readable and reviewable text/YAML files. %files %{python_files} %doc AUTHORS ChangeLog README.rst %license LICENSE -%{python_sitelib}/distroinfo-%{version}-*-info %{python_sitelib}/distroinfo +%{python_sitelib}/distroinfo-%{version}.dist-info %changelog