diff --git a/python-titlecase.changes b/python-titlecase.changes index 46a0e2b..3127be4 100644 --- a/python-titlecase.changes +++ b/python-titlecase.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jun 4 06:07:59 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. + ------------------------------------------------------------------- Tue Oct 24 14:01:36 UTC 2023 - Dirk Müller diff --git a/python-titlecase.spec b/python-titlecase.spec index 2bdae81..a2fba3c 100644 --- a/python-titlecase.spec +++ b/python-titlecase.spec @@ -1,7 +1,7 @@ # # spec file for package python-titlecase # -# 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,7 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-titlecase Version: 2.4.1 Release: 0 @@ -25,14 +24,16 @@ License: MIT Group: Development/Languages/Python URL: https://github.com/ppannuto/python-titlecase Source: https://files.pythonhosted.org/packages/source/t/titlecase/titlecase-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module regex >= 2020.4.4} BuildRequires: %{python_module setuptools_scm} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-regex >= 2020.4.4 Requires(post): update-alternatives -Requires(postun):update-alternatives +Requires(postun): update-alternatives BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module pytest} @@ -50,10 +51,10 @@ York Times Manual of Style, plus some others like 'vs' and 'v'. %setup -q -n titlecase-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_clone -a %{buildroot}%{_bindir}/titlecase %python_expand %fdupes %{buildroot}%{$python_sitelib}