15
0

Accepting request 1282973 from devel:languages:python

- Switch to pyproject macros.

OBS-URL: https://build.opensuse.org/request/show/1282973
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-distroinfo?expand=0&rev=7
This commit is contained in:
2025-06-05 18:34:40 +00:00
committed by Git OBS Bridge
2 changed files with 10 additions and 3 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Jun 5 06:01:37 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyproject macros.
-------------------------------------------------------------------
Tue Jan 14 13:31:23 UTC 2025 - pgajdos@suse.com

View File

@@ -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