diff --git a/python-purl.changes b/python-purl.changes index f7e377e..5f070b0 100644 --- a/python-purl.changes +++ b/python-purl.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri May 2 03:25:42 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. +- No more greedy globs in %files. + ------------------------------------------------------------------- Fri Apr 21 12:30:07 UTC 2023 - Dirk Müller diff --git a/python-purl.spec b/python-purl.spec index 51aaab8..e3369dd 100644 --- a/python-purl.spec +++ b/python-purl.spec @@ -1,7 +1,7 @@ # # spec file for package python-purl # -# Copyright (c) 2023 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,19 +16,19 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?sle15_python_module_pythons} Name: python-purl Version: 1.6 Release: 0 Summary: An immutable URL class for URL building and manipulation License: MIT -Group: Development/Languages/Python URL: https://github.com/codeinthehole/purl Source: https://github.com/codeinthehole/purl/archive/%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module six} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-six @@ -42,10 +42,10 @@ An immutable URL class for URL building and manipulation. %setup -q -n purl-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -56,6 +56,7 @@ popd %files %{python_files} %doc README.rst %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/purl +%{python_sitelib}/purl-%{version}.dist-info %changelog